From f52bfdff105eccbbd5327802cd62cb7e1fdc57a9c5ec37859735b47b19b3078b Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 7 Feb 2016 18:25:10 +0000 Subject: [PATCH] Accepting request 358212 from home:Guillaume_G:branches:Application:Geo Fix Tumbleweed and 13.1 builds OBS-URL: https://build.opensuse.org/request/show/358212 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=100 --- giflib_5.1.0.patch | 14 ++++++++++++++ mapserver.changes | 12 ++++++++++++ mapserver.spec | 9 ++++++--- swig_3.patch | 17 +++++++++++++++++ 4 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 giflib_5.1.0.patch create mode 100644 swig_3.patch diff --git a/giflib_5.1.0.patch b/giflib_5.1.0.patch new file mode 100644 index 0000000..547f089 --- /dev/null +++ b/giflib_5.1.0.patch @@ -0,0 +1,14 @@ +--- mapimageio.c.orig 2016-02-05 15:03:30.375271083 +0100 ++++ mapimageio.c 2016-02-05 15:15:29.994938301 +0100 +@@ -1303,7 +1303,11 @@ int readGIF(char *path, rasterBufferObj + + } while (recordType != TERMINATE_RECORD_TYPE); + ++#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5 && defined GIFLIB_MINOR && GIFLIB_MINOR >= 1 ++ if (DGifCloseFile(image, &errcode) == GIF_ERROR) { ++#else + if (DGifCloseFile(image) == GIF_ERROR) { ++#endif + #if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5 + msSetError(MS_MISCERR,"failed to close gif after loading: %s","readGIF()", gif_error_msg(image->Error)); + #else diff --git a/mapserver.changes b/mapserver.changes index 2ae5885..d734fc7 100644 --- a/mapserver.changes +++ b/mapserver.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Fri Feb 5 14:22:24 UTC 2016 - guillaume@opensuse.org + +- Fix build when 'php_mapscript.so' is only file installed and no + *.so.1 and *.so%{version} (Fix openSUSE 13.1 build) + +------------------------------------------------------------------- +Fri Feb 5 14:10:02 UTC 2016 - guillaume@opensuse.org + +- Add giflib_5.1.0.patch to fix compilation with giflib 5.1.0+ +- Add swig_3.patch to fix compilation with swig 3 + ------------------------------------------------------------------- Sat Aug 30 18:34:09 UTC 2014 - bruno@ioda-net.ch diff --git a/mapserver.spec b/mapserver.spec index 725f0b1..e5f2e0a 100644 --- a/mapserver.spec +++ b/mapserver.spec @@ -40,6 +40,9 @@ Patch2: 4788-php-mapscript.patch Patch3: 4788-python-mapscript.patch Patch4: 4875-incorrect-blending-tif.patch Patch5: 4912-php56-php-input.patch +# Fix Build with GIFLIB >= 5.1.0 +Patch6: giflib_5.1.0.patch +Patch7: swig_3.patch BuildRequires: FastCGI-devel BuildRequires: apache2-devel BuildRequires: autoconf @@ -208,6 +211,8 @@ against the C Mapserver library. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p0 +%patch7 -p0 %build -n %{name}-%{fileversion} @@ -361,9 +366,7 @@ rm -rf %{buildroot} %doc mapscript/php/README %doc mapscript/php/examples %config(noreplace) %{_sysconfdir}/php5/conf.d/mapscript.ini -%{_libdir}/php5/extensions/php_mapscript.so -%{_libdir}/php5/extensions/php_mapscript.so.1 -%{_libdir}/php5/extensions/php_mapscript.so.%{version} +%{_libdir}/php5/extensions/php_mapscript.so* %files -n perl-mapscript %defattr(-,root,root) diff --git a/swig_3.patch b/swig_3.patch new file mode 100644 index 0000000..9a72daf --- /dev/null +++ b/swig_3.patch @@ -0,0 +1,17 @@ +--- mapscript/java/javamodule.i.orig 2016-02-05 15:33:04.687868919 +0100 ++++ mapscript/java/javamodule.i 2016-02-05 15:37:36.364273961 +0100 +@@ -1,9 +1,11 @@ + + %include arrays_java.i + +-# Uncomment this if you wish to hace enums wrapped in an interface compatible +-# with that generated by swig 1.3.21 (tests wont compile, though) +-#%include enumsimple.swg ++/* ++# Uncomment this if you wish to hace enums wrapped in an interface compatible ++# with that generated by swig 1.3.21 (tests wont compile, though) ++#%include enumsimple.swg ++*/ + + /* Mapscript library loader */ +