diff options
-rw-r--r-- | graphics/gdal/files/patch-configure | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/gdal/files/patch-configure b/graphics/gdal/files/patch-configure new file mode 100644 index 000000000000..4cdac8ccdddd --- /dev/null +++ b/graphics/gdal/files/patch-configure @@ -0,0 +1,23 @@ +From 2b863dbabdc2a7d724f9fdf3e6ff20a142b619f6 Mon Sep 17 00:00:00 2001 +From: Even Rouault <even.rouault@spatialys.com> +Date: Mon, 3 Aug 2020 14:52:25 +0200 +Subject: [PATCH] Unix build: fix detection of minor version number of Poppler + with the new YY.MM.X numbering scheme (fixes #2823) (#2825) + +Authored-by: @chris2553 + +https://github.com/OSGeo/gdal/commit/2b863dbabdc2a7d724f9fdf3e6ff20a142b619f6.patch + +--- configure 2020-08-17 13:00:41.028145000 -0600 ++++ configure 2020-08-17 13:00:54.784398000 -0600 +@@ -40695,8 +40683,8 @@ + fi + if test "$POPPLER_VERSION" != ""; then + HAVE_POPPLER=yes +- POPPLER_MAJOR_VERSION=`expr $POPPLER_VERSION : '\([0-9]*\)'` +- POPPLER_MINOR_VERSION=`expr $POPPLER_VERSION : '[0-9]*\.\([0-9]*\)'` ++ POPPLER_MAJOR_VERSION=`echo $POPPLER_VERSION | cut -d'.' -f1` ++ POPPLER_MINOR_VERSION=`echo $POPPLER_VERSION | cut -d'.' -f2 | sed -e 's/^0//'` + POPPLER_CFLAGS=`echo $POPPLER_CFLAGS $POPPLER_CFLAGS | sed "s/include\/poppler/include/"` + fi + else |