[packages/OpenSceneGraph] - fix building with giflib 51
baggins
baggins at pld-linux.org
Wed Oct 29 20:56:58 CET 2014
commit dc4bfa5c961269cb6f625237dd955cdea6bab8ae
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Oct 29 20:58:47 2014 +0100
- fix building with giflib 51
OpenSceneGraph.spec | 2 ++
giflib.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/OpenSceneGraph.spec b/OpenSceneGraph.spec
index c33a27d..1184429 100644
--- a/OpenSceneGraph.spec
+++ b/OpenSceneGraph.spec
@@ -9,6 +9,7 @@ Source0: http://www.openscenegraph.org/downloads/developer_releases/%{name}-%{ve
# Source0-md5: 6a7703a5b0d95b979dff1890fa0e0b53
#Source1: osg-doxygen-0.9.1.tar.gz
## Source1-md5: 7e6d785d1b763aaeae03c2dc4c148805
+Patch0: giflib.patch
URL: http://www.openscenegraph.org/projects/osg/
BuildRequires: QtCore-devel
BuildRequires: QtOpenGL-devel
@@ -78,6 +79,7 @@ Wtyczki dla biblioteki Open Scene Graph.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
diff --git a/giflib.patch b/giflib.patch
new file mode 100644
index 0000000..9662899
--- /dev/null
+++ b/giflib.patch
@@ -0,0 +1,11 @@
+--- OpenSceneGraph-3.3.2/src/osgPlugins/gif/ReaderWriterGIF.cpp~ 2013-06-03 16:04:02.000000000 +0200
++++ OpenSceneGraph-3.3.2/src/osgPlugins/gif/ReaderWriterGIF.cpp 2014-10-29 20:57:05.905350113 +0100
+@@ -561,7 +561,7 @@
+ *width_ret = giffile->SWidth;
+ *height_ret = giffile->SHeight;
+ *numComponents_ret = 4;
+- DGifCloseFile(giffile);
++ DGifCloseFile(giffile, &Error);
+ return buffer;
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/OpenSceneGraph.git/commitdiff/dc4bfa5c961269cb6f625237dd955cdea6bab8ae
More information about the pld-cvs-commit
mailing list