package/giflib: security bump version to 5.2.1
PATCH 1/1 package/giflib: security bump version to 5.2.1
Version 5.1.5 fixes CVE-2018-11490
https://sourceforge.net/p/giflib/code/ci/900d783def011e8d9f261db6839113425bf3334f/
Added license hash.
Upstream only provides a .gz tarball, so remove the .bz2 option.
Switched package to generic-package after autoconf removal:
https://sourceforge.net/p/giflib/code/ci/5fdd280d0049b7ee70f2ef1a8100b1473086e3eb/
--- package/giflib/giflib.hash | 8 +++++--- package/giflib/giflib.mk | 27 ++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 8 deletions(-)
package/giflib/giflib.hash +5 -3
@@ -1,3 +1,5 @@ -# From http://sourceforge.net/projects/giflib/files -md5 2c171ced93c0e83bb09e6ccad8e3ba2b giflib-5.1.4.tar.bz2 -sha1 5f1157cfc377916280849e247b8e34fa0446513f giflib-5.1.4.tar.bz2 +# From https://sourceforge.net/projects/giflib/files/ +md5 6f03aee4ebe54ac2cc1ab3e4b0a049e5 giflib-5.2.1.tar.gz +sha1 c3f774dcbdf26afded7788979c8081d33c6426dc giflib-5.2.1.tar.gz +# Locally computed +sha256 0c9b7990ecdca88b676db232c226548ac408b279f550d424d996f0d83591dd8e COPYING
package/giflib/giflib.mk +22 -5
@@ -4,8 +4,7 @@ # ################################################################################ -GIFLIB_VERSION = 5.1.4 -GIFLIB_SOURCE = giflib-$(GIFLIB_VERSION).tar.bz2 +GIFLIB_VERSION = 5.2.1 GIFLIB_SITE = http://downloads.sourceforge.net/project/giflib GIFLIB_INSTALL_STAGING = YES GIFLIB_LICENSE = MIT
@@ -18,7 +17,21 @@ GIFLIB_BINS = \ gifrsize gifspnge giftext giftool gifwedge icon2gif raw2gif rgb2gif \ text2gif -GIFLIB_CONF_ENV = ac_cv_prog_have_xmlto=no +define GIFLIB_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_GIFLIB_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define GIFLIB_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install +endef + +define GIFLIB_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr install +endef define GIFLIB_BINS_CLEANUP rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GIFLIB_BINS))
@@ -26,5 +39,9 @@ endef GIFLIB_POST_INSTALL_TARGET_HOOKS += GIFLIB_BINS_CLEANUP -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +define HOST_GIFLIB_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) PREFIX=/ install +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))
Signature · 1 line
2.20.1
PATCH 1/1 package/giflib: security bump version to 5.2.1
Quoted 1 line · Bernd Kuhls
Version 5.1.5 fixes CVE-2018-11490
So *this* is not a security bump. A security bump would bump to 5.1.5, not 5.2.1.
This is important, because this patch we don't want to backport to the stable
branches...
Quoted 43 lines
https://sourceforge.net/p/giflib/code/ci/900d783def011e8d9f261db6839113425bf3334f/
Added license hash.
Upstream only provides a .gz tarball, so remove the .bz2 option.
Switched package to generic-package after autoconf removal:
https://sourceforge.net/p/giflib/code/ci/5fdd280d0049b7ee70f2ef1a8100b1473086e3eb/Signed-off-by Bernd Kuhls <[email protected]>--- package/giflib/giflib.hash | 8 +++++--- package/giflib/giflib.mk | 27 ++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 8 deletions(-)package/giflib/giflib.hash +5
-3@@ -1,3 +1,5 @@ -# From http://sourceforge.net/projects/giflib/files -md5 2c171ced93c0e83bb09e6ccad8e3ba2b giflib-5.1.4.tar.bz2 -sha1 5f1157cfc377916280849e247b8e34fa0446513f giflib-5.1.4.tar.bz2 +# From https://sourceforge.net/projects/giflib/files/ +md5 6f03aee4ebe54ac2cc1ab3e4b0a049e5 giflib-5.2.1.tar.gz +sha1 c3f774dcbdf26afded7788979c8081d33c6426dc giflib-5.2.1.tar.gz +# Locally computed +sha256 0c9b7990ecdca88b676db232c226548ac408b279f550d424d996f0d83591dd8e COPYINGpackage/giflib/giflib.mk +1
-2@@ -4,8 +4,7 @@ # ################################################################################ -GIFLIB_VERSION = 5.1.4 -GIFLIB_SOURCE = giflib-$(GIFLIB_VERSION).tar.bz2 +GIFLIB_VERSION = 5.2.1 GIFLIB_SITE = http://downloads.sourceforge.net/project/giflib GIFLIB_INSTALL_STAGING = YES GIFLIB_LICENSE = MIT
package/giflib/giflib.mk GIFLIB_BINS = \ · line 21
Quoted 4 lines
package/giflib/giflib.mk +0
-1@@ -18,7 +17,21 @@ GIFLIB_BINS = \ gifrsize gifspnge giftext giftool gifwedge icon2gif raw2gif rgb2gif \ text2gif -GIFLIB_CONF_ENV = ac_cv_prog_have_xmlto=no
AFAICS, xmlto will now be called unconditionally... I think the Makefile needs
to be patched to avoid that. Or a post-patch hook could just replace doc/Makefile with an empty one:
echo 'all: ; :' > $(GIFLIB_SRCDIR)/doc/Makefile
Regards,
Arnout
Quoted 31 lines
package/giflib/giflib.mk +21
-2+define GIFLIB_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_GIFLIB_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define GIFLIB_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install +endef + +define GIFLIB_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr install +endef define GIFLIB_BINS_CLEANUP rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GIFLIB_BINS))@@ -26,5 +39,9 @@ endef GIFLIB_POST_INSTALL_TARGET_HOOKS += GIFLIB_BINS_CLEANUP -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +define HOST_GIFLIB_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) PREFIX=/ install +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))
PATCH 1/1 package/giflib: security bump version to 5.2.1
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Quoted 1 line · Bernd Kuhls
Version 5.1.5 fixes CVE-2018-11490
So *this* is not a security bump. A security bump would bump to 5.1.5, not 5.2.1.
This is important, because this patch we don't want to backport to the stable
branches...
And looking closer, the security issue is in the gifclrmp utility which we don't install.
Quoted 1 line
Before noticing that, I did some work to bump to 5.1.5, but it isn't really nice as the new build system is fairly broken and E.G. always builds static and shared libraries.
The patch as is also forgets to pass TARGET_CONFIGURE_OPTS, so it ends up building for the host instead of the target.
Signature · 1 line
Bye, Peter Korsgaard