summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-12-13 12:11:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-18 19:48:00 +0000
commit4eb149948f4e986801c75f65b82e2a86671e2667 (patch)
tree12332f6030932a03a5177c8c613d7b77f2cc106a
parented8f8db84c7cc47d007038effa1481b260921502 (diff)
downloadpoky-4eb149948f4e986801c75f65b82e2a86671e2667.tar.gz
ghostscript: update 9.56.1 -> 10.0.0
Drop --without-jbig2dec as it is now required by pdf support and jbig2dec library is in ghostscript's source tree. (From OE-Core rev: 761a17b7beab248056b69b9c3d84b1ddc4d2082d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript/cross-compile.patch40
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript/do-not-check-local-libpng-source.patch (renamed from meta/recipes-extended/ghostscript/files/do-not-check-local-libpng-source.patch)8
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb (renamed from meta/recipes-extended/ghostscript/ghostscript_9.56.1.bb)5
3 files changed, 47 insertions, 6 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/cross-compile.patch b/meta/recipes-extended/ghostscript/ghostscript/cross-compile.patch
new file mode 100644
index 0000000000..ba62820df1
--- /dev/null
+++ b/meta/recipes-extended/ghostscript/ghostscript/cross-compile.patch
@@ -0,0 +1,40 @@
1From 4c3575346b9c7d394ebc73b4e5fabebadd8877ec Mon Sep 17 00:00:00 2001
2From: Chris Liddell <chris.liddell@artifex.com>
3Date: Thu, 24 Nov 2022 16:33:47 +0000
4Subject: [PATCH] Fix a little bitrot in the cross-compiling logic
5
6Removing the option to disable FAPI meant configuring for cross compiling would
7fail because the option being passed to the sub-call to configure would include
8an unknown command line option.
9
10Upstream-Status: Backport [https://git.ghostscript.com/?p=ghostpdl.git;a=patch;f=configure.ac;h=4c3575346b9c7d394ebc73b4e5fabebadd8877ec]
11Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12---
13 configure.ac | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index d5c68c4b3..738eb10a9 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -138,7 +138,7 @@ if test x"$host" != x"$build" ; then
21 echo $AUXFLAGS_MAK_LINE07 >> $AUXFLAGS_MAK.in
22
23 AC_MSG_NOTICE([Begin recursive call to configure script (for auxiliary tools)])
24- "$absolute_source_path/configure" CC="$CCAUX" CFLAGS="$CFLAGSAUX" CPPFLAGS="$CPPFLAGSAUX" LDFLAGS="$LDFLAGSAUX" CCAUX= CFLAGSAUX= CFLAGSAUX= MAKEFILE=$AUXFLAGS_MAK --host=$build --build=$build --enable-auxtools_only --disable-hidden-visibility --with-local-zlib --without-libtiff --disable-contrib --disable-fontconfig --disable-dbus --disable-freetype --disable-fapi --disable-cups --disable-openjpeg --disable-gtk --with-libiconv=no --without-libidn --without-libpaper --without-pdftoraster --without-ijs --without-jbig2dec --without-x --with-drivers=""
25+ "$absolute_source_path/configure" CC="$CCAUX" CFLAGS="$CFLAGSAUX" CPPFLAGS="$CPPFLAGSAUX" LDFLAGS="$LDFLAGSAUX" CCAUX= CFLAGSAUX= CFLAGSAUX= MAKEFILE=$AUXFLAGS_MAK --host=$build --build=$build --enable-auxtools_only --disable-hidden-visibility --with-local-zlib --without-libtiff --disable-contrib --disable-fontconfig --disable-dbus --disable-freetype --disable-cups --disable-openjpeg --disable-gtk --with-libiconv=no --without-libidn --without-libpaper --without-pdftoraster --without-ijs --without-jbig2dec --without-x --with-drivers=""
26 status=$?
27 cp config.log "$olddir/configaux.log"
28 if test $status -eq 0 ; then
29@@ -2530,7 +2530,7 @@ PDF=
30 PDF_MAK="\$(GLSRCDIR)\$(D)stub.mak"
31 PDFROMFS_MAK="\$(GLSRCDIR)\$(D)stub.mak"
32
33-if test x"$with_pdf" != x"no" ; then
34+if test x"$with_pdf" != x"no" -a x"$enable_auxtools_only" != x"yes" ; then
35
36 if test x"$JBIG2_DECODER" = x""; then
37 AC_MSG_ERROR([No JBIG2 decoder available, required for PDF support])
38--
392.25.1
40
diff --git a/meta/recipes-extended/ghostscript/files/do-not-check-local-libpng-source.patch b/meta/recipes-extended/ghostscript/ghostscript/do-not-check-local-libpng-source.patch
index a9afb9948c..13e71c824f 100644
--- a/meta/recipes-extended/ghostscript/files/do-not-check-local-libpng-source.patch
+++ b/meta/recipes-extended/ghostscript/ghostscript/do-not-check-local-libpng-source.patch
@@ -1,4 +1,4 @@
1From 2adaa7366064a8f18af864eda74e52877a89620c Mon Sep 17 00:00:00 2001 1From 108a7d3f79af8c669af129bd87401402e76edfa9 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 18 Jan 2016 01:00:30 -0500 3Date: Mon, 18 Jan 2016 01:00:30 -0500
4Subject: [PATCH] configure.ac: do not check local png source 4Subject: [PATCH] configure.ac: do not check local png source
@@ -17,12 +17,12 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
17 1 file changed, 1 insertion(+), 1 deletion(-) 17 1 file changed, 1 insertion(+), 1 deletion(-)
18 18
19diff --git a/configure.ac b/configure.ac 19diff --git a/configure.ac b/configure.ac
20index 698abd3..e65ac8b 100644 20index bb57825..389c473 100644
21--- a/configure.ac 21--- a/configure.ac
22+++ b/configure.ac 22+++ b/configure.ac
23@@ -1241,7 +1241,7 @@ else 23@@ -1441,7 +1441,7 @@ else
24 PNGDEVS='' 24 PNGDEVS=''
25 PNGDEVS_ALL='png48 png16m pnggray pngmono pngmonod png256 png16 pngalpha' 25 PNGDEVS_ALL='png48 png16m pnggray pngmono pngmonod png256 png16 pngalpha png16malpha'
26 AC_MSG_CHECKING([for local png library source]) 26 AC_MSG_CHECKING([for local png library source])
27- if test -f $srcdir/libpng/pngread.c; then 27- if test -f $srcdir/libpng/pngread.c; then
28+ if false; then 28+ if false; then
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.56.1.bb b/meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb
index e71a6cc0d3..56a93632e2 100644
--- a/meta/recipes-extended/ghostscript/ghostscript_9.56.1.bb
+++ b/meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb
@@ -33,6 +33,7 @@ SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/d
33 file://do-not-check-local-libpng-source.patch \ 33 file://do-not-check-local-libpng-source.patch \
34 file://avoid-host-contamination.patch \ 34 file://avoid-host-contamination.patch \
35 file://mkdir-p.patch \ 35 file://mkdir-p.patch \
36 file://cross-compile.patch \
36" 37"
37 38
38SRC_URI = "${SRC_URI_BASE} \ 39SRC_URI = "${SRC_URI_BASE} \
@@ -44,7 +45,7 @@ SRC_URI:class-native = "${SRC_URI_BASE} \
44 file://base-genht.c-add-a-preprocessor-define-to-allow-fope.patch \ 45 file://base-genht.c-add-a-preprocessor-define-to-allow-fope.patch \
45 " 46 "
46 47
47SRC_URI[sha256sum] = "1598b9a38659cce8448d42a73054b2f9cbfcc40a9b97eeec5f22d4d6cd1de8e6" 48SRC_URI[sha256sum] = "a57764d70caf85e2fc0b0f59b83b92e25775631714dcdb97cc6e0cea414bb5a3"
48 49
49# Put something like 50# Put something like
50# 51#
@@ -72,7 +73,7 @@ EXTRA_OECONF:append:mipsarcho32 = " --with-large_color_index=0"
72# Explicity disable libtiff, fontconfig, 73# Explicity disable libtiff, fontconfig,
73# freetype, cups for ghostscript-native 74# freetype, cups for ghostscript-native
74EXTRA_OECONF:class-native = "--without-x --with-system-libtiff=no \ 75EXTRA_OECONF:class-native = "--without-x --with-system-libtiff=no \
75 --without-jbig2dec --without-libpaper \ 76 --without-libpaper \
76 --with-fontpath=${datadir}/fonts \ 77 --with-fontpath=${datadir}/fonts \
77 --without-libidn --disable-fontconfig \ 78 --without-libidn --disable-fontconfig \
78 --enable-freetype --disable-cups " 79 --enable-freetype --disable-cups "