[arch-commits] Commit in gdal/trunk (PKGBUILD poppler-20.08.0.patch)

Evangelos Foutras foutrelis at archlinux.org
Sun Aug 23 18:23:41 UTC 2020


    Date: Sunday, August 23, 2020 @ 18:23:41
  Author: foutrelis
Revision: 687183

Fix build with poppler 20.08.0

Added:
  gdal/trunk/poppler-20.08.0.patch
Modified:
  gdal/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |    5 +++++
 poppler-20.08.0.patch |   42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-23 18:06:21 UTC (rev 687182)
+++ PKGBUILD	2020-08-23 18:23:41 UTC (rev 687183)
@@ -19,8 +19,10 @@
 options=('!emptydirs')
 changelog=$pkgbase.changelog
 source=(https://download.osgeo.org/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz
+        poppler-20.08.0.patch
         gdal-perl-vendor.patch)
 sha256sums=('5569a4daa1abcbba47a9d535172fc335194d9214fdb96cd0f139bb57329ae277'
+            'dc8ccbc9a672a8489a1660fa66804d74c3015c47b44e2d41e17f8609249279df'
             '2103b98f2f15954f042d5620658b30d703125927bde2e5eb671c5facb6c2f5ed')
 
 prepare() {
@@ -29,6 +31,9 @@
 # Fix mandir
   sed -i "s|^mandir=.*|mandir='\${prefix}/share/man'|" configure
 
+# Fix build with poppler 20.08.0
+  patch -Np2 -i "${srcdir}"/poppler-20.08.0.patch
+
 # Fix Perl bindings installation path
   patch -Np0 -i "${srcdir}"/gdal-perl-vendor.patch
 }

Added: poppler-20.08.0.patch
===================================================================
--- poppler-20.08.0.patch	                        (rev 0)
+++ poppler-20.08.0.patch	2020-08-23 18:23:41 UTC (rev 687183)
@@ -0,0 +1,42 @@
+From 93e85e58b20eef678ac669083042d95f8586c2d6 Mon Sep 17 00:00:00 2001
+From: Even Rouault <even.rouault at 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
+---
+ gdal/configure    | 4 ++--
+ gdal/configure.ac | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/gdal/configure b/gdal/configure
+index 4dab50a48ba..e4cc4ada347 100755
+--- a/gdal/configure
++++ b/gdal/configure
+@@ -40695,8 +40695,8 @@ $as_echo "yes" >&6; }
+ 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
+diff --git a/gdal/configure.ac b/gdal/configure.ac
+index 126ddb5ba42..f9893f844bd 100644
+--- a/gdal/configure.ac
++++ b/gdal/configure.ac
+@@ -4945,8 +4945,8 @@ if test "$with_poppler" != "no" -a "$with_poppler" != ""; then
+             [POPPLER_VERSION=`$PKG_CONFIG --modversion poppler`], [POPPLER_VERSION=])
+     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



More information about the arch-commits mailing list