1 |
commit: 57c838e34ec8eafeac24b25623de170f8d9e0a8e |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Sun Dec 26 08:19:53 2021 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 19 19:49:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57c838e3 |
7 |
|
8 |
sci-libs/gdal: remove unused patches |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/23521 |
13 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
14 |
|
15 |
sci-libs/gdal/files/gdal-3.2.1-libdir.patch | 408 --------------------- |
16 |
.../files/gdal-3.3.0-configure-geos-disable.patch | 187 ---------- |
17 |
.../gdal/files/gdal-3.3.2-poppler-21.10.0.patch | 32 -- |
18 |
3 files changed, 627 deletions(-) |
19 |
|
20 |
diff --git a/sci-libs/gdal/files/gdal-3.2.1-libdir.patch b/sci-libs/gdal/files/gdal-3.2.1-libdir.patch |
21 |
deleted file mode 100644 |
22 |
index cc4537bca434..000000000000 |
23 |
--- a/sci-libs/gdal/files/gdal-3.2.1-libdir.patch |
24 |
+++ /dev/null |
25 |
@@ -1,408 +0,0 @@ |
26 |
-https://github.com/OSGeo/gdal/pull/3560 |
27 |
-https://bugs.gentoo.org/696106 |
28 |
---- a/configure.ac |
29 |
-+++ b/configure.ac |
30 |
-@@ -1121,11 +1121,11 @@ if test "$with_libz" = "external" -o "$with_libz" = "" -o "$with_libz" = "yes" ; |
31 |
- |
32 |
- elif test "$with_libz" != "no" -a "$with_libz" != "internal" ; then |
33 |
- |
34 |
-- LIBS="-L$with_libz -L$with_libz/lib $LIBS" |
35 |
-+ LIBS="-L$with_libz -L$with_libz/${libdir} $LIBS" |
36 |
- |
37 |
-- AC_CHECK_LIB(z,deflateInit_,LIBZ_SETTING=external,LIBZ_SETTING=internal,-L$with_libz -L$with_libz/lib -lz) |
38 |
-+ AC_CHECK_LIB(z,deflateInit_,LIBZ_SETTING=external,LIBZ_SETTING=internal,-L$with_libz -L$with_libz/${libdir} -lz) |
39 |
- if test "$LIBZ_SETTING" = "external" ; then |
40 |
-- AC_CHECK_LIB(z,inflateCopy,LIBZ_SETTING=external,LIBZ_SETTING=internal,-L$with_libz -L$with_libz/lib -lz) |
41 |
-+ AC_CHECK_LIB(z,inflateCopy,LIBZ_SETTING=external,LIBZ_SETTING=internal,-L$with_libz -L$with_libz/${libdir} -lz) |
42 |
- if test "$LIBZ_SETTING" = "external" ; then |
43 |
- AC_MSG_RESULT([using libz library from $with_libz]) |
44 |
- else |
45 |
-@@ -1166,7 +1166,7 @@ AC_ARG_WITH(libdeflate, |
46 |
- if test "$with_libdeflate" != "no" ; then |
47 |
- |
48 |
- if test "$with_libdeflate" != "" -a "$with_libdeflate" != "yes"; then |
49 |
-- AC_CHECK_LIB(deflate, libdeflate_zlib_decompress, [libdeflate_lib=yes], [libdeflate_lib=no],-L$with_libdeflate/lib) |
50 |
-+ AC_CHECK_LIB(deflate, libdeflate_zlib_decompress, [libdeflate_lib=yes], [libdeflate_lib=no],-L$with_libdeflate/${libdir}) |
51 |
- else |
52 |
- AC_CHECK_LIB(deflate, libdeflate_zlib_decompress, [libdeflate_lib=yes], [libdeflate_lib=no]) |
53 |
- fi |
54 |
-@@ -1197,7 +1197,7 @@ fi |
55 |
- if test "$LIBDEFLATE_SETTING" = "yes" ; then |
56 |
- if test "$with_libdeflate" != "" -a "$with_libdeflate" != "yes"; then |
57 |
- EXTRA_INCLUDES="-I$with_libdeflate/include $EXTRA_INCLUDES" |
58 |
-- LIBS="-L$with_libdeflate/lib -ldeflate $LIBS" |
59 |
-+ LIBS="-L$with_libdeflate/${libdir} -ldeflate $LIBS" |
60 |
- else |
61 |
- LIBS="-ldeflate $LIBS" |
62 |
- fi |
63 |
-@@ -1290,7 +1290,7 @@ else |
64 |
- LIBS="-L$with_libtiff -ltiff $LIBS" |
65 |
- EXTRA_INCLUDES="-I$with_libtiff $EXTRA_INCLUDES" |
66 |
- else |
67 |
-- LIBS="-L$with_libtiff/lib -ltiff $LIBS" |
68 |
-+ LIBS="-L$with_libtiff/${libdir} -ltiff $LIBS" |
69 |
- EXTRA_INCLUDES="-I$with_libtiff/include $EXTRA_INCLUDES" |
70 |
- fi |
71 |
- |
72 |
-@@ -1414,52 +1414,22 @@ else |
73 |
- fi |
74 |
- else |
75 |
- ORIG_LIBS="$LIBS" |
76 |
-- LIBS="-L$with_proj/lib -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
77 |
-+ LIBS="-L$with_proj/${libdir} -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
78 |
- AC_LANG_PUSH([C++]) |
79 |
- AC_CHECK_LIB(proj,proj_create_from_wkt,PROJ_FOUND=yes,PROJ_FOUND=no,) |
80 |
- AC_LANG_POP([C++]) |
81 |
- if test "$PROJ_FOUND" = "no"; then |
82 |
-- LIBS="-L$with_proj/lib -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
83 |
-+ LIBS="-L$with_proj/${libdir} -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
84 |
- unset ac_cv_lib_proj_proj_create_from_wkt |
85 |
- AC_LANG_PUSH([C++]) |
86 |
- AC_CHECK_LIB(proj,proj_create_from_wkt,PROJ_FOUND=yes,PROJ_FOUND=no,) |
87 |
- AC_LANG_POP([C++]) |
88 |
- fi |
89 |
- if test "$PROJ_FOUND" = "no"; then |
90 |
-- LIBS="-L$with_proj/lib64 -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
91 |
-- unset ac_cv_lib_proj_proj_create_from_wkt |
92 |
-- AC_LANG_PUSH([C++]) |
93 |
-- AC_CHECK_LIB(proj,proj_create_from_wkt,PROJ_FOUND=yes,PROJ_FOUND=no,) |
94 |
-- AC_LANG_POP([C++]) |
95 |
-- fi |
96 |
-- if test "$PROJ_FOUND" = "no"; then |
97 |
-- LIBS="-L$with_proj/lib -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
98 |
-+ LIBS="-L$with_proj/${libdir} -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
99 |
- AC_LANG_PUSH([C++]) |
100 |
- AC_CHECK_LIB(proj,internal_proj_create_from_wkt,PROJ_FOUND=yes,PROJ_FOUND=no,) |
101 |
- AC_LANG_POP([C++]) |
102 |
-- if test "$PROJ_FOUND" = "no"; then |
103 |
-- LIBS="-L$with_proj/lib -lproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
104 |
-- unset ac_cv_lib_proj_internal_proj_create_from_wkt |
105 |
-- AC_LANG_PUSH([C++]) |
106 |
-- AC_CHECK_LIB(proj,internal_proj_create_from_wkt,PROJ_FOUND=yes,PROJ_FOUND=no,) |
107 |
-- AC_LANG_POP([C++]) |
108 |
-- fi |
109 |
-- if test "$PROJ_FOUND" = "yes"; then |
110 |
-- PROJ_INCLUDE="-DPROJ_RENAME_SYMBOLS" |
111 |
-- fi |
112 |
-- fi |
113 |
-- if test "$PROJ_FOUND" = "no"; then |
114 |
-- LIBS="-L$with_proj/lib -linternalproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
115 |
-- AC_LANG_PUSH([C++]) |
116 |
-- AC_CHECK_LIB(internalproj,internal_proj_create_from_wkt,PROJ_FOUND=yes,PROJ_FOUND=no,) |
117 |
-- AC_LANG_POP([C++]) |
118 |
-- if test "$PROJ_FOUND" = "no"; then |
119 |
-- LIBS="-L$with_proj/lib -linternalproj $with_proj_extra_lib_for_test $ORIG_LIBS" |
120 |
-- unset ac_cv_lib_internal_proj_internal_proj_create_from_wkt |
121 |
-- AC_LANG_PUSH([C++]) |
122 |
-- AC_CHECK_LIB(internalproj,internal_proj_create_from_wkt,PROJ_FOUND=yes,PROJ_FOUND=no,) |
123 |
-- AC_LANG_POP([C++]) |
124 |
-- fi |
125 |
- if test "$PROJ_FOUND" = "yes"; then |
126 |
- PROJ_INCLUDE="-DPROJ_RENAME_SYMBOLS" |
127 |
- fi |
128 |
-@@ -1523,7 +1493,7 @@ elif test "$with_spatialite" = "dlopen"; then |
129 |
- SPATIALITE_SONAME="spatialite.so" |
130 |
- fi |
131 |
- else |
132 |
-- AC_CHECK_LIB(spatialite,spatialite_init,SPATIALITE_INIT_FOUND=yes,SPATIALITE_INIT_FOUND=no,-L$with_spatialite/lib -lspatialite) |
133 |
-+ AC_CHECK_LIB(spatialite,spatialite_init,SPATIALITE_INIT_FOUND=yes,SPATIALITE_INIT_FOUND=no,-L$with_spatialite/${libdir} -lspatialite) |
134 |
- |
135 |
- if test -f "$with_spatialite/include/spatialite.h" -a \ |
136 |
- "$SPATIALITE_INIT_FOUND" = "yes"; then |
137 |
-@@ -1531,7 +1501,7 @@ else |
138 |
- if test "$HAVE_SQLITE3" = "yes"; then |
139 |
- SPATIALITE_INC="-I$with_spatialite/include" |
140 |
- HAVE_SPATIALITE=yes |
141 |
-- SPATIALITE_LIBS="-L$with_spatialite/lib -lspatialite" |
142 |
-+ SPATIALITE_LIBS="-L$with_spatialite/${libdir} -lspatialite" |
143 |
- LIBS="$SQLITE3_LDFLAGS $LIBS $SPATIALITE_LIBS" |
144 |
- AC_MSG_RESULT(spatialite enabled) |
145 |
- else |
146 |
-@@ -1593,10 +1563,10 @@ if test "$with_zstd" = "" -o "$with_zstd" = "yes" ; then |
147 |
- fi |
148 |
- elif test "$with_zstd" != "" -a "$with_zstd" != "no"; then |
149 |
- |
150 |
-- AC_CHECK_LIB(zstd,ZSTD_decompressStream,ZSTD_SETTING=yes,ZSTD_SETTING=no,-L$with_zstd/lib) |
151 |
-+ AC_CHECK_LIB(zstd,ZSTD_decompressStream,ZSTD_SETTING=yes,ZSTD_SETTING=no,-L$with_zstd/${libdir}) |
152 |
- |
153 |
- if test "$ZSTD_SETTING" = "yes" -a -f "$with_zstd/include/zstd.h" ; then |
154 |
-- LIBS="-L$with_zstd/lib -lzstd $LIBS" |
155 |
-+ LIBS="-L$with_zstd/${libdir} -lzstd $LIBS" |
156 |
- EXTRA_INCLUDES="-I$with_zstd/include $EXTRA_INCLUDES" |
157 |
- else |
158 |
- AC_MSG_ERROR([libzstd not found]) |
159 |
-@@ -1919,20 +1889,20 @@ fi |
160 |
- # TODO: separate libs for rasters and vectors |
161 |
- if test "$with_grass" != "yes" -a "$with_grass" != "no" ; then |
162 |
- |
163 |
-- AC_CHECK_LIB(grass_gis,G_is_initialized,GRASS_SETTING=grass70+,GRASS_SETTING=no,-L$with_grass/lib -lgrass_datetime) |
164 |
-+ AC_CHECK_LIB(grass_gis,G_is_initialized,GRASS_SETTING=grass70+,GRASS_SETTING=no,-L$with_grass/${libdir} -lgrass_datetime) |
165 |
- if test "$GRASS_SETTING" = "no" ; then |
166 |
-- AC_CHECK_LIB(grass_gis,G_asprintf,GRASS_SETTING=grass57+,GRASS_SETTING=no,-L$with_grass/lib -lgrass_datetime) |
167 |
-+ AC_CHECK_LIB(grass_gis,G_asprintf,GRASS_SETTING=grass57+,GRASS_SETTING=no,-L$with_grass/${libdir} -lgrass_datetime) |
168 |
- fi |
169 |
- |
170 |
- if test "$GRASS_SETTING" != "no" ; then |
171 |
- if test "$GRASS_SETTING" = "grass70+" ; then |
172 |
- G_RASTLIBS="-lgrass_raster -lgrass_imagery" |
173 |
- G_VECTLIBS="-lgrass_vector -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" |
174 |
-- LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
175 |
-+ LIBS="-L$with_grass/${libdir} $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
176 |
- else |
177 |
- G_RASTLIBS="-lgrass_I" |
178 |
- G_VECTLIBS="-lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" |
179 |
-- LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
180 |
-+ LIBS="-L$with_grass/${libdir} $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
181 |
- fi |
182 |
- GRASS_INCLUDE="-I$with_grass/include" |
183 |
- GRASS_GISBASE="$with_grass" |
184 |
-@@ -1956,10 +1926,10 @@ elif test "$with_libgrass" = "yes" -o "$with_libgrass" = "" ; then |
185 |
- |
186 |
- else |
187 |
- |
188 |
-- AC_CHECK_LIB(grass5,G_gisinit_2,GRASS_SETTING=libgrass,GRASS_SETTING=no,-L$with_libgrass/lib) |
189 |
-+ AC_CHECK_LIB(grass5,G_gisinit_2,GRASS_SETTING=libgrass,GRASS_SETTING=no,-L$with_libgrass/${libdir}) |
190 |
- |
191 |
- if test "$GRASS_SETTING" = "libgrass" ; then |
192 |
-- LIBS="-L$with_libgrass -L$with_libgrass/lib -lgrass5 $LIBS" |
193 |
-+ LIBS="-L$with_libgrass -L$with_libgrass/${libdir} -lgrass5 $LIBS" |
194 |
- GRASS_INCLUDE="-I$with_libgrass -I$with_libgrass/include $EXTRA_INCLUDES" |
195 |
- else |
196 |
- AC_MSG_ERROR([--with-libgrass=$with_grass requested, but libgrass5 not found!]) |
197 |
-@@ -2006,7 +1976,7 @@ dnl Fedora has cfitsio headers in /usr/include/cfitsio |
198 |
- else |
199 |
- |
200 |
- FITS_SETTING=external |
201 |
-- LIBS="-L$with_cfitsio -L$with_cfitsio/lib -lcfitsio $LIBS" |
202 |
-+ LIBS="-L$with_cfitsio -L$with_cfitsio/${libdir} -lcfitsio $LIBS" |
203 |
- EXTRA_INCLUDES="-I$with_cfitsio -I$with_cfitsio/include $EXTRA_INCLUDES" |
204 |
- |
205 |
- echo "using libcfitsio from $with_cfitsio." |
206 |
-@@ -2055,7 +2025,7 @@ elif test "$with_pcraster" = "internal" ; then |
207 |
- else |
208 |
- |
209 |
- PCRASTER_SETTING=external |
210 |
-- LIBS="-L$with_pcraster/lib -lcsf $LIBS" |
211 |
-+ LIBS="-L$with_pcraster/${libdir} -lcsf $LIBS" |
212 |
- EXTRA_INCLUDES="-I$with_pcraster/include $EXTRA_INCLUDES" |
213 |
- |
214 |
- echo "using libcsf from $with_pcraster." |
215 |
-@@ -2106,7 +2076,7 @@ elif test "$with_png" = "internal" ; then |
216 |
- else |
217 |
- |
218 |
- PNG_SETTING=external |
219 |
-- LIBS="-L$with_png -L$with_png/lib -lpng $LIBS" |
220 |
-+ LIBS="-L$with_png -L$with_png/${libdir} -lpng $LIBS" |
221 |
- EXTRA_INCLUDES="-I$with_png -I$with_png/include $EXTRA_INCLUDES" |
222 |
- |
223 |
- echo "using libpng from $with_png." |
224 |
-@@ -2141,7 +2111,7 @@ else |
225 |
- |
226 |
- DDS_SETTING=yes |
227 |
- CRUNCHDIR="$with_dds" |
228 |
-- LIBS="-L$with_dds/lib/ -lcrunch $LIBS" |
229 |
-+ LIBS="-L$with_dds/${libdir}/ -lcrunch $LIBS" |
230 |
- echo "using libcrunch from $with_dds." |
231 |
- |
232 |
- fi |
233 |
-@@ -2179,7 +2149,7 @@ elif test "$with_gta" = "yes" -o "$with_gta" = "" ; then |
234 |
- else |
235 |
- |
236 |
- GTA_SETTING=yes |
237 |
-- LIBS="-L$with_gta -L$with_gta/lib -lgta $LIBS" |
238 |
-+ LIBS="-L$with_gta -L$with_gta/${libdir} -lgta $LIBS" |
239 |
- EXTRA_INCLUDES="-I$with_gta -I$with_gta/include $EXTRA_INCLUDES" |
240 |
- |
241 |
- echo "using libgta from $with_gta." |
242 |
-@@ -2217,7 +2187,7 @@ elif test "$with_pcidsk" = "" -o "$with_pcidsk" = "yes" -o "$with_pcidsk" = "int |
243 |
- else |
244 |
- |
245 |
- PCIDSK_SETTING=external |
246 |
-- PCIDSK_LIB="-L$with_pcidsk/lib -lpcidsk" |
247 |
-+ PCIDSK_LIB="-L$with_pcidsk/${libdir} -lpcidsk" |
248 |
- PCIDSK_INCLUDE="-I$with_pcidsk/include -I$with_pcidsk/include/pcidsk" |
249 |
- |
250 |
- echo "using libpcidsk from $with_pcidsk." |
251 |
-@@ -2292,10 +2262,10 @@ else |
252 |
- |
253 |
- dnl We now require libgeotiff 1.5.0 |
254 |
- dnl first check if $with_geotiff/lib has the library: |
255 |
-- AC_CHECK_LIB(geotiff,GTIFAttachPROJContext,GEOTIFF_SETTING=external,GEOTIFF_SETTING=not_found,-L$with_geotiff/lib) |
256 |
-+ AC_CHECK_LIB(geotiff,GTIFAttachPROJContext,GEOTIFF_SETTING=external,GEOTIFF_SETTING=not_found,-L$with_geotiff/${libdir}) |
257 |
- |
258 |
- if test $GEOTIFF_SETTING = "external" ; then |
259 |
-- LIBS="-L$with_geotiff/lib -lgeotiff $LIBS" |
260 |
-+ LIBS="-L$with_geotiff/${libdir} -lgeotiff $LIBS" |
261 |
- if test -d $with_geotiff/include ; then |
262 |
- EXTRA_INCLUDES="-I$with_geotiff/include $EXTRA_INCLUDES" |
263 |
- fi |
264 |
-@@ -2367,7 +2337,7 @@ elif test "$with_jpeg" = "internal" ; then |
265 |
- else |
266 |
- |
267 |
- JPEG_SETTING=external |
268 |
-- LIBS="-L$with_jpeg -L$with_jpeg/lib -ljpeg $LIBS" |
269 |
-+ LIBS="-L$with_jpeg -L$with_jpeg/${libdir} -ljpeg $LIBS" |
270 |
- EXTRA_INCLUDES="-I$with_jpeg -I$with_jpeg/include $EXTRA_INCLUDES" |
271 |
- |
272 |
- echo "using libjpeg from $with_jpeg." |
273 |
-@@ -2518,7 +2488,7 @@ elif test "$with_gif" = "internal" ; then |
274 |
- else |
275 |
- |
276 |
- GIF_SETTING=external |
277 |
-- LIBS="-L$with_gif -L$with_gif/lib -lgif $LIBS" |
278 |
-+ LIBS="-L$with_gif -L$with_gif/${libdir} -lgif $LIBS" |
279 |
- EXTRA_INCLUDES="-I$with_gif -I$with_gif/include $EXTRA_INCLUDES" |
280 |
- |
281 |
- echo "using libgif from $with_gif." |
282 |
-@@ -2584,10 +2554,10 @@ elif test "$with_ogdi" = "yes" -o "$with_ogdi" = "" ; then |
283 |
- |
284 |
- else |
285 |
- |
286 |
-- AC_CHECK_LIB(ogdi,cln_GetLayerCapabilities,HAVE_OGDI=yes,HAVE_OGDI=no,-L$with_ogdi -L$with_ogdi/lib -logdi) |
287 |
-+ AC_CHECK_LIB(ogdi,cln_GetLayerCapabilities,HAVE_OGDI=yes,HAVE_OGDI=no,-L$with_ogdi -L$with_ogdi/${libdir} -logdi) |
288 |
- if test "$HAVE_OGDI" = "yes" ; then |
289 |
- if test -f "$with_ogdi/ecs.h" -o -f "$with_ogdi/include/ecs.h"; then |
290 |
-- LIBS="-L$with_ogdi -L$with_ogdi/lib -logdi $LIBS" |
291 |
-+ LIBS="-L$with_ogdi -L$with_ogdi/${libdir} -logdi $LIBS" |
292 |
- OGDI_INCLUDE="-I$with_ogdi -I$with_ogdi/include" |
293 |
- |
294 |
- echo "using libogdi from $with_ogdi." |
295 |
-@@ -2597,10 +2567,10 @@ else |
296 |
- fi |
297 |
- else |
298 |
- dnl For backward compatibility. Retry with ogdi31 as a name |
299 |
-- AC_CHECK_LIB(ogdi31,cln_GetLayerCapabilities,HAVE_OGDI=yes,HAVE_OGDI=no,-L$with_ogdi -L$with_ogdi/lib -logdi31) |
300 |
-+ AC_CHECK_LIB(ogdi31,cln_GetLayerCapabilities,HAVE_OGDI=yes,HAVE_OGDI=no,-L$with_ogdi -L$with_ogdi/${libdir} -logdi31) |
301 |
- if test "$HAVE_OGDI" = "yes" ; then |
302 |
- if test -f "$with_ogdi/ecs.h" -o -f "$with_ogdi/include/ecs.h"; then |
303 |
-- LIBS="-L$with_ogdi -L$with_ogdi/lib -logdi31 $LIBS" |
304 |
-+ LIBS="-L$with_ogdi -L$with_ogdi/${libdir} -logdi31 $LIBS" |
305 |
- OGDI_INCLUDE="-I$with_ogdi -I$with_ogdi/include" |
306 |
- |
307 |
- echo "using libogdi31 from $with_ogdi." |
308 |
-@@ -2718,10 +2688,10 @@ elif test "$with_sosi" = "yes" ; then |
309 |
- rm -f testfyba |
310 |
- else |
311 |
- |
312 |
-- AC_MSG_CHECKING([for libfyba.a, libfygm.a and libfyut.a in $with_sosi/lib]) |
313 |
-- if test -r $with_sosi/lib/libfyba.a -a -r $with_sosi/lib/libfygm.a -a -r $with_sosi/lib/libfyut.a ; then |
314 |
-+ AC_MSG_CHECKING([for libfyba.a, libfygm.a and libfyut.a in $with_sosi/${libdir}]) |
315 |
-+ if test -r $with_sosi/${libdir}/libfyba.a -a -r $with_sosi/${libdir}/libfygm.a -a -r $with_sosi/${libdir}/libfyut.a ; then |
316 |
- AC_MSG_RESULT([found.]) |
317 |
-- SOSI_LIB="$with_sosi/lib/libfyba.a $with_sosi/lib/libfygm.a $with_sosi/lib/libfyut.a" |
318 |
-+ SOSI_LIB="$with_sosi/${libdir}/libfyba.a $with_sosi/${libdir}/libfygm.a $with_sosi/${libdir}/libfyut.a" |
319 |
- SOSI_ENABLED=yes |
320 |
- else |
321 |
- AC_MSG_ERROR([not found.]) |
322 |
-@@ -2782,14 +2752,14 @@ else |
323 |
- AC_ARG_WITH(boost-lib-path, |
324 |
- [ --with-boost-lib-path=ARG Path to boost libraries for mongocxx client],,,) |
325 |
- |
326 |
-- AC_MSG_CHECKING([for libmongoclient.so in in $with_mongocxx/lib]) |
327 |
-+ AC_MSG_CHECKING([for libmongoclient.so in in $with_mongocxx/${libdir}]) |
328 |
- MONGODB_ENABLED=yes |
329 |
-- if test -r $with_mongocxx/lib/libmongoclient.so; then |
330 |
-+ if test -r $with_mongocxx/${libdir}/libmongoclient.so; then |
331 |
- AC_MSG_RESULT([found.]) |
332 |
-- MONGODB_LIB="-L$with_mongocxx/lib -lmongoclient" |
333 |
-- elif test -r $with_mongocxx/lib/libmongoclient.dylib; then |
334 |
-+ MONGODB_LIB="-L$with_mongocxx/${libdir} -lmongoclient" |
335 |
-+ elif test -r $with_mongocxx/${libdir}/libmongoclient.dylib; then |
336 |
- AC_MSG_RESULT([found.]) |
337 |
-- MONGODB_LIB="-L$with_mongocxx/lib -lmongoclient" |
338 |
-+ MONGODB_LIB="-L$with_mongocxx/${libdir} -lmongoclient" |
339 |
- else |
340 |
- AC_MSG_ERROR([not found.]) |
341 |
- fi |
342 |
-@@ -4770,8 +4740,8 @@ if test "$with_libjson_c" = "external" -o "$with_libjson_c" = "" -o "$with_libjs |
343 |
- elif test "$with_libjson_c" = "internal" ; then |
344 |
- LIBJSONC_SETTING=internal |
345 |
- elif test "$with_libjson_c" != "no"; then |
346 |
-- LIBS="-L$with_libjson_c/lib $LIBS" |
347 |
-- AC_CHECK_LIB(json-c,json_object_set_serializer,LIBJSONC_SETTING=external,LIBJSONC_SETTING=internal,-L$with_libjson_c/lib) |
348 |
-+ LIBS="-L$with_libjson_c/${libdir} $LIBS" |
349 |
-+ AC_CHECK_LIB(json-c,json_object_set_serializer,LIBJSONC_SETTING=external,LIBJSONC_SETTING=internal,-L$with_libjson_c/${libdir}) |
350 |
- else |
351 |
- AC_MSG_ERROR([libjson-c (internal or external) is required]) |
352 |
- fi |
353 |
---- a/frmts/grass/pkg/configure.in |
354 |
-+++ b/frmts/grass/pkg/configure.in |
355 |
-@@ -99,7 +99,7 @@ else |
356 |
- if $GDAL_CONFIG --autoload > /dev/null 2>&1 ; then |
357 |
- AUTOLOAD_DIR=`$GDAL_CONFIG --autoload` |
358 |
- else |
359 |
-- AUTOLOAD_DIR=`$GDAL_CONFIG --prefix`/lib/gdalplugins |
360 |
-+ AUTOLOAD_DIR=`$GDAL_CONFIG --prefix`/${libdir}/gdalplugins |
361 |
- fi |
362 |
- fi |
363 |
- |
364 |
-@@ -123,11 +123,11 @@ fi |
365 |
- |
366 |
- if test "$with_grass" != "yes" ; then |
367 |
- |
368 |
-- AC_CHECK_LIB(grass_gis,G_read_compressed,GRASS_SETTING=grass72+,GRASS_SETTING=no,-L$with_grass/lib -lgrass_datetime) |
369 |
-+ AC_CHECK_LIB(grass_gis,G_read_compressed,GRASS_SETTING=grass72+,GRASS_SETTING=no,-L$with_grass/${libdir} -lgrass_datetime) |
370 |
- if test "$GRASS_SETTING" = "no" ; then |
371 |
-- AC_CHECK_LIB(grass_gis,G_is_initialized,GRASS_SETTING=grass70+,GRASS_SETTING=no,-L$with_grass/lib -lgrass_datetime) |
372 |
-+ AC_CHECK_LIB(grass_gis,G_is_initialized,GRASS_SETTING=grass70+,GRASS_SETTING=no,-L$with_grass/${libdir} -lgrass_datetime) |
373 |
- if test "$GRASS_SETTING" = "no" ; then |
374 |
-- AC_CHECK_LIB(grass_gis,G_asprintf,GRASS_SETTING=grass57+,GRASS_SETTING=no,-L$with_grass/lib -lgrass_datetime) |
375 |
-+ AC_CHECK_LIB(grass_gis,G_asprintf,GRASS_SETTING=grass57+,GRASS_SETTING=no,-L$with_grass/${libdir} -lgrass_datetime) |
376 |
- fi |
377 |
- fi |
378 |
- |
379 |
-@@ -135,15 +135,15 @@ if test "$with_grass" != "yes" ; then |
380 |
- if test "$GRASS_SETTING" = "grass72+" ; then |
381 |
- G_RASTLIBS="-lgrass_raster -lgrass_imagery" |
382 |
- G_VECTLIBS="-lgrass_vector -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" |
383 |
-- LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_btree2 -lgrass_ccmath $LIBS" |
384 |
-+ LIBS="-L$with_grass/${libdir} $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_btree2 -lgrass_ccmath $LIBS" |
385 |
- elif test "$GRASS_SETTING" = "grass70+" ; then |
386 |
- G_RASTLIBS="-lgrass_raster -lgrass_imagery" |
387 |
- G_VECTLIBS="-lgrass_vector -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" |
388 |
-- LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
389 |
-+ LIBS="-L$with_grass/${libdir} $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
390 |
- else |
391 |
- G_RASTLIBS="-lgrass_I" |
392 |
- G_VECTLIBS="-lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" |
393 |
-- LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
394 |
-+ LIBS="-L$with_grass/${libdir} $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" |
395 |
- fi |
396 |
- GRASS_INCLUDE="-I$with_grass/include" |
397 |
- GRASS_GISBASE="$with_grass" |
398 |
---- a/m4/ax_lib_expat.m4 |
399 |
-+++ b/m4/ax_lib_expat.m4 |
400 |
-@@ -119,9 +119,9 @@ AC_DEFUN([AX_LIB_EXPAT], |
401 |
- expat_lib_flags="-lexpat" |
402 |
- fi |
403 |
- else |
404 |
-- AC_CHECK_LIB(expat,XML_ParserCreate,run_expat_test="yes",run_expat_test="no",-L$expat_prefix/lib) |
405 |
-+ AC_CHECK_LIB(expat,XML_ParserCreate,run_expat_test="yes",run_expat_test="no",-L$expat_prefix/${libdir}) |
406 |
- if test "$run_expat_test" = "yes"; then |
407 |
-- expat_lib_flags="-L$expat_prefix/lib -lexpat" |
408 |
-+ expat_lib_flags="-L$expat_prefix/${libdir} -lexpat" |
409 |
- fi |
410 |
- fi |
411 |
- fi |
412 |
---- a/m4/ax_lib_libkml.m4 |
413 |
-+++ b/m4/ax_lib_libkml.m4 |
414 |
-@@ -172,7 +172,7 @@ kmldom::KmlFactory* factory = kmldom::KmlFactory::GetFactory(); |
415 |
- if test "$libkml_prefix" = "/usr"; then |
416 |
- libkml_lib_flags="-lkmldom -lkmlbase -lkmlengine -lkmlconvenience -lminizip -luriparser" |
417 |
- else |
418 |
-- libkml_lib_flags="-L$libkml_prefix/lib -lkmldom -lkmlbase -lkmlengine -lkmlconvenience -lminizip -luriparser" |
419 |
-+ libkml_lib_flags="-L$libkml_prefix/${libdir} -lkmldom -lkmlbase -lkmlengine -lkmlconvenience -lminizip -luriparser" |
420 |
- fi |
421 |
- run_libkml_test="yes" |
422 |
- elif test "$libkml_requested" = "yes"; then |
423 |
---- a/m4/ax_lib_xerces.m4 |
424 |
-+++ b/m4/ax_lib_xerces.m4 |
425 |
-@@ -100,7 +100,7 @@ AC_DEFUN([AX_LIB_XERCES], |
426 |
- if test "$xerces_prefix" = "/usr"; then |
427 |
- xerces_lib_flags="-lxerces-c -lpthread" |
428 |
- else |
429 |
-- xerces_lib_flags="-L$xerces_prefix/lib -lxerces-c -lpthread" |
430 |
-+ xerces_lib_flags="-L$xerces_prefix/${libdir} -lxerces-c -lpthread" |
431 |
- fi |
432 |
- run_xerces_test="yes" |
433 |
- elif test "$xerces_requested" = "yes"; then |
434 |
|
435 |
diff --git a/sci-libs/gdal/files/gdal-3.3.0-configure-geos-disable.patch b/sci-libs/gdal/files/gdal-3.3.0-configure-geos-disable.patch |
436 |
deleted file mode 100644 |
437 |
index 1671845707a3..000000000000 |
438 |
--- a/sci-libs/gdal/files/gdal-3.3.0-configure-geos-disable.patch |
439 |
+++ /dev/null |
440 |
@@ -1,187 +0,0 @@ |
441 |
-https://github.com/OSGeo/gdal/commit/b414b0a0594b3e9c175a001e8455819463039eb6.patch |
442 |
-https://github.com/OSGeo/gdal/issues/3782 |
443 |
- |
444 |
-From b414b0a0594b3e9c175a001e8455819463039eb6 Mon Sep 17 00:00:00 2001 |
445 |
-From: Thomas Bonfort <thomas.bonfort@××××××.com> |
446 |
-Date: Tue, 4 May 2021 08:13:45 +0200 |
447 |
-Subject: [PATCH] configure: fix explicit disabling of geos/sfcgal |
448 |
---- a/configure |
449 |
-+++ b/configure |
450 |
-@@ -38323,6 +38323,7 @@ fi |
451 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: GEOS support disabled" >&5 |
452 |
- $as_echo "GEOS support disabled" >&6; } |
453 |
- GEOS_CONFIG=no |
454 |
-+ HAVE_GEOS=no |
455 |
- |
456 |
- elif test x"$with_geos" = x"yes" -o x"$with_geos" = x"" ; then |
457 |
- |
458 |
-@@ -38580,15 +38581,13 @@ $as_echo "$as_me: WARNING: GEOS was found on your system, but the library could |
459 |
- |
460 |
- else |
461 |
- |
462 |
-- if test $ac_geos_config_auto = "no" ; then |
463 |
-+ if test x"$with_geos" != x"no" -a x"$with_geos" != x ; then |
464 |
- as_fn_error $? "GEOS support explicitly enabled, but geos-config could not be found" "$LINENO" 5 |
465 |
- fi |
466 |
- |
467 |
- fi |
468 |
- |
469 |
--HAVE_GEOS_RESULT="no" |
470 |
- if test "${HAVE_GEOS}" = "yes" ; then |
471 |
-- |
472 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: Using C API from GEOS $GEOS_VERSION" >&5 |
473 |
- $as_echo "$as_me: Using C API from GEOS $GEOS_VERSION" >&6;} |
474 |
- |
475 |
-@@ -38602,7 +38601,6 @@ $as_echo "$as_me: Using C API from GEOS $GEOS_VERSION" >&6;} |
476 |
- |
477 |
- GEOS_LIBS="$STRIPPED_LIBRARY_NAME" |
478 |
- LIBS="${GEOS_LIBS} ${LIBS}" |
479 |
-- HAVE_GEOS_RESULT="yes" |
480 |
- fi |
481 |
- |
482 |
- |
483 |
-@@ -38625,6 +38623,7 @@ fi |
484 |
- |
485 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: SFCGAL support disabled" >&5 |
486 |
- $as_echo "SFCGAL support disabled" >&6; } |
487 |
-+ HAVE_SFCGAL=no |
488 |
- SFCGAL_CONFIG=no |
489 |
- |
490 |
- elif test x"$with_sfcgal" = x"yes" -o x"$with_sfcgal" = x"" ; then |
491 |
-@@ -38883,15 +38882,13 @@ $as_echo "$as_me: WARNING: SFCGAL was found on your system, but the library coul |
492 |
- |
493 |
- else |
494 |
- |
495 |
-- if test $ac_sfcgal_config_auto = "no" ; then |
496 |
-+ if test x"$with_sfcgal" != x"no" -a x"$with_sfcgal" != x ; then |
497 |
- as_fn_error $? "SFCGAL support explicitly enabled, but sfcgal-config could not be found" "$LINENO" 5 |
498 |
- fi |
499 |
- |
500 |
- fi |
501 |
- |
502 |
--HAVE_SFCGAL_RESULT="no" |
503 |
- if test "${HAVE_SFCGAL}" = "yes" ; then |
504 |
-- |
505 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: Using C API from SFCGAL $SFCGAL_VERSION" >&5 |
506 |
- $as_echo "$as_me: Using C API from SFCGAL $SFCGAL_VERSION" >&6;} |
507 |
- |
508 |
-@@ -38905,7 +38902,6 @@ $as_echo "$as_me: Using C API from SFCGAL $SFCGAL_VERSION" >&6;} |
509 |
- |
510 |
- SFCGAL_LIBS="$STRIPPED_LIBRARY_NAME" |
511 |
- LIBS="${SFCGAL_LIBS} ${LIBS}" |
512 |
-- HAVE_SFCGAL_RESULT="yes" |
513 |
- fi |
514 |
- |
515 |
- |
516 |
-@@ -44998,7 +44994,7 @@ echo " FreeXL support: ${HAVE_FREEXL}" |
517 |
- echo " GEORASTER support: ${HAVE_GEORASTER}" |
518 |
- |
519 |
- |
520 |
--echo " GEOS support: ${HAVE_GEOS_RESULT}" |
521 |
-+echo " GEOS support: ${HAVE_GEOS}" |
522 |
- |
523 |
- |
524 |
- echo " Google libkml support: ${HAVE_LIBKML}" |
525 |
-@@ -45162,7 +45158,7 @@ echo " RasterLite2 support: ${HAVE_RASTERLITE2}" |
526 |
- echo " RDB support: ${RDB_SETTING}" |
527 |
- |
528 |
- |
529 |
--echo " SFCGAL support: ${HAVE_SFCGAL_RESULT}" |
530 |
-+echo " SFCGAL support: ${HAVE_SFCGAL}" |
531 |
- |
532 |
- |
533 |
- echo " SOSI support: ${SOSI_ENABLED}" |
534 |
-diff --git a/configure.ac b/configure.ac |
535 |
-index ffc71b7faf76..1f88370c4045 100644 |
536 |
---- a/configure.ac |
537 |
-+++ b/configure.ac |
538 |
-@@ -4541,14 +4541,11 @@ dnl Check if geos library is available. |
539 |
- dnl --------------------------------------------------------------------------- |
540 |
- |
541 |
- GEOS_INIT(3.1.0) |
542 |
--HAVE_GEOS_RESULT="no" |
543 |
- if test "${HAVE_GEOS}" = "yes" ; then |
544 |
-- |
545 |
- AC_MSG_NOTICE([Using C API from GEOS $GEOS_VERSION]) |
546 |
- STRIP_SYSTEM_LIBRARY_PATHS("${GEOS_LIBS}") |
547 |
- GEOS_LIBS="$STRIPPED_LIBRARY_NAME" |
548 |
- LIBS="${GEOS_LIBS} ${LIBS}" |
549 |
-- HAVE_GEOS_RESULT="yes" |
550 |
- fi |
551 |
- |
552 |
- dnl --------------------------------------------------------------------------- |
553 |
-@@ -4556,14 +4553,11 @@ dnl Check if SFCGAL library is available. |
554 |
- dnl --------------------------------------------------------------------------- |
555 |
- |
556 |
- SFCGAL_INIT(1.2.2) |
557 |
--HAVE_SFCGAL_RESULT="no" |
558 |
- if test "${HAVE_SFCGAL}" = "yes" ; then |
559 |
-- |
560 |
- AC_MSG_NOTICE([Using C API from SFCGAL $SFCGAL_VERSION]) |
561 |
- STRIP_SYSTEM_LIBRARY_PATHS("${SFCGAL_LIBS}") |
562 |
- SFCGAL_LIBS="$STRIPPED_LIBRARY_NAME" |
563 |
- LIBS="${SFCGAL_LIBS} ${LIBS}" |
564 |
-- HAVE_SFCGAL_RESULT="yes" |
565 |
- fi |
566 |
- |
567 |
- dnl --------------------------------------------------------------------------- |
568 |
-@@ -6077,7 +6071,7 @@ LOC_MSG([ EXR support: ${HAVE_EXR}]) |
569 |
- LOC_MSG([ FGDB support: ${FGDB_ENABLED}]) |
570 |
- LOC_MSG([ FreeXL support: ${HAVE_FREEXL}]) |
571 |
- LOC_MSG([ GEORASTER support: ${HAVE_GEORASTER}]) |
572 |
--LOC_MSG([ GEOS support: ${HAVE_GEOS_RESULT}]) |
573 |
-+LOC_MSG([ GEOS support: ${HAVE_GEOS}]) |
574 |
- LOC_MSG([ Google libkml support: ${HAVE_LIBKML}]) |
575 |
- LOC_MSG([ GRASS support: ${GRASS_SETTING}]) |
576 |
- LOC_MSG([ GTA support: ${GTA_SETTING}]) |
577 |
-@@ -6135,7 +6129,7 @@ LOC_MSG([ QHull support: ${QHULL_SETTING}]) |
578 |
- LOC_MSG([ Rasdaman support: ${RASDAMAN_ENABLED}]) |
579 |
- LOC_MSG([ RasterLite2 support: ${HAVE_RASTERLITE2}]) |
580 |
- LOC_MSG([ RDB support: ${RDB_SETTING}]) |
581 |
--LOC_MSG([ SFCGAL support: ${HAVE_SFCGAL_RESULT}]) |
582 |
-+LOC_MSG([ SFCGAL support: ${HAVE_SFCGAL}]) |
583 |
- LOC_MSG([ SOSI support: ${SOSI_ENABLED}]) |
584 |
- LOC_MSG([ SpatiaLite support: ${HAVE_SPATIALITE}]) |
585 |
- if test "x$SPATIALITE_SONAME" != "x"; then |
586 |
-diff --git a/m4/geos.m4 b/m4/geos.m4 |
587 |
-index 1c685039740e..608466c67c69 100644 |
588 |
---- a/m4/geos.m4 |
589 |
-+++ b/m4/geos.m4 |
590 |
-@@ -55,6 +55,7 @@ AC_DEFUN([GEOS_INIT],[ |
591 |
- |
592 |
- AC_MSG_RESULT([GEOS support disabled]) |
593 |
- GEOS_CONFIG=no |
594 |
-+ HAVE_GEOS=no |
595 |
- |
596 |
- elif test x"$with_geos" = x"yes" -o x"$with_geos" = x"" ; then |
597 |
- |
598 |
-@@ -160,7 +161,7 @@ AC_DEFUN([GEOS_INIT],[ |
599 |
- |
600 |
- else |
601 |
- |
602 |
-- if test $ac_geos_config_auto = "no" ; then |
603 |
-+ if test x"$with_geos" != x"no" -a x"$with_geos" != x ; then |
604 |
- AC_MSG_ERROR([GEOS support explicitly enabled, but geos-config could not be found]) |
605 |
- fi |
606 |
- |
607 |
-diff --git a/m4/sfcgal.m4 b/m4/sfcgal.m4 |
608 |
-index 2384f0f0dc5d..1a8d26460ce7 100644 |
609 |
---- a/m4/sfcgal.m4 |
610 |
-+++ b/m4/sfcgal.m4 |
611 |
-@@ -53,6 +53,7 @@ AC_DEFUN([SFCGAL_INIT],[ |
612 |
- if test x"$with_sfcgal" = x"no" ; then |
613 |
- |
614 |
- AC_MSG_RESULT([SFCGAL support disabled]) |
615 |
-+ HAVE_SFCGAL=no |
616 |
- SFCGAL_CONFIG=no |
617 |
- |
618 |
- elif test x"$with_sfcgal" = x"yes" -o x"$with_sfcgal" = x"" ; then |
619 |
-@@ -159,7 +160,7 @@ AC_DEFUN([SFCGAL_INIT],[ |
620 |
- |
621 |
- else |
622 |
- |
623 |
-- if test $ac_sfcgal_config_auto = "no" ; then |
624 |
-+ if test x"$with_sfcgal" != x"no" -a x"$with_sfcgal" != x ; then |
625 |
- AC_MSG_ERROR([SFCGAL support explicitly enabled, but sfcgal-config could not be found]) |
626 |
- fi |
627 |
- |
628 |
|
629 |
diff --git a/sci-libs/gdal/files/gdal-3.3.2-poppler-21.10.0.patch b/sci-libs/gdal/files/gdal-3.3.2-poppler-21.10.0.patch |
630 |
deleted file mode 100644 |
631 |
index a727d21dab64..000000000000 |
632 |
--- a/sci-libs/gdal/files/gdal-3.3.2-poppler-21.10.0.patch |
633 |
+++ /dev/null |
634 |
@@ -1,32 +0,0 @@ |
635 |
-From 9c09870e374ca21d558101af3f4c09a6164fdfc3 Mon Sep 17 00:00:00 2001 |
636 |
-From: Even Rouault <even.rouault@×××××××××.com> |
637 |
-Date: Sun, 26 Sep 2021 22:49:52 +0200 |
638 |
-Subject: [PATCH] Fix build against Poppler master |
639 |
- |
640 |
---- |
641 |
- frmts/pdf/pdfdataset.cpp | 4 +++- |
642 |
- 1 file changed, 3 insertions(+), 1 deletion(-) |
643 |
- |
644 |
-diff --git a/frmts/pdf/pdfdataset.cpp b/frmts/pdf/pdfdataset.cpp |
645 |
-index 9c4c28a6572..50a8154c756 100644 |
646 |
---- a/frmts/pdf/pdfdataset.cpp |
647 |
-+++ b/frmts/pdf/pdfdataset.cpp |
648 |
-@@ -5012,7 +5012,7 @@ PDFDataset *PDFDataset::Open( GDALOpenInfo * poOpenInfo ) |
649 |
- #ifdef HAVE_POPPLER |
650 |
- if (bUseLib.test(PDFLIB_POPPLER)) |
651 |
- { |
652 |
-- GooString* poMetadata = poCatalogPoppler->readMetadata(); |
653 |
-+ auto poMetadata = poCatalogPoppler->readMetadata(); |
654 |
- if (poMetadata) |
655 |
- { |
656 |
- #if (POPPLER_MAJOR_VERSION >= 1 || POPPLER_MINOR_VERSION >= 72) |
657 |
-@@ -5026,7 +5026,9 @@ PDFDataset *PDFDataset::Open( GDALOpenInfo * poOpenInfo ) |
658 |
- const char * const apszMDList[2] = { pszContent, nullptr }; |
659 |
- poDS->SetMetadata(const_cast<char**>(apszMDList), "xml:XMP"); |
660 |
- } |
661 |
-+#if (POPPLER_MAJOR_VERSION < 21 || (POPPLER_MAJOR_VERSION == 21 && POPPLER_MINOR_VERSION <= 9)) |
662 |
- delete poMetadata; |
663 |
-+#endif |
664 |
- } |
665 |
- |
666 |
- /* Read Info object */ |