media-libs/giflib: Add patch for GifQuantizeBuffer API
authorDavid Seifert <soap@gentoo.org>
Wed, 25 Dec 2019 17:43:39 +0000 (18:43 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 25 Dec 2019 17:43:39 +0000 (18:43 +0100)
* Patch taken from Archlinux

Bug: https://bugs.gentoo.org/682198
Package-Manager: Portage-2.3.83, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
media-libs/giflib/files/giflib-5.2.1-fix-missing-quantize-API-symbols.patch [new file with mode: 0644]
media-libs/giflib/giflib-5.2.1-r1.ebuild [moved from media-libs/giflib/giflib-5.2.1.ebuild with 96% similarity]

diff --git a/media-libs/giflib/files/giflib-5.2.1-fix-missing-quantize-API-symbols.patch b/media-libs/giflib/files/giflib-5.2.1-fix-missing-quantize-API-symbols.patch
new file mode 100644 (file)
index 0000000..5948f45
--- /dev/null
@@ -0,0 +1,32 @@
+From ff8d9a59e79b79657e64430730c35835a84db619 Mon Sep 17 00:00:00 2001
+From: anthraxx <levente@leventepolyak.net>
+Date: Tue, 2 Apr 2019 11:46:18 +0200
+Subject: [PATCH] fix missing quantize API symbols
+
+GifQuantizeBuffer is required by many libs and applications
+like mplayer, libgdiplus (mono) and others.
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index e4ded69..17d0a5c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -29,11 +29,11 @@ LIBPOINT=0
+ LIBVER=$(LIBMAJOR).$(LIBMINOR).$(LIBPOINT)
+ SOURCES = dgif_lib.c egif_lib.c gifalloc.c gif_err.c gif_font.c \
+-      gif_hash.c openbsd-reallocarray.c
++      gif_hash.c openbsd-reallocarray.c quantize.c
+ HEADERS = gif_hash.h  gif_lib.h  gif_lib_private.h
+ OBJECTS = $(SOURCES:.c=.o)
+-USOURCES = qprintf.c quantize.c getarg.c 
++USOURCES = qprintf.c getarg.c
+ UHEADERS = getarg.h
+ UOBJECTS = $(USOURCES:.c=.o)
+-- 
+2.21.0
+
similarity index 96%
rename from media-libs/giflib/giflib-5.2.1.ebuild
rename to media-libs/giflib/giflib-5.2.1-r1.ebuild
index 55389387daec3f5ecc9f757c4a335f4ecbd09abe..00d52ae80e36af2ef5fd9c1985509e7fca6bce10 100644 (file)
@@ -18,6 +18,7 @@ DEPEND="doc? ( app-text/xmlto )"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-5.1.9-gentoo.patch
+       "${FILESDIR}"/${PN}-5.2.1-fix-missing-quantize-API-symbols.patch
 )
 
 src_prepare() {