[packages/phantomjs] - rel 4; fix build with new giflib

arekm arekm at pld-linux.org
Tue Nov 4 21:07:58 CET 2014


commit 81043e25d18629f5d986a040c4ef5a798978c81a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Nov 4 21:07:53 2014 +0100

    - rel 4; fix build with new giflib

 giflib5.patch  | 14 ++++++++++++++
 phantomjs.spec |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/phantomjs.spec b/phantomjs.spec
index a7587ee..94b9bb8 100644
--- a/phantomjs.spec
+++ b/phantomjs.spec
@@ -1,7 +1,7 @@
 Summary:	Headless WebKit with a JavaScript API
 Name:		phantomjs
 Version:	1.9.7
-Release:	3
+Release:	4
 License:	BSD
 Group:		Applications/Networking
 Source0:	https://bitbucket.org/ariya/phantomjs/downloads/%{name}-%{version}-source.zip
diff --git a/giflib5.patch b/giflib5.patch
index 79b906a..6f9f094 100644
--- a/giflib5.patch
+++ b/giflib5.patch
@@ -46,3 +46,17 @@ index c0a010c..5a8647e 100644
 -- 
 1.8.5.5
 
+--- phantomjs-1.9.7/src/gif/gifwriter.cpp~	2014-11-04 21:03:45.000000000 +0100
++++ phantomjs-1.9.7/src/gif/gifwriter.cpp	2014-11-04 21:06:16.042996189 +0100
+@@ -128,7 +128,11 @@
+         }
+     }
+ 
++#if ((GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) || GIFLIB_MAJOR > 5)
++    EGifCloseFile(gif, NULL);
++#else
+     EGifCloseFile(gif);
++#endif
+     file.close();
+ 
+     delete [] cmap.Colors;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phantomjs.git/commitdiff/81043e25d18629f5d986a040c4ef5a798978c81a



More information about the pld-cvs-commit mailing list