poppler: add patch to fix invalid syntax in configure script
PATCH 1/2 poppler: add patch to fix invalid syntax in configure script
When configuring poppler, a shell error occurs:
./configure: line 19741: test: x: unary operator expected
This is due to an invalid configure test, which is fixed by a newly added patch. We patch the configure script directly because poppler doesn't autoreconf properly. A patch on configure.ac has been submitted upstream so that hopefully we can drop our patch in a future release of poppler.
--- ...invalid-shell-comparaison-in-libtiff-test.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/poppler/0001-Fix-invalid-shell-comparaison-in-libtiff-test.patch
package/poppler/0001-Fix-invalid-shell-comparaison-in-libtiff-test.patch new file +23 -0
@@ -0,0 +1,23 @@ +Fix syntax issue in configure script + +The change is not done in configure.ac, because the package doesn't +autoreconf properly. + +Patch on configure.ac submitted upstream at +https://bugs.freedesktop.org/show_bug.cgi?id=90292. + +Signed-off-by: Thomas Petazzoni <[email protected]> + +Index: b/configure +=================================================================== +--- a/configure ++++ b/configure +@@ -19738,7 +19738,7 @@ + CXXFLAGS="$CXXFLAGS $LIBTIFF_CFLAGS" + LIBS="$LIBS $LIBTIFF_LIBS" + if test x$enable_libtiff = xyes; then +- if test x"$LIBTIFF_LIBS" != ; then ++ if test x"$LIBTIFF_LIBS" != x; then + ac_fn_cxx_check_func "$LINENO" "TIFFOpen" "ac_cv_func_TIFFOpen" + if test "x$ac_cv_func_TIFFOpen" = xyes; then : +
Signature · 1 line
2.1.0
PATCH 2/2 poppler: help finding libtiff in static linking scenarios
In static linking scenarios, poppler doesn't find libtiff because it doesn't use pkg-config, so it doesn't know which additional libraries it should link with to test the availability of libtiff. We help poppler in this work by passing a LIBTIFF_LIBS variable, resulting for a pkg-config invocation.
Also, since poppler uses pkg-config, we make this dependency explicit in this patch, even though it was already carried by the fontconfig dependency.
Fixes:
http://autobuild.buildroot.org/results/be7/be78957dd852233c81bd364ddf664564ce8f0208/
--- package/poppler/poppler.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
package/poppler/poppler.mk +4 -1
@@ -7,7 +7,7 @@ POPPLER_VERSION = 0.32.0 POPPLER_SOURCE = poppler-$(POPPLER_VERSION).tar.xz POPPLER_SITE = http://poppler.freedesktop.org -POPPLER_DEPENDENCIES = fontconfig +POPPLER_DEPENDENCIES = fontconfig host-pkgconf POPPLER_LICENSE = GPLv2+ POPPLER_LICENSE_FILES = COPYING POPPLER_INSTALL_STAGING = YES
@@ -22,6 +22,9 @@ endif ifeq ($(BR2_PACKAGE_TIFF),y) POPPLER_CONF_OPTS += --enable-libtiff +# Help poppler to find libtiff in static linking scenarios +POPPLER_CONF_ENV += \ + LIBTIFF_LIBS="$(shell $(PKG_CONFIG_HOST_BINARY) --libs libtiff-4)" POPPLER_DEPENDENCIES += tiff else POPPLER_CONF_OPTS += --disable-libtiff
Signature · 1 line
2.1.0
PATCH 2/2 poppler: help finding libtiff in static linking scenarios
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
In static linking scenarios, poppler doesn't find libtiff because it doesn't use pkg-config, so it doesn't know which additional libraries it should link with to test the availability of libtiff. We help poppler in this work by passing a
LIBTIFF_LIBSvariable, resulting for a pkg-config invocation.Also, since poppler uses pkg-config, we make this dependency explicit in this patch, even though it was already carried by the fontconfig dependency.
Quoted 5 lines
Fixes:
http://autobuild.buildroot.org/results/be7/be78957dd852233c81bd364ddf664564ce8f0208/
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 poppler: add patch to fix invalid syntax in configure script
In reply to Thomas PetazzoniQuoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
When configuring poppler, a shell error occurs:
./configure: line 19741: test: x: unary operator expected
Quoted 7 lines
This is due to an invalid configure test, which is fixed by a newly added patch. We patch the configure script directly because poppler doesn't autoreconf properly. A patch on configure.ac has been submitted upstream so that hopefully we can drop our patch in a future release of poppler.
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard