Files
poky/meta/recipes-extended/ghostscript/ghostscript/ghostscript-native-fix-disable-system-libtiff.patch
Hongxu Jia ea2a7ae8c6 ghostscript-native:fix host underlinking issues
The ghostscript-native will check libtiff
automatically at configure time and libtiff
needs libjpeg. If libtiff and libjpeg is
just populated to staging native directories
and the host doesn't install them, the libjpeg
could not be linked, fail with:

|libjpeg.so.8, needed by libtiff.so, not found
|libtiff.so: undefined reference to
`jpeg_set_defaults@LIBJPEG_8.0'
|collect2: error: ld returned 1 exit status

Disable libtiff support to fix this issue and
modify configure to let disable system libtiff
could work.
We also explicity disable fontconfig, freetype,
cups for ghostscript-native to avoid the similar
issues.

[YOCTO #3562]

(From OE-Core rev: c00778dd0d9c3b62657057e92c868ad2257d72d3)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-12-17 17:24:54 +00:00

52 lines
1.4 KiB
Diff

ghostscript-native:fix disable-system-libtiff
Modify configure to add the check to make sure
ghostscrip could work while system-libtiff is
disabled.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Upstream-Status: Pending
---
diff --git a/base/configure.ac b/base/configure.ac
index bb05105..4b817ac 100644
--- a/base/configure.ac
+++ b/base/configure.ac
@@ -814,17 +814,23 @@ Disabling tiff output devices.])
esac
if test $SHARE_LIBTIFF -eq 0; then
- echo
- echo "Running libtiff configure script..."
- olddir=`pwd`
- cd $LIBTIFFDIR && ./configure --disable-jbig $SUBCONFIG_OPTS
- status=$?
- if test "$status" -ne 0 ; then
- AC_MSG_ERROR([libtiff configure script failed], $status)
- fi
- cd $olddir
- echo
- echo "Continuing with Ghostscript configuration..."
+ if test -e $LIBTIFFDIR/configure; then
+ echo
+ echo "Running libtiff configure script..."
+ olddir=`pwd`
+ cd $LIBTIFFDIR && ./configure --disable-jbig $SUBCONFIG_OPTS
+ status=$?
+ if test "$status" -ne 0 ; then
+ AC_MSG_ERROR([libtiff configure script failed], $status)
+ fi
+ cd $olddir
+ echo
+ echo "Continuing with Ghostscript configuration..."
+ else
+ AC_MSG_NOTICE([Could not find local copy of libtiff.
+Disabling tiff output devices.])
+ fi
+
fi
AC_SUBST(SHARE_LIBTIFF)
--
1.7.10.4