diff --git a/giflib-5.2.2-no-imagemagick.patch b/giflib-5.2.2-no-imagemagick.patch new file mode 100644 index 0000000..55fa014 --- /dev/null +++ b/giflib-5.2.2-no-imagemagick.patch @@ -0,0 +1,11 @@ +--- giflib-5.2.2/doc/Makefile 2024-02-27 10:46:39.708678468 +0100 ++++ giflib-5.2.2/doc/Makefile 2024-02-27 10:47:13.905410961 +0100 +@@ -43,7 +43,7 @@ + + # Logo image file for HTML docs + giflib-logo.gif: ../pic/gifgrid.gif +- convert $^ -resize 50x50 $@ ++ cp $^ $@ + + # Philosophical choice: the website gets the internal manual pages + allhtml: $(XMLALL:.xml=.html) giflib-logo.gif diff --git a/giflib.changes b/giflib.changes index 5d81bb2..8697148 100644 --- a/giflib.changes +++ b/giflib.changes @@ -46,6 +46,9 @@ Mon Feb 26 11:29:46 UTC 2024 - Fridrich Strba * Address SF issue #167: Heap-Buffer Overflow during Image Saving in DumpScreen2RGB Function at Line 321 of gif2rgb.c - Added patch: + * giflib-5.2.2-no-imagemagick.patch + + do not use ImageMagick to resize one gif file. It creates a + build cycle. * 0001-Clean-up-memory-better-at-end-of-run-CVE-2021-40633.patch + upstream fix for CVE-2021-40633 (bsc#1200551) - Modified patches: diff --git a/giflib.spec b/giflib.spec index 91e5b17..efed13d 100644 --- a/giflib.spec +++ b/giflib.spec @@ -26,10 +26,11 @@ License: MIT URL: https://giflib.sourceforge.net/ Source: https://downloads.sf.net/giflib/%{name}-%{version}.tar.gz Source2: baselibs.conf +Patch0: giflib-5.2.2-no-imagemagick.patch Patch1: PIE.patch Patch2: reproducible.patch Patch3: 0001-Clean-up-memory-better-at-end-of-run-CVE-2021-40633.patch -BuildRequires: ImageMagick +BuildRequires: fdupes BuildRequires: libtool >= 2 %description @@ -78,6 +79,8 @@ for i in doc/*.1; do install -pm 0644 ${i} %{buildroot}%{_mandir}/man1/ done +%fdupes -s doc + # Drop static library rm -f %{buildroot}%{_libdir}/libgif.a