1 |
commit: 6bd37a439b8ad81c4bd536351b5fd7c008b1819e |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 19 01:23:00 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 19 01:23:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bd37a43 |
7 |
|
8 |
media-libs/libextractor: add upstream giflib-5 fix #571902 |
9 |
|
10 |
.../files/libextractor-1.3-giflib-5.patch | 37 ++++++++++++++++++++++ |
11 |
media-libs/libextractor/libextractor-1.3.ebuild | 2 ++ |
12 |
2 files changed, 39 insertions(+) |
13 |
|
14 |
diff --git a/media-libs/libextractor/files/libextractor-1.3-giflib-5.patch b/media-libs/libextractor/files/libextractor-1.3-giflib-5.patch |
15 |
new file mode 100644 |
16 |
index 0000000..ea0aeeb |
17 |
--- /dev/null |
18 |
+++ b/media-libs/libextractor/files/libextractor-1.3-giflib-5.patch |
19 |
@@ -0,0 +1,37 @@ |
20 |
+https://bugs.gentoo.org/571902 |
21 |
+ |
22 |
+------------------------------------------------------------------------ |
23 |
+r34095 | LRN | 2014-07-31 10:58:51 -0400 (Thu, 31 Jul 2014) | 1 line |
24 |
+ |
25 |
+Add giflib-5.1.0 compatibility |
26 |
+ |
27 |
+Index: src/plugins/gif_extractor.c |
28 |
+=================================================================== |
29 |
+--- src/plugins/gif_extractor.c (revision 34094) |
30 |
++++ src/plugins/gif_extractor.c (revision 34095) |
31 |
+@@ -78,7 +78,11 @@ EXTRACTOR_gif_extract_method (struct EXT |
32 |
+ if (gif_file == NULL || gif_error != 0) |
33 |
+ { |
34 |
+ if (gif_file != NULL) |
35 |
++#if GIFLIB_MAJOR < 5 || GIFLIB_MINOR < 1 |
36 |
+ EGifCloseFile (gif_file); |
37 |
++#else |
38 |
++ EGifCloseFile (gif_file, NULL); |
39 |
++#endif |
40 |
+ return; /* not a GIF */ |
41 |
+ } |
42 |
+ #endif |
43 |
+@@ -133,7 +137,11 @@ EXTRACTOR_gif_extract_method (struct EXT |
44 |
+ DGifGetExtensionNext(gif_file, &ext)) && |
45 |
+ (NULL != ext) ) ; /* keep going */ |
46 |
+ } |
47 |
++#if defined (GIF_LIB_VERSION) || GIFLIB_MAJOR < 5 || GIFLIB_MINOR < 1 |
48 |
+ DGifCloseFile (gif_file); |
49 |
++#else |
50 |
++ DGifCloseFile (gif_file, NULL); |
51 |
++#endif |
52 |
+ } |
53 |
+ |
54 |
+ /* end of gif_extractor.c */ |
55 |
+ |
56 |
+------------------------------------------------------------------------ |
57 |
|
58 |
diff --git a/media-libs/libextractor/libextractor-1.3.ebuild b/media-libs/libextractor/libextractor-1.3.ebuild |
59 |
index 1faf226..08e3508 100644 |
60 |
--- a/media-libs/libextractor/libextractor-1.3.ebuild |
61 |
+++ b/media-libs/libextractor/libextractor-1.3.ebuild |
62 |
@@ -55,6 +55,8 @@ DEPEND="${RDEPEND} |
63 |
DOCS="AUTHORS ChangeLog NEWS README TODO" |
64 |
|
65 |
src_prepare() { |
66 |
+ epatch "${FILESDIR}"/${P}-giflib-5.patch #571902 |
67 |
+ |
68 |
# m4/ax_create_pkgconfig_info.m4 is passing environment LDFLAGS to Libs: |
69 |
sed -i \ |
70 |
-e '/^ax_create_pkgconfig_ldflags=/s:$LDFLAGS ::' \ |