The new version naming of app-text/poppler YY.MM.X breaks the compilation of the only existing in portage version of sci-libs/gdal when using the [pdf] flag. This is similar to bug #735800 The error message is: make[2]: Entering directory '/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/frmts/pdf' /bin/sh /dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/libtool --mode=compile --silent --tag=CXX x86_64-pc-linux-gnu-g++ -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/port -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/gcore -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/alg -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/ogr -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/ogr/ogrsf_frmts -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/gnm -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -march=native -O2 -pipe -fvisibility=hidden -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough -I../vrt -I../mem -I../../ogr/ogrsf_frmts/mem -DGNM_ENABLED -I/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/port -I/usr/ -I/usr//include -DGDAL_COMPILATION -DHAVE_POPPLER -DPOPPLER_MAJOR_VERSION=20 -DPOPPLER_MINOR_VERSION=08 -I/usr/include -I/usr/include/poppler -DDO_NOT_USE_DEBUG_BOOL -c -o ../o/pdfdataset.lo pdfdataset.cpp <command-line>: error: invalid digit "8" in octal constant <command-line>: error: invalid digit "8" in octal constant <command-line>: error: invalid digit "8" in octal constant pdfio.h:47:35: note: in expansion of macro ‘POPPLER_MINOR_VERSION’ 47 | #if POPPLER_MAJOR_VERSION >= 1 || POPPLER_MINOR_VERSION >= 58 ===== SKIP ===== make[2]: *** [../../GDALmake.opt:651: ../o/pdfdataset.lo] Error 1 make[2]: Leaving directory '/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/frmts/pdf' make[1]: *** [GNUmakefile:15: pdf-install-obj] Error 2 make[1]: Leaving directory '/dev/shm/portage/sci-libs/gdal-3.0.4-r1/work/gdal-3.0.4/frmts' make: *** [GNUmakefile:103: frmts-target] Error 2 I am uploading the upstream patch for the problem. It can be taken from here: https://github.com/OSGeo/gdal/commit/2b863dbabdc2a7d724f9fdf3e6ff20a142b619f6 The patch works OK and fixes the gdal problem with app-text/poppler-20.08.0 ... The gdalinfo and ogrinfo (using the --formats switch) work OK too I don't have time to test with older (stable or unstable) poppler versions. Thanks Reproducible: Always
Created attachment 652822 [details, diff] poppler-new-YY_MM_X-scheme.patch The upstream patch with modified paths for gdal 3.0.4
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fca144ebd963f6e5a6144c499c419ecadfaae3f0 commit fca144ebd963f6e5a6144c499c419ecadfaae3f0 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-08-04 19:46:08 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-08-05 08:26:32 +0000 sci-libs/gdal: Fix build against poppler-20.08 Thanks-to: PhobosK <phobosk@fastmail.fm> Closes: https://bugs.gentoo.org/735828 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> sci-libs/gdal/files/gdal-3.0.4-poppler-20.08.patch | 42 ++++++++++++++++++++++ sci-libs/gdal/gdal-3.0.4-r1.ebuild | 1 + 2 files changed, 43 insertions(+)