diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2012-12-13 10:17:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-17 17:24:54 +0000 |
commit | ea2a7ae8c62f52f55419e169cc8fd24e823a61c8 (patch) | |
tree | 13df5048734eb2d8d704daa80f5215893098716d | |
parent | 5b3ffcea5e08fe097b417e29c7282ed37feaacc7 (diff) | |
download | poky-ea2a7ae8c62f52f55419e169cc8fd24e823a61c8.tar.gz |
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>
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/ghostscript-native-fix-disable-system-libtiff.patch | 51 | ||||
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.05.bb | 15 |
2 files changed, 63 insertions, 3 deletions
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 @@ | |||
1 | ghostscript-native:fix disable-system-libtiff | ||
2 | |||
3 | Modify configure to add the check to make sure | ||
4 | ghostscrip could work while system-libtiff is | ||
5 | disabled. | ||
6 | |||
7 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
8 | Upstream-Status: Pending | ||
9 | --- | ||
10 | diff --git a/base/configure.ac b/base/configure.ac | ||
11 | index bb05105..4b817ac 100644 | ||
12 | --- a/base/configure.ac | ||
13 | +++ b/base/configure.ac | ||
14 | @@ -814,17 +814,23 @@ Disabling tiff output devices.]) | ||
15 | esac | ||
16 | |||
17 | if test $SHARE_LIBTIFF -eq 0; then | ||
18 | - echo | ||
19 | - echo "Running libtiff configure script..." | ||
20 | - olddir=`pwd` | ||
21 | - cd $LIBTIFFDIR && ./configure --disable-jbig $SUBCONFIG_OPTS | ||
22 | - status=$? | ||
23 | - if test "$status" -ne 0 ; then | ||
24 | - AC_MSG_ERROR([libtiff configure script failed], $status) | ||
25 | - fi | ||
26 | - cd $olddir | ||
27 | - echo | ||
28 | - echo "Continuing with Ghostscript configuration..." | ||
29 | + if test -e $LIBTIFFDIR/configure; then | ||
30 | + echo | ||
31 | + echo "Running libtiff configure script..." | ||
32 | + olddir=`pwd` | ||
33 | + cd $LIBTIFFDIR && ./configure --disable-jbig $SUBCONFIG_OPTS | ||
34 | + status=$? | ||
35 | + if test "$status" -ne 0 ; then | ||
36 | + AC_MSG_ERROR([libtiff configure script failed], $status) | ||
37 | + fi | ||
38 | + cd $olddir | ||
39 | + echo | ||
40 | + echo "Continuing with Ghostscript configuration..." | ||
41 | + else | ||
42 | + AC_MSG_NOTICE([Could not find local copy of libtiff. | ||
43 | +Disabling tiff output devices.]) | ||
44 | + fi | ||
45 | + | ||
46 | fi | ||
47 | |||
48 | AC_SUBST(SHARE_LIBTIFF) | ||
49 | -- | ||
50 | 1.7.10.4 | ||
51 | |||
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.05.bb b/meta/recipes-extended/ghostscript/ghostscript_9.05.bb index 2789897917..93c503fb74 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.05.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.05.bb | |||
@@ -15,7 +15,7 @@ SECTION = "console/utils" | |||
15 | LICENSE = "GPLv3" | 15 | LICENSE = "GPLv3" |
16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c5326026692dbed183f0558f926580f8" | 16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c5326026692dbed183f0558f926580f8" |
17 | 17 | ||
18 | PR = "r4" | 18 | PR = "r5" |
19 | 19 | ||
20 | DEPENDS = "ghostscript-native tiff jpeg fontconfig cups" | 20 | DEPENDS = "ghostscript-native tiff jpeg fontconfig cups" |
21 | DEPENDS_class-native = "" | 21 | DEPENDS_class-native = "" |
@@ -31,8 +31,9 @@ SRC_URI = "${SRC_URI_BASE} \ | |||
31 | " | 31 | " |
32 | 32 | ||
33 | SRC_URI_class-native = "${SRC_URI_BASE} \ | 33 | SRC_URI_class-native = "${SRC_URI_BASE} \ |
34 | file://0001-make-ghostscript-work-with-long-building-directory.patch \ | 34 | file://0001-make-ghostscript-work-with-long-building-directory.patch \ |
35 | " | 35 | file://ghostscript-native-fix-disable-system-libtiff.patch \ |
36 | " | ||
36 | 37 | ||
37 | SRC_URI[md5sum] = "f7c6f0431ca8d44ee132a55d583212c1" | 38 | SRC_URI[md5sum] = "f7c6f0431ca8d44ee132a55d583212c1" |
38 | SRC_URI[sha256sum] = "593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207" | 39 | SRC_URI[sha256sum] = "593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207" |
@@ -40,6 +41,14 @@ SRC_URI[sha256sum] = "593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a1 | |||
40 | EXTRA_OECONF = "--without-x --with-system-libtiff --without-jbig2dec --without-jasper \ | 41 | EXTRA_OECONF = "--without-x --with-system-libtiff --without-jbig2dec --without-jasper \ |
41 | --with-fontpath=${datadir}/fonts --with-install-cups --without-libidn" | 42 | --with-fontpath=${datadir}/fonts --with-install-cups --without-libidn" |
42 | 43 | ||
44 | # Explicity disable libtiff, fontconfig, | ||
45 | # freetype, cups for ghostscript-native | ||
46 | EXTRA_OECONF_class-native = "--without-x --with-system-libtiff=no \ | ||
47 | --without-jbig2dec --without-jasper \ | ||
48 | --with-fontpath=${datadir}/fonts \ | ||
49 | --without-libidn --disable-fontconfig \ | ||
50 | --disable-freetype --disable-cups" | ||
51 | |||
43 | # This has been fixed upstream but for now we need to subvert the check for time.h | 52 | # This has been fixed upstream but for now we need to subvert the check for time.h |
44 | # http://bugs.ghostscript.com/show_bug.cgi?id=692443 | 53 | # http://bugs.ghostscript.com/show_bug.cgi?id=692443 |
45 | # http://bugs.ghostscript.com/show_bug.cgi?id=692426 | 54 | # http://bugs.ghostscript.com/show_bug.cgi?id=692426 |