mirror of
https://git.yoctoproject.org/poky
synced 2026-03-02 21:39:40 +01:00
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>
52 lines
1.4 KiB
Diff
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
|
|
|