From c00778dd0d9c3b62657057e92c868ad2257d72d3 Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Thu, 13 Dec 2012 10:17:43 +0800 Subject: 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] Signed-off-by: Hongxu Jia Signed-off-by: Saul Wold --- ...tscript-native-fix-disable-system-libtiff.patch | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 meta/recipes-extended/ghostscript/ghostscript/ghostscript-native-fix-disable-system-libtiff.patch (limited to 'meta/recipes-extended/ghostscript/ghostscript') diff --git a/meta/recipes-extended/ghostscript/ghostscript/ghostscript-native-fix-disable-system-libtiff.patch b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-native-fix-disable-system-libtiff.patch new file mode 100644 index 0000000000..ce254f6ece --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-native-fix-disable-system-libtiff.patch @@ -0,0 +1,51 @@ +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 +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 + -- cgit 1.2.3-korg