package/giflib: update the patches to be applied with fuzz 0

This commit allows the package patches to be applied with fuzz factor 0.
The fuzz factor specifies how many lines of the patch can be inexactly
matched, so the value 0 requires all lines to be exactly matched.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
Dario Binacchi
2024-05-22 09:02:27 +02:00
committed by Arnout Vandecappelle
parent 06b5ce9f04
commit edb5589aeb
2 changed files with 21 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
From 487407d722714f13e8a06d1a9d89f48a5738191e Mon Sep 17 00:00:00 2001 From 409af8210f2256eed4d2c73083aa75975f03424b Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com> From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Fri, 12 Jul 2019 12:20:38 +0200 Date: Fri, 12 Jul 2019 12:20:38 +0200
Subject: [PATCH] Makefile: add targets to manage static building Subject: [PATCH] Makefile: add targets to manage static building
@@ -8,16 +8,18 @@ targets to allow the user to build giflib when dynamic library support
is not available or enable on the toolchain is not available or enable on the toolchain
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Dario: make the patch to be applied with fuzz factor 0]
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Upstream: https://sourceforge.net/p/giflib/code/merge-requests/7 Upstream: https://sourceforge.net/p/giflib/code/merge-requests/7
--- ---
Makefile | 18 ++++++++++++++---- Makefile | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-) 1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile diff --git a/Makefile b/Makefile
index b2bf6de..111f52f 100644 index 87966a96cd4f..4a93aace54b8 100644
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -91,13 +91,20 @@ LIBUTILSO = libutil.$(SOEXTENSION) @@ -87,13 +87,20 @@ LIBUTILSO = libutil.$(SOEXTENSION)
LIBUTILSOMAJOR = libutil.$(LIBMAJOR).$(SOEXTENSION) LIBUTILSOMAJOR = libutil.$(LIBMAJOR).$(SOEXTENSION)
endif endif
@@ -40,7 +42,7 @@ index b2bf6de..111f52f 100644
$(LIBGIFSO): $(OBJECTS) $(HEADERS) $(LIBGIFSO): $(OBJECTS) $(HEADERS)
ifeq ($(UNAME), Darwin) ifeq ($(UNAME), Darwin)
@@ -120,7 +127,7 @@ libutil.a: $(UOBJECTS) $(UHEADERS) @@ -116,7 +123,7 @@ libutil.a: $(UOBJECTS) $(UHEADERS)
$(AR) rcs libutil.a $(UOBJECTS) $(AR) rcs libutil.a $(UOBJECTS)
clean: clean:
@@ -48,8 +50,8 @@ index b2bf6de..111f52f 100644
+ rm -f $(UTILS) $(TARGET) libgetarg.a $(SHARED_LIBS) $(STATIC_LIBS) *.o + rm -f $(UTILS) $(TARGET) libgetarg.a $(SHARED_LIBS) $(STATIC_LIBS) *.o
rm -f $(LIBGIFSOVER) rm -f $(LIBGIFSOVER)
rm -f $(LIBGIFSOMAJOR) rm -f $(LIBGIFSOMAJOR)
rm -fr doc/*.[17] *.html doc/staging rm -fr doc/*.1 *.html doc/staging
@@ -145,12 +152,15 @@ install-bin: $(INSTALLABLE) @@ -141,12 +148,15 @@ install-bin: $(INSTALLABLE)
install-include: install-include:
$(INSTALL) -d "$(DESTDIR)$(INCDIR)" $(INSTALL) -d "$(DESTDIR)$(INCDIR)"
$(INSTALL) -m 644 gif_lib.h "$(DESTDIR)$(INCDIR)" $(INSTALL) -m 644 gif_lib.h "$(DESTDIR)$(INCDIR)"
@@ -64,8 +66,8 @@ index b2bf6de..111f52f 100644
ln -sf $(LIBGIFSOMAJOR) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSO)" ln -sf $(LIBGIFSOMAJOR) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSO)"
+install-lib: install-static-lib install-shared-lib +install-lib: install-static-lib install-shared-lib
install-man: install-man:
$(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1" "$(DESTDIR)$(MANDIR)/man7" $(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1"
$(INSTALL) -m 644 $(MANUAL_PAGES_1:xml=1) "$(DESTDIR)$(MANDIR)/man1" $(INSTALL) -m 644 $(MANUAL_PAGES) "$(DESTDIR)$(MANDIR)/man1"
-- --
2.43.0 2.43.0

View File

@@ -1,4 +1,4 @@
From a1c48b91cd1cf1e9bf7077709b69f4bfd4c4abc7 Mon Sep 17 00:00:00 2001 From 7c3bce4add77944e5b479ef5da81ae7fd71a7e95 Mon Sep 17 00:00:00 2001
From: Sandro Mani <manisandro@gmail.com> From: Sandro Mani <manisandro@gmail.com>
Date: Tue, 5 Dec 2023 16:38:48 -0700 Date: Tue, 5 Dec 2023 16:38:48 -0700
Subject: [PATCH] Fix several defects found by Coverity scan Subject: [PATCH] Fix several defects found by Coverity scan
@@ -10,15 +10,17 @@ Signed-off-by: Sandro Mani <manisandro@gmail.com>
Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
[Fabrice: updated for 5.2.2] [Fabrice: updated for 5.2.2]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Dario: make the patch to be applied with fuzz factor 0]
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
--- ---
gif2rgb.c | 11 ++++++++++- gif2rgb.c | 8 ++++++++
1 file changed, 10 insertions(+), 1 deletion(-) 1 file changed, 8 insertions(+)
diff --git a/gif2rgb.c b/gif2rgb.c diff --git a/gif2rgb.c b/gif2rgb.c
index d9a469f..02cea41 100644 index d51226d65d3d..50c43ae44ee2 100644
--- a/gif2rgb.c --- a/gif2rgb.c
+++ b/gif2rgb.c +++ b/gif2rgb.c
@@ -170,6 +170,8 @@ static void SaveGif(GifByteType *OutputBuffer, @@ -165,6 +165,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
/* Open stdout for the output file: */ /* Open stdout for the output file: */
if ((GifFile = EGifOpenFileHandle(1, &Error)) == NULL) { if ((GifFile = EGifOpenFileHandle(1, &Error)) == NULL) {
PrintGifError(Error); PrintGifError(Error);
@@ -27,8 +29,8 @@ index d9a469f..02cea41 100644
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@@ -179,6 +181,8 @@ static void SaveGif(GifByteType *OutputBuffer, @@ -173,6 +175,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
EGifPutImageDesc(GifFile, 0, 0, Width, Height, false, NULL) == EGifPutImageDesc(GifFile, 0, 0, Width, Height, false, NULL) ==
GIF_ERROR) { GIF_ERROR) {
PrintGifError(Error); PrintGifError(Error);
+ free(OutputBuffer); + free(OutputBuffer);
@@ -36,7 +38,7 @@ index d9a469f..02cea41 100644
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@@ -187,6 +191,8 @@ static void SaveGif(GifByteType *OutputBuffer, @@ -182,6 +186,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
for (i = 0; i < Height; i++) { for (i = 0; i < Height; i++) {
if (EGifPutLine(GifFile, Ptr, Width) == GIF_ERROR) { if (EGifPutLine(GifFile, Ptr, Width) == GIF_ERROR) {
@@ -45,7 +47,7 @@ index d9a469f..02cea41 100644
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
GifQprintf("\b\b\b\b%-4d", Height - i - 1); GifQprintf("\b\b\b\b%-4d", Height - i - 1);
@@ -196,6 +203,8 @@ static void SaveGif(GifByteType *OutputBuffer, @@ -191,6 +197,8 @@ static void SaveGif(GifByteType *OutputBuffer, int Width, int Height,
if (EGifCloseFile(GifFile, &Error) == GIF_ERROR) { if (EGifCloseFile(GifFile, &Error) == GIF_ERROR) {
PrintGifError(Error); PrintGifError(Error);