Skip to contentSkip to conversation

ghostscript: upgrade to 9.14

PATCH New Hongxu Jia 1 participant 3 messages Jun 17, 2014

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

v2 cover ghostscript: upgrade to 9.14

Change in V2:
- Fix do_compile failed on qemumips;

//Hongxu

The following changes since commit 02eb8620afa379d8b62f4cb761890068bb3232bc:

hwlatdetect: fix PV (2014-06-17 10:23:53 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib hongxu/upgrade-ghostscript
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/upgrade-ghostscript

Hongxu Jia (2):
ghostscript: upgrade to 9.14
ghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to
ARCH_SIZEOF_GX_COLOR_INDEX on mips

 ...c-add-a-preprocessor-define-to-allow-fope.patch |  36 ++++++
 .../ghostscript-9.02-parallel-make.patch           | 144 ++++++++++-----------
 .../ghostscript-9.05-NOT-check-endian.patch        |  44 -------
 ...tscript-native-fix-disable-system-libtiff.patch |  45 +++----
 .../{ghostscript_9.07.bb => ghostscript_9.14.bb}   |  45 ++-----
 5 files changed, 135 insertions(+), 179 deletions(-)
 create mode 100644 meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch
 delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch
 rename meta/recipes-extended/ghostscript/{ghostscript_9.07.bb => ghostscript_9.14.bb} (70%)
Signature · 1 line
1.8.1.2
author
#1 lore raw

PATCH v2 1/2 ghostscript: upgrade to 9.14

- The LICENSE added AGPL for the font files (in Resource/Font);

- Rebase ghostscript-9.02-parallel-make.patch to 9.14

- Rebase ghostscript-native-fix-disable-system-libtiff.patch since base/configure.ac has been moved to configure.ac.
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f1488c5aff54f37ee67759827d4298592af5dbc8

- Obsolete ghostscript-9.05-NOT-check-endian.patch, and add option '--enable-little-endian'/'--enable-big-endian' conditionally to intead.
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=e76dc46756e89a14a3348bce12a633d32e4fa831

- Add base-genht.c-add-a-preprocessor-define-to-allow-fope.patch for native, since the upstream replace all fopen calls with gp_fopen and add a preprocessor define so that any unintential calls directly to fopen will cause an error. This patch add a preprocessor define to allow fopen calling in base/genht.c as exceptions.
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643

- Remove package ghostscript-cups, since CUPS filters gstoraster and gstopxl has been moved to cups-filters which is a free software package hosted by OpenPrinting.
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=9304a21699a6c17579fae32f44f5c92a37c13e2d
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters

---
 ...c-add-a-preprocessor-define-to-allow-fope.patch |  36 ++++++
 .../ghostscript-9.02-parallel-make.patch           | 144 ++++++++++-----------
 .../ghostscript-9.05-NOT-check-endian.patch        |  44 -------
 ...tscript-native-fix-disable-system-libtiff.patch |  45 +++----
 .../{ghostscript_9.07.bb => ghostscript_9.14.bb}   |  42 ++----
 5 files changed, 132 insertions(+), 179 deletions(-)
 create mode 100644 meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch
 delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch
 rename meta/recipes-extended/ghostscript/{ghostscript_9.07.bb => ghostscript_9.14.bb} (70%)
meta/recipes-extended/ghostscript/ghostscript/base-genht.c-add-a-preprocessor-define-to-allow-fope.patch new file +36 -0
new file mode 100644
index 0000000..d97d4ec
@@ -0,0 +1,36 @@
+base/genht.c: add a preprocessor define to allow fopen calling
+
+The commit in upstream:
+http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643
+
+Replace all fopen calls with gp_fopen and add a preprocessor define so
+that any unintential calls directly to fopen will cause an error.
+
+Only exceptions are those in the platform specific code, and mkromfs.c.
+This patch add a preprocessor define to allow fopen calling in base/genht.c.
+
+Upstream-Status: Pending
+
+Signed-off-by: Hongxu Jia <[email protected]>
+---
+ base/genht.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/base/genht.c b/base/genht.c
+index 4b04085..cc82fff 100644
+--- a/base/genht.c
++++ b/base/genht.c
+@@ -16,6 +16,10 @@
+ 
+ /* Generate C code for compiling halftones into ROM. */
+ #include "malloc_.h"
++
++/* prevent gp.h from defining fopen */
++#define fopen fopen
++
+ #include "stdio_.h"
+ #include "string_.h"
+ #include "gscdefs.h"
+-- 
+1.8.1.2
+
meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-parallel-make.patch +72 -72

375 lines not on this page · raw message

meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-extended/ghostscript/ghostscript/ghostscript-native-fix-disable-system-libtiff.patch +16 -29

60 lines not on this page · raw message

meta/recipes-extended/ghostscript/ghostscript_9.14.bb renamed from meta/recipes-extended/ghostscript/ghostscript_9.07.bb +8 -34

83 lines not on this page · raw message

Signature · 1 line
1.8.1.2
author
#2 lore raw

PATCH v2 2/2 ghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to ARCH_SIZEOF_GX_COLOR_INDEX on mips

In reply to Hongxu Jia

The commit: http://ghostscript.com/pipermail/gs-cvs/2014-February/017271.html
newly added a 'compile time assert' on 9.14 that causes the build to fail if the sizeof(GX_COLOR_INDEX_TYPE) is not equal to ARCH_SIZEOF_GX_COLOR_INDEX.

Disscuss on IRC:
http://ghostscript.com/irclogs/2014/02/06.html

The commit from OE-Core rev: 78a13ba170c1de6d7ef077854e3e34e18d17099f
...
ghostscript: add pregenerated objarch for mipsel/mips64/mips64el
...
has defined ARCH_SIZEOF_GX_COLOR_INDEX according to the type of archs, and assigned 4 for mips/mipsel (8 for others).

The GX_COLOR_INDEX_TYPE was defined at do_configure time, which used large color index (with 8) by default. We should manually choose the opposite one (with 4) for mips/mipsel.

---
 meta/recipes-extended/ghostscript/ghostscript_9.14.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-extended/ghostscript/ghostscript_9.14.bb +3 -0
index 73cebbc..e14e656 100644
@@ -42,6 +42,9 @@ EXTRA_OECONF = "--without-x --with-system-libtiff --without-jbig2dec \
                 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--enable-little-endian', '--enable-big-endian', d)} \
                 "
 
+EXTRA_OECONF_append_mips = " --with-large_color_index=0"
+EXTRA_OECONF_append_mipsel = " --with-large_color_index=0"
+
 # Explicity disable libtiff, fontconfig,
 # freetype, cups for ghostscript-native
 EXTRA_OECONF_class-native = "--without-x --with-system-libtiff=no \
Signature · 1 line
1.8.1.2