Skip to contentSkip to conversation

package/giflib: update tarball URL

PATCH Applied Bernd Kuhls 2 participants 7 messages Mar 15 – Apr 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/giflib: update tarball URL

Upstream moved all tarballs to new locations:
https://sourceforge.net/p/giflib/bugs/190/

Fixes:
https://autobuild.buildroot.net/results/c7f/c7f918fe7c879706c5a5875ea11c5f8b57007a85/

---
 package/giflib/giflib.hash | 2 +-
 package/giflib/giflib.mk   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
package/giflib/giflib.hash +1 -1
index f11d4f1505..dcc384a523 100644
@@ -1,4 +1,4 @@
-# From http://sourceforge.net/projects/giflib/files
+# From https://sourceforge.net/projects/giflib/files/giflib-5.x/
 md5  913dd251492134e235ee3c9a91987a4d  giflib-5.2.2.tar.gz
 sha1  608ba98d2dd8d03dfa7476f434d57de50a33e10b  giflib-5.2.2.tar.gz
 # Locally computed
package/giflib/giflib.mk +3 -2
index f37ec8af21..00922ce2db 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-GIFLIB_VERSION = 5.2.2
-GIFLIB_SITE = http://downloads.sourceforge.net/project/giflib
+GIFLIB_VERSION_MAJOR = 5
+GIFLIB_VERSION = $(GIFLIB_VERSION_MAJOR).2.2
+GIFLIB_SITE = https://sourceforge.net/projects/giflib/files/giflib-$(GIFLIB_VERSION_MAJOR).x
 GIFLIB_INSTALL_STAGING = YES
 GIFLIB_LICENSE = MIT
 GIFLIB_LICENSE_FILES = COPYING
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/3 package/kodi: allow build with giflib 6.x

These patches fix build errors which would be introduced by the upcoming bump of giflib to 6.1.2.

---
 ...rePacker-allow-build-with-giflib-6.x.patch | 71 +++++++++++++++++++
 ...rePacker-allow-build-with-giflib-6.x.patch | 71 +++++++++++++++++++
 2 files changed, 142 insertions(+)
 create mode 100644 package/kodi-texturepacker/0001-TexturePacker-allow-build-with-giflib-6.x.patch
 create mode 100644 package/kodi/0002-TexturePacker-allow-build-with-giflib-6.x.patch
package/kodi-texturepacker/0001-TexturePacker-allow-build-with-giflib-6.x.patch new file +71 -0
new file mode 100644
index 0000000000..5a23237375
@@ -0,0 +1,71 @@
+From 29492cbd20d4c90a9c00a30ab525d4d0e81a968b Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <[email protected]>
+Date: Sun, 15 Mar 2026 11:38:16 +0000
+Subject: [PATCH] TexturePacker: allow build with giflib 6.x
+
+Current #if clauses are written with a maximum of giflib 5 written in,
+update the to >= to allow for newer versiosn of the giflib api.
+
+Signed-off-by: Rudi Heitbaum <[email protected]>
+
+Upstream: https://github.com/xbmc/xbmc/pull/28016
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ .../native/TexturePacker/src/decoder/GifHelper.cpp        | 8 ++++----
+ .../depends/native/TexturePacker/src/decoder/GifHelper.h  | 2 +-
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp b/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
+index eb513134b3eb8..b216ecbcef7fa 100644
+--- a/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
++++ b/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
+@@ -52,7 +52,7 @@ GifHelper::~GifHelper()
+ bool GifHelper::Open(GifFileType*& gif, void *dataPtr, InputFunc readFunc)
+ {
+   int err = 0;
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+   gif = DGifOpen(dataPtr, readFunc, &err);
+ #else
+   gif = DGifOpen(dataPtr, readFunc);
+@@ -73,7 +73,7 @@ void GifHelper::Close(GifFileType* gif)
+ {
+   int err = 0;
+   int reason = 0;
+-#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++#if (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) || GIFLIB_MAJOR >= 6
+   err = DGifCloseFile(gif, &reason);
+ #else
+   err = DGifCloseFile(gif);
+@@ -181,7 +181,7 @@ bool GifHelper::Slurp(GifFileType* gif)
+   if (DGifSlurp(gif) == GIF_ERROR)
+   {
+     int reason = 0;
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+     reason = gif->Error;
+ #else
+     reason = GifLastError();
+@@ -246,7 +246,7 @@ bool GifHelper::GcbToFrame(GifFrame &frame, unsigned int imgIdx)
+ 
+   if (m_gif->ImageCount > 0)
+   {
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+     GraphicsControlBlock gcb;
+     if (DGifSavedExtensionToGCB(m_gif, imgIdx, &gcb))
+     {
+diff --git a/tools/depends/native/TexturePacker/src/decoder/GifHelper.h b/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
+index 6124b69e46296..ce5dca3394b41 100644
+--- a/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
++++ b/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
+@@ -128,7 +128,7 @@ class GifHelper
+   bool PrepareTemplate(GifFrame &frame);
+   void Release();
+ 
+-#if GIFLIB_MAJOR != 5
++#if GIFLIB_MAJOR < 5
+   /*
+   taken from giflib 5.1.0
+   */
package/kodi/0002-TexturePacker-allow-build-with-giflib-6.x.patch new file +71 -0

71 lines not on this page · raw message

Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/3] package/kodi: allow build with giflib 6.x

In reply of:

Quoted 4 lines

These patches fix build errors which would be introduced by the upcoming bump of giflib to 6.1.2.

Applied to 2026.02.x. Thanks

Quoted 168 lines
---
 ...rePacker-allow-build-with-giflib-6.x.patch | 71 +++++++++++++++++++
 ...rePacker-allow-build-with-giflib-6.x.patch | 71 +++++++++++++++++++
 2 files changed, 142 insertions(+)
 create mode 100644 package/kodi-texturepacker/0001-TexturePacker-allow-build-with-giflib-6.x.patch
 create mode 100644 package/kodi/0002-TexturePacker-allow-build-with-giflib-6.x.patch
package/kodi-texturepacker/0001-TexturePacker-allow-build-with-giflib-6.x.patch new file +71 -0
new file mode 100644
index 0000000000..5a23237375
@@ -0,0 +1,71 @@
+From 29492cbd20d4c90a9c00a30ab525d4d0e81a968b Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <[email protected]>
+Date: Sun, 15 Mar 2026 11:38:16 +0000
+Subject: [PATCH] TexturePacker: allow build with giflib 6.x
+
+Current #if clauses are written with a maximum of giflib 5 written in,
+update the to >= to allow for newer versiosn of the giflib api.
+
+Signed-off-by: Rudi Heitbaum <[email protected]>
+
+Upstream: https://github.com/xbmc/xbmc/pull/28016
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ .../native/TexturePacker/src/decoder/GifHelper.cpp        | 8 ++++----
+ .../depends/native/TexturePacker/src/decoder/GifHelper.h  | 2 +-
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp b/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
+index eb513134b3eb8..b216ecbcef7fa 100644
+--- a/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
++++ b/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
+@@ -52,7 +52,7 @@ GifHelper::~GifHelper()
+ bool GifHelper::Open(GifFileType*& gif, void *dataPtr, InputFunc readFunc)
+ {
+   int err = 0;
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+   gif = DGifOpen(dataPtr, readFunc, &err);
+ #else
+   gif = DGifOpen(dataPtr, readFunc);
+@@ -73,7 +73,7 @@ void GifHelper::Close(GifFileType* gif)
+ {
+   int err = 0;
+   int reason = 0;
+-#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++#if (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) || GIFLIB_MAJOR >= 6
+   err = DGifCloseFile(gif, &reason);
+ #else
+   err = DGifCloseFile(gif);
+@@ -181,7 +181,7 @@ bool GifHelper::Slurp(GifFileType* gif)
+   if (DGifSlurp(gif) == GIF_ERROR)
+   {
+     int reason = 0;
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+     reason = gif->Error;
+ #else
+     reason = GifLastError();
+@@ -246,7 +246,7 @@ bool GifHelper::GcbToFrame(GifFrame &frame, unsigned int imgIdx)
+ 
+   if (m_gif->ImageCount > 0)
+   {
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+     GraphicsControlBlock gcb;
+     if (DGifSavedExtensionToGCB(m_gif, imgIdx, &gcb))
+     {
+diff --git a/tools/depends/native/TexturePacker/src/decoder/GifHelper.h b/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
+index 6124b69e46296..ce5dca3394b41 100644
+--- a/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
++++ b/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
+@@ -128,7 +128,7 @@ class GifHelper
+   bool PrepareTemplate(GifFrame &frame);
+   void Release();
+ 
+-#if GIFLIB_MAJOR != 5
++#if GIFLIB_MAJOR < 5
+   /*
+   taken from giflib 5.1.0
+   */
package/kodi/0002-TexturePacker-allow-build-with-giflib-6.x.patch new file +71 -0
new file mode 100644
index 0000000000..5a23237375
@@ -0,0 +1,71 @@
+From 29492cbd20d4c90a9c00a30ab525d4d0e81a968b Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <[email protected]>
+Date: Sun, 15 Mar 2026 11:38:16 +0000
+Subject: [PATCH] TexturePacker: allow build with giflib 6.x
+
+Current #if clauses are written with a maximum of giflib 5 written in,
+update the to >= to allow for newer versiosn of the giflib api.
+
+Signed-off-by: Rudi Heitbaum <[email protected]>
+
+Upstream: https://github.com/xbmc/xbmc/pull/28016
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ .../native/TexturePacker/src/decoder/GifHelper.cpp        | 8 ++++----
+ .../depends/native/TexturePacker/src/decoder/GifHelper.h  | 2 +-
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp b/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
+index eb513134b3eb8..b216ecbcef7fa 100644
+--- a/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
++++ b/tools/depends/native/TexturePacker/src/decoder/GifHelper.cpp
+@@ -52,7 +52,7 @@ GifHelper::~GifHelper()
+ bool GifHelper::Open(GifFileType*& gif, void *dataPtr, InputFunc readFunc)
+ {
+   int err = 0;
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+   gif = DGifOpen(dataPtr, readFunc, &err);
+ #else
+   gif = DGifOpen(dataPtr, readFunc);
+@@ -73,7 +73,7 @@ void GifHelper::Close(GifFileType* gif)
+ {
+   int err = 0;
+   int reason = 0;
+-#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1
++#if (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) || GIFLIB_MAJOR >= 6
+   err = DGifCloseFile(gif, &reason);
+ #else
+   err = DGifCloseFile(gif);
+@@ -181,7 +181,7 @@ bool GifHelper::Slurp(GifFileType* gif)
+   if (DGifSlurp(gif) == GIF_ERROR)
+   {
+     int reason = 0;
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+     reason = gif->Error;
+ #else
+     reason = GifLastError();
+@@ -246,7 +246,7 @@ bool GifHelper::GcbToFrame(GifFrame &frame, unsigned int imgIdx)
+ 
+   if (m_gif->ImageCount > 0)
+   {
+-#if GIFLIB_MAJOR == 5
++#if GIFLIB_MAJOR >= 5
+     GraphicsControlBlock gcb;
+     if (DGifSavedExtensionToGCB(m_gif, imgIdx, &gcb))
+     {
+diff --git a/tools/depends/native/TexturePacker/src/decoder/GifHelper.h b/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
+index 6124b69e46296..ce5dca3394b41 100644
+--- a/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
++++ b/tools/depends/native/TexturePacker/src/decoder/GifHelper.h
+@@ -128,7 +128,7 @@ class GifHelper
+   bool PrepareTemplate(GifFrame &frame);
+   void Release();
+ 
+-#if GIFLIB_MAJOR != 5
++#if GIFLIB_MAJOR < 5
+   /*
+   taken from giflib 5.1.0
+   */
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

PATCH 3/3 package/giflib: security bump version to 6.1.2

In reply to Bernd Kuhls

https://sourceforge.net/p/giflib/code/ci/6.1.2/tree/NEWS

Patch 0001 was removed because it is included in this release:
https://sourceforge.net/p/giflib/code/ci/dd8b375e2a5ddfabb9709c99e38bbe0fd3b212a4/

Patch 0002 is not needed anymore because upstream removed gif2rgb from the list of installable make targets:
https://sourceforge.net/p/giflib/code/ci/35dc68311aab89bb678ac422d1d18cd37246f803/

Updated license hash due to upstream commit
https://sourceforge.net/p/giflib/code/ci/4a425b734811799662762b3edc46458c180e3770/

The CVEs mentioned in the release notes (CVE-2021-40633 & CVE-2025-31344) are related to gif2rgb only.

Build-tested using this defconfig:

BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_PACKAGE_KODI=y
BR2_PACKAGE_EFL=y
# BR2_PACKAGE_EFL_EEZE is not set
# BR2_PACKAGE_EFL_FONTCONFIG is not set # BR2_PACKAGE_EFL_GSTREAMER1 is not set # BR2_PACKAGE_EFL_LIBFRIBIDI is not set # BR2_PACKAGE_EFL_ELPUT is not set
# BR2_PACKAGE_EFL_LIBSNDFILE is not set # BR2_PACKAGE_EFL_PULSEAUDIO is not set # BR2_PACKAGE_EFL_UTIL_LINUX_LIBMOUNT is not set BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE=y BR2_PACKAGE_MESA3D_OPENGL_EGL=y BR2_PACKAGE_MESA3D_OPENGL_ES=y BR2_PACKAGE_XORG7=y
BR2_PACKAGE_LUAJIT=y BR2_PACKAGE_OPENJDK=y BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON3_PY_ONLY=y BR2_PACKAGE_IMLIB2=y BR2_PACKAGE_IMLIB2_GIF=y BR2_PACKAGE_LEPTONICA=y BR2_PACKAGE_LIBGDIPLUS=y BR2_PACKAGE_WEBP=y
BR2_PACKAGE_DLIB=y
BR2_PACKAGE_GDAL=y

---
 ...dd-targets-to-manage-static-building.patch | 73 -------------------
 ...veral-defects-found-by-Coverity-scan.patch | 61 ----------------
 package/giflib/giflib.hash                    | 10 +--
 package/giflib/giflib.mk                      |  4 +-
 4 files changed, 7 insertions(+), 141 deletions(-)
 delete mode 100644 package/giflib/0001-Makefile-add-targets-to-manage-static-building.patch
 delete mode 100644 package/giflib/0002-Fix-several-defects-found-by-Coverity-scan.patch
package/giflib/0001-Makefile-add-targets-to-manage-static-building.patch deleted +0 -73
deleted file mode 100644
index 31d7542e60..0000000000
@@ -1,73 +0,0 @@
-From 409af8210f2256eed4d2c73083aa75975f03424b Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Fri, 12 Jul 2019 12:20:38 +0200
-Subject: [PATCH] Makefile: add targets to manage static building
-
-Add static-lib, shared-lib, install-static-lib and install-shared-lib
-targets to allow the user to build giflib when dynamic library support
-is not available or enable on the toolchain
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Dario: make the patch to be applied with fuzz factor 0]
-Signed-off-by: Dario Binacchi <[email protected]>
-Upstream: https://sourceforge.net/p/giflib/code/merge-requests/7
----
- Makefile | 18 ++++++++++++++----
- 1 file changed, 14 insertions(+), 4 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 87966a96cd4f..4a93aace54b8 100644
---- a/Makefile
-+++ b/Makefile
-@@ -87,13 +87,20 @@ LIBUTILSO	= libutil.$(SOEXTENSION)
- LIBUTILSOMAJOR	= libutil.$(LIBMAJOR).$(SOEXTENSION)
- endif
- 
--all: $(LIBGIFSO) libgif.a $(LIBUTILSO) libutil.a $(UTILS)
-+SHARED_LIBS = $(LIBGIFSO) $(LIBUTILSO)
-+STATIC_LIBS = libgif.a libutil.a
-+
-+all: shared-lib static-lib $(UTILS)
- ifeq ($(UNAME), Darwin)
- else
- 	$(MAKE) -C doc
- endif
- 
--$(UTILS):: libgif.a libutil.a
-+$(UTILS):: $(STATIC_LIBS)
-+
-+shared-lib: $(SHARED_LIBS)
-+
-+static-lib: $(STATIC_LIBS)
- 
- $(LIBGIFSO): $(OBJECTS) $(HEADERS)
- ifeq ($(UNAME), Darwin)
-@@ -116,7 +123,7 @@ libutil.a: $(UOBJECTS) $(UHEADERS)
- 	$(AR) rcs libutil.a $(UOBJECTS)
- 
- clean:
--	rm -f $(UTILS) $(TARGET) libgetarg.a libgif.a $(LIBGIFSO) libutil.a $(LIBUTILSO) *.o
-+	rm -f $(UTILS) $(TARGET) libgetarg.a $(SHARED_LIBS) $(STATIC_LIBS) *.o
- 	rm -f $(LIBGIFSOVER)
- 	rm -f $(LIBGIFSOMAJOR)
- 	rm -fr doc/*.1 *.html doc/staging
-@@ -141,12 +148,15 @@ install-bin: $(INSTALLABLE)
- install-include:
- 	$(INSTALL) -d "$(DESTDIR)$(INCDIR)"
- 	$(INSTALL) -m 644 gif_lib.h "$(DESTDIR)$(INCDIR)"
--install-lib:
-+install-static-lib:
- 	$(INSTALL) -d "$(DESTDIR)$(LIBDIR)"
- 	$(INSTALL) -m 644 libgif.a "$(DESTDIR)$(LIBDIR)/libgif.a"
-+install-shared-lib:
-+	$(INSTALL) -d "$(DESTDIR)$(LIBDIR)"
- 	$(INSTALL) -m 755 $(LIBGIFSO) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSOVER)"
- 	ln -sf $(LIBGIFSOVER) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSOMAJOR)"
- 	ln -sf $(LIBGIFSOMAJOR) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSO)"
-+install-lib: install-static-lib install-shared-lib
- install-man:
- 	$(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1"
- 	$(INSTALL) -m 644 $(MANUAL_PAGES) "$(DESTDIR)$(MANDIR)/man1"
--- 
-2.43.0
-
package/giflib/0002-Fix-several-defects-found-by-Coverity-scan.patch deleted +0 -61

61 lines not on this page · raw message

package/giflib/giflib.hash +5 -5
index dcc384a523..8c1b1d06f5 100644
@@ -1,6 +1,6 @@
-# From https://sourceforge.net/projects/giflib/files/giflib-5.x/
-md5  913dd251492134e235ee3c9a91987a4d  giflib-5.2.2.tar.gz
-sha1  608ba98d2dd8d03dfa7476f434d57de50a33e10b  giflib-5.2.2.tar.gz
+# From https://sourceforge.net/projects/giflib/files/giflib-6.x/
+md5  d4ad42777ef499a7c6f8aabf2ccf7716  giflib-6.1.2.tar.gz
+sha1  bf0440c7aee5a0a151d7abbbe3657d3c1998ce86  giflib-6.1.2.tar.gz
 # Locally computed
-sha256  be7ffbd057cadebe2aa144542fd90c6838c6a083b5e8a9048b8ee3b66b29d5fb  giflib-5.2.2.tar.gz
-sha256  0c9b7990ecdca88b676db232c226548ac408b279f550d424d996f0d83591dd8e  COPYING
+sha256  2421abb54f5906b14965d28a278fb49e1ec9fe5ebbc56244dd012383a973d5c0  giflib-6.1.2.tar.gz
+sha256  ed5d90cb4a041bddad679470a071302ab05ae5d0ec2cf8f9c97ad7b2708751e6  COPYING
package/giflib/giflib.mk +2 -2
index 00922ce2db..bb563ee689 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-GIFLIB_VERSION_MAJOR = 5
-GIFLIB_VERSION = $(GIFLIB_VERSION_MAJOR).2.2
+GIFLIB_VERSION_MAJOR = 6
+GIFLIB_VERSION = $(GIFLIB_VERSION_MAJOR).1.2
 GIFLIB_SITE = https://sourceforge.net/projects/giflib/files/giflib-$(GIFLIB_VERSION_MAJOR).x
 GIFLIB_INSTALL_STAGING = YES
 GIFLIB_LICENSE = MIT
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Re: [Buildroot] [PATCH 3/3] package/giflib: security bump version to 6.1.2

In reply of:

Quoted 47 lines

https://sourceforge.net/p/giflib/code/ci/6.1.2/tree/NEWS

Patch 0001 was removed because it is included in this release:
https://sourceforge.net/p/giflib/code/ci/dd8b375e2a5ddfabb9709c99e38bbe0fd3b212a4/

Patch 0002 is not needed anymore because upstream removed gif2rgb from the list of installable make targets:
https://sourceforge.net/p/giflib/code/ci/35dc68311aab89bb678ac422d1d18cd37246f803/

Updated license hash due to upstream commit
https://sourceforge.net/p/giflib/code/ci/4a425b734811799662762b3edc46458c180e3770/

The CVEs mentioned in the release notes (CVE-2021-40633 & CVE-2025-31344) are related to gif2rgb only.

Build-tested using this defconfig:

BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_PACKAGE_KODI=y
BR2_PACKAGE_EFL=y
# BR2_PACKAGE_EFL_EEZE is not set
# BR2_PACKAGE_EFL_FONTCONFIG is not set # BR2_PACKAGE_EFL_GSTREAMER1 is not set # BR2_PACKAGE_EFL_LIBFRIBIDI is not set # BR2_PACKAGE_EFL_ELPUT is not set
# BR2_PACKAGE_EFL_LIBSNDFILE is not set # BR2_PACKAGE_EFL_PULSEAUDIO is not set # BR2_PACKAGE_EFL_UTIL_LINUX_LIBMOUNT is not set BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE=y BR2_PACKAGE_MESA3D_OPENGL_EGL=y BR2_PACKAGE_MESA3D_OPENGL_ES=y BR2_PACKAGE_XORG7=y
BR2_PACKAGE_LUAJIT=y BR2_PACKAGE_OPENJDK=y BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON3_PY_ONLY=y BR2_PACKAGE_IMLIB2=y BR2_PACKAGE_IMLIB2_GIF=y BR2_PACKAGE_LEPTONICA=y BR2_PACKAGE_LIBGDIPLUS=y BR2_PACKAGE_WEBP=y
BR2_PACKAGE_DLIB=y
BR2_PACKAGE_GDAL=y

Quoted 1 line

Applied to 2026.02.x. Thanks

Quoted 193 lines
---
 ...dd-targets-to-manage-static-building.patch | 73 -------------------
 ...veral-defects-found-by-Coverity-scan.patch | 61 ----------------
 package/giflib/giflib.hash                    | 10 +--
 package/giflib/giflib.mk                      |  4 +-
 4 files changed, 7 insertions(+), 141 deletions(-)
 delete mode 100644 package/giflib/0001-Makefile-add-targets-to-manage-static-building.patch
 delete mode 100644 package/giflib/0002-Fix-several-defects-found-by-Coverity-scan.patch
package/giflib/0001-Makefile-add-targets-to-manage-static-building.patch deleted +0 -73
deleted file mode 100644
index 31d7542e60..0000000000
@@ -1,73 +0,0 @@
-From 409af8210f2256eed4d2c73083aa75975f03424b Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Fri, 12 Jul 2019 12:20:38 +0200
-Subject: [PATCH] Makefile: add targets to manage static building
-
-Add static-lib, shared-lib, install-static-lib and install-shared-lib
-targets to allow the user to build giflib when dynamic library support
-is not available or enable on the toolchain
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Dario: make the patch to be applied with fuzz factor 0]
-Signed-off-by: Dario Binacchi <[email protected]>
-Upstream: https://sourceforge.net/p/giflib/code/merge-requests/7
----
- Makefile | 18 ++++++++++++++----
- 1 file changed, 14 insertions(+), 4 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 87966a96cd4f..4a93aace54b8 100644
---- a/Makefile
-+++ b/Makefile
-@@ -87,13 +87,20 @@ LIBUTILSO	= libutil.$(SOEXTENSION)
- LIBUTILSOMAJOR	= libutil.$(LIBMAJOR).$(SOEXTENSION)
- endif
- 
--all: $(LIBGIFSO) libgif.a $(LIBUTILSO) libutil.a $(UTILS)
-+SHARED_LIBS = $(LIBGIFSO) $(LIBUTILSO)
-+STATIC_LIBS = libgif.a libutil.a
-+
-+all: shared-lib static-lib $(UTILS)
- ifeq ($(UNAME), Darwin)
- else
- 	$(MAKE) -C doc
- endif
- 
--$(UTILS):: libgif.a libutil.a
-+$(UTILS):: $(STATIC_LIBS)
-+
-+shared-lib: $(SHARED_LIBS)
-+
-+static-lib: $(STATIC_LIBS)
- 
- $(LIBGIFSO): $(OBJECTS) $(HEADERS)
- ifeq ($(UNAME), Darwin)
-@@ -116,7 +123,7 @@ libutil.a: $(UOBJECTS) $(UHEADERS)
- 	$(AR) rcs libutil.a $(UOBJECTS)
- 
- clean:
--	rm -f $(UTILS) $(TARGET) libgetarg.a libgif.a $(LIBGIFSO) libutil.a $(LIBUTILSO) *.o
-+	rm -f $(UTILS) $(TARGET) libgetarg.a $(SHARED_LIBS) $(STATIC_LIBS) *.o
- 	rm -f $(LIBGIFSOVER)
- 	rm -f $(LIBGIFSOMAJOR)
- 	rm -fr doc/*.1 *.html doc/staging
-@@ -141,12 +148,15 @@ install-bin: $(INSTALLABLE)
- install-include:
- 	$(INSTALL) -d "$(DESTDIR)$(INCDIR)"
- 	$(INSTALL) -m 644 gif_lib.h "$(DESTDIR)$(INCDIR)"
--install-lib:
-+install-static-lib:
- 	$(INSTALL) -d "$(DESTDIR)$(LIBDIR)"
- 	$(INSTALL) -m 644 libgif.a "$(DESTDIR)$(LIBDIR)/libgif.a"
-+install-shared-lib:
-+	$(INSTALL) -d "$(DESTDIR)$(LIBDIR)"
- 	$(INSTALL) -m 755 $(LIBGIFSO) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSOVER)"
- 	ln -sf $(LIBGIFSOVER) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSOMAJOR)"
- 	ln -sf $(LIBGIFSOMAJOR) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSO)"
-+install-lib: install-static-lib install-shared-lib
- install-man:
- 	$(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1"
- 	$(INSTALL) -m 644 $(MANUAL_PAGES) "$(DESTDIR)$(MANDIR)/man1"
--- 
-2.43.0
-
package/giflib/0002-Fix-several-defects-found-by-Coverity-scan.patch deleted +0 -61
deleted file mode 100644
index 77f21b402e..0000000000
@@ -1,61 +0,0 @@
-From 7c3bce4add77944e5b479ef5da81ae7fd71a7e95 Mon Sep 17 00:00:00 2001
-From: Sandro Mani <[email protected]>
-Date: Tue, 5 Dec 2023 16:38:48 -0700
-Subject: [PATCH] Fix several defects found by Coverity scan
-
-From: giflib-5.2.1-17.fc39.src.rpm
-Upstream: Not submitted
-
-Signed-off-by: Sandro Mani <[email protected]>
-Signed-off-by: Adam Duskett <[email protected]>
-[Fabrice: updated for 5.2.2]
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Dario: make the patch to be applied with fuzz factor 0]
-Signed-off-by: Dario Binacchi <[email protected]>
----
- gif2rgb.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/gif2rgb.c b/gif2rgb.c
-index d51226d65d3d..50c43ae44ee2 100644
---- a/gif2rgb.c
-+++ b/gif2rgb.c
-@@ -165,6 +165,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
- 	/* Open stdout for the output file: */
- 	if ((GifFile = EGifOpenFileHandle(1, &Error)) == NULL) {
- 		PrintGifError(Error);
-+		free(OutputBuffer);
-+		GifFreeMapObject(OutputColorMap);
- 		exit(EXIT_FAILURE);
- 	}
- 
-@@ -173,6 +175,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
- 	    EGifPutImageDesc(GifFile, 0, 0, Width, Height, false, NULL) ==
- 	        GIF_ERROR) {
- 		PrintGifError(Error);
-+		free(OutputBuffer);
-+		GifFreeMapObject(OutputColorMap);
- 		exit(EXIT_FAILURE);
- 	}
- 
-@@ -182,6 +186,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
- 
- 	for (i = 0; i < Height; i++) {
- 		if (EGifPutLine(GifFile, Ptr, Width) == GIF_ERROR) {
-+			free(OutputBuffer);
-+			GifFreeMapObject(OutputColorMap);
- 			exit(EXIT_FAILURE);
- 		}
- 		GifQprintf("\b\b\b\b%-4d", Height - i - 1);
-@@ -191,6 +197,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
- 
- 	if (EGifCloseFile(GifFile, &Error) == GIF_ERROR) {
- 		PrintGifError(Error);
-+		free(OutputBuffer);
-+		GifFreeMapObject(OutputColorMap);
- 		exit(EXIT_FAILURE);
- 	}
- }
--- 
-2.43.0
-
package/giflib/giflib.hash +5 -5
index dcc384a523..8c1b1d06f5 100644
@@ -1,6 +1,6 @@
-# From https://sourceforge.net/projects/giflib/files/giflib-5.x/
-md5  913dd251492134e235ee3c9a91987a4d  giflib-5.2.2.tar.gz
-sha1  608ba98d2dd8d03dfa7476f434d57de50a33e10b  giflib-5.2.2.tar.gz
+# From https://sourceforge.net/projects/giflib/files/giflib-6.x/
+md5  d4ad42777ef499a7c6f8aabf2ccf7716  giflib-6.1.2.tar.gz
+sha1  bf0440c7aee5a0a151d7abbbe3657d3c1998ce86  giflib-6.1.2.tar.gz
 # Locally computed
-sha256  be7ffbd057cadebe2aa144542fd90c6838c6a083b5e8a9048b8ee3b66b29d5fb  giflib-5.2.2.tar.gz
-sha256  0c9b7990ecdca88b676db232c226548ac408b279f550d424d996f0d83591dd8e  COPYING
+sha256  2421abb54f5906b14965d28a278fb49e1ec9fe5ebbc56244dd012383a973d5c0  giflib-6.1.2.tar.gz
+sha256  ed5d90cb4a041bddad679470a071302ab05ae5d0ec2cf8f9c97ad7b2708751e6  COPYING
package/giflib/giflib.mk +2 -2
index 00922ce2db..bb563ee689 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-GIFLIB_VERSION_MAJOR = 5
-GIFLIB_VERSION = $(GIFLIB_VERSION_MAJOR).2.2
+GIFLIB_VERSION_MAJOR = 6
+GIFLIB_VERSION = $(GIFLIB_VERSION_MAJOR).1.2
 GIFLIB_SITE = https://sourceforge.net/projects/giflib/files/giflib-$(GIFLIB_VERSION_MAJOR).x
 GIFLIB_INSTALL_STAGING = YES
 GIFLIB_LICENSE = MIT
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
In reply to Bernd Kuhls
Quoted 7 lines · Bernd Kuhls

Upstream moved all tarballs to new locations:
https://sourceforge.net/p/giflib/bugs/190/

Fixes:
https://autobuild.buildroot.net/results/c7f/c7f918fe7c879706c5a5875ea11c5f8b57007a85/

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw
In reply to Bernd Kuhls

In reply of:

Quoted 7 lines

Upstream moved all tarballs to new locations:
https://sourceforge.net/p/giflib/bugs/190/

Fixes:
https://autobuild.buildroot.net/results/c7f/c7f918fe7c879706c5a5875ea11c5f8b57007a85/

Applied to 2025.02.x & 2026.02.x. Thanks

Quoted 38 lines
---
 package/giflib/giflib.hash | 2 +-
 package/giflib/giflib.mk   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
package/giflib/giflib.hash +1 -1
index f11d4f1505..dcc384a523 100644
@@ -1,4 +1,4 @@
-# From http://sourceforge.net/projects/giflib/files
+# From https://sourceforge.net/projects/giflib/files/giflib-5.x/
 md5  913dd251492134e235ee3c9a91987a4d  giflib-5.2.2.tar.gz
 sha1  608ba98d2dd8d03dfa7476f434d57de50a33e10b  giflib-5.2.2.tar.gz
 # Locally computed
package/giflib/giflib.mk +3 -2
index f37ec8af21..00922ce2db 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-GIFLIB_VERSION = 5.2.2
-GIFLIB_SITE = http://downloads.sourceforge.net/project/giflib
+GIFLIB_VERSION_MAJOR = 5
+GIFLIB_VERSION = $(GIFLIB_VERSION_MAJOR).2.2
+GIFLIB_SITE = https://sourceforge.net/projects/giflib/files/giflib-$(GIFLIB_VERSION_MAJOR).x
 GIFLIB_INSTALL_STAGING = YES
 GIFLIB_LICENSE = MIT
 GIFLIB_LICENSE_FILES = COPYING
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot