pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/gdal-lib Fix Jasper update fallout.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55c833aca512
branches:  trunk
changeset: 356038:55c833aca512
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Dec 17 23:24:31 2016 +0000

description:
Fix Jasper update fallout.

diffstat:

 geography/gdal-lib/Makefile                                            |   5 +++-
 geography/gdal-lib/distinfo                                            |   3 +-
 geography/gdal-lib/patches/patch-frmts_jpeg2000_jpeg2000__vsil__io.cpp |  13 ++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r d5bf21390d0e -r 55c833aca512 geography/gdal-lib/Makefile
--- a/geography/gdal-lib/Makefile       Sat Dec 17 23:22:45 2016 +0000
+++ b/geography/gdal-lib/Makefile       Sat Dec 17 23:24:31 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.84 2016/12/04 05:17:28 ryoon Exp $
+# $NetBSD: Makefile,v 1.85 2016/12/17 23:24:31 joerg Exp $
 
 DISTNAME=      gdal-1.11.3
 PKGNAME=       ${DISTNAME:S/gdal/gdal-lib/}
@@ -39,6 +39,9 @@
 
 INSTALLATION_DIRS=     bin include lib ${PKGMANDIR}/man1 share/gdal
 
+# jasper uses SIZE_MAX and friends in its headers.
+CPPFLAGS+=     -D__STDC_LIMIT_MACROS
+
 .include "../../devel/netcdf/buildlink3.mk"
 .include "../../devel/pcre/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
diff -r d5bf21390d0e -r 55c833aca512 geography/gdal-lib/distinfo
--- a/geography/gdal-lib/distinfo       Sat Dec 17 23:22:45 2016 +0000
+++ b/geography/gdal-lib/distinfo       Sat Dec 17 23:24:31 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2015/12/12 15:27:50 wiedi Exp $
+$NetBSD: distinfo,v 1.29 2016/12/17 23:24:31 joerg Exp $
 
 SHA1 (gdal-1.11.3.tar.gz) = f0cfa13f62a2ad0f545327897cb90f0f0e08bc63
 RMD160 (gdal-1.11.3.tar.gz) = 8373d8d83d4614cb4086d4048531a4845c588649
@@ -6,3 +6,4 @@
 Size (gdal-1.11.3.tar.gz) = 10758778 bytes
 SHA1 (patch-GDALmake.opt.in) = f8096596d1b808d0c0a02e95ad5d0664b1c895eb
 SHA1 (patch-frmts_grib_degrib18_degrib_myutil.c) = 6179ba75d77607cefa6f2413c50443054308cdd3
+SHA1 (patch-frmts_jpeg2000_jpeg2000__vsil__io.cpp) = 89d5d3d8e1604c76cc22ed931a170dfe61ad6880
diff -r d5bf21390d0e -r 55c833aca512 geography/gdal-lib/patches/patch-frmts_jpeg2000_jpeg2000__vsil__io.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gdal-lib/patches/patch-frmts_jpeg2000_jpeg2000__vsil__io.cpp    Sat Dec 17 23:24:31 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-frmts_jpeg2000_jpeg2000__vsil__io.cpp,v 1.1 2016/12/17 23:24:31 joerg Exp $
+
+--- frmts/jpeg2000/jpeg2000_vsil_io.cpp.orig   2016-12-17 20:05:26.504722084 +0000
++++ frmts/jpeg2000/jpeg2000_vsil_io.cpp
+@@ -206,7 +206,7 @@ static void JPEG2000_VSIL_jas_stream_ini
+                       /* The buffer must be large enough to accommodate maximum
+                         putback. */
+                       assert(bufsize > JAS_STREAM_MAXPUTBACK);
+-                      stream->bufbase_ = JAS_CAST(uchar *, buf);
++                      stream->bufbase_ = JAS_CAST(unsigned char *, buf);
+                       stream->bufsize_ = bufsize - JAS_STREAM_MAXPUTBACK;
+               }
+       } else {



Home | Main Index | Thread Index | Old Index