package/lcms2: add support for host variant
PATCH v2 1/3 package/lcms2: add support for host variant
Needed for upcoming ghostscript package.
---
v2: initial version
package/lcms2/lcms2.mk | 1 + 1 file changed, 1 insertion(+)
package/lcms2/lcms2.mk +1 -0
@@ -31,4 +31,5 @@ else LCMS2_CONF_OPTS += --without-zlib endif +$(eval $(host-autotools-package)) $(eval $(autotools-package))
Signature · 1 line
2.11.0
PATCH v2 2/3 package/ghostscript: new package
---
v2: Current git HEAD contains patches to simplify cross compiling,
committed after the release of ghostscript 9.20. Therefore this commit now uses current git HEAD and shall be bumped to 9.21 once it is released. (Thomas)
Currently I am unable to register on bugs.ghostscript.com to send 0002-configaux.patch upstream but I will do so later.
package/Config.in | 1 + package/ghostscript/0001-libtiffconfdir.patch | 26 ++++++++++++ package/ghostscript/0002-configaux.patch | 36 ++++++++++++++++ package/ghostscript/Config.in | 14 ++++++ package/ghostscript/ghostscript.mk | 61 +++++++++++++++++++++++++++ 5 files changed, 138 insertions(+) create mode 100644 package/ghostscript/0001-libtiffconfdir.patch create mode 100644 package/ghostscript/0002-configaux.patch create mode 100644 package/ghostscript/Config.in create mode 100644 package/ghostscript/ghostscript.mk
package/Config.in +1 -0
@@ -234,6 +234,7 @@ menu "Graphic libraries and applications (graphic/text)" comment "Graphic applications" source "package/expedite/Config.in" source "package/fswebcam/Config.in" + source "package/ghostscript/Config.in" source "package/glmark2/Config.in" source "package/gnuplot/Config.in" source "package/jhead/Config.in"
package/ghostscript/0001-libtiffconfdir.patch new file +26 -0
@@ -0,0 +1,26 @@ +Fix cross compile bug + +Without this patch unsafe paths are used: +x86_64-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '/libtiff' + +Downloaded from +http://bugs.ghostscript.com/show_bug.cgi?id=696508#c3 + +Signed-off-by: Bernd Kuhls <[email protected]> + +@@ -, +, @@ +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) +--- a/configure.ac ++++ a/configure.ac +@@ -989,7 +989,7 @@ XPSWRITEDEVICE='' + + + LIBTIFFDIR='src' +-LIBTIFFCONFDIR='' ++LIBTIFFCONFDIR='src' + + TIFFDEVS_ALL='tiffs tiff12nc tiff24nc tiff48nc tiff32nc tiff64nc tiffcrle tifflzw tiffpack tiffgray tiffsep tiffsep1 tiffscaled tiffscaled4 tiffscaled8 tiffscaled24 tiffscaled32' + FAX_DEVS_ALL='cfax dfaxlow dfaxhigh fax faxg3 faxg32d faxg4 tiffg3 tiffg32d tiffg4 tfax' +--
package/ghostscript/0002-configaux.patch new file +36 -0
@@ -0,0 +1,36 @@ +Host tool mkromfs_1 needs libz + +Fixes build error + +/tmp/ccckTW0s.o: In function `process_path': +mkromfs.c:(.text+0x2390): undefined reference to `compress' +/tmp/ccckTW0s.o: In function `process_initfile': +mkromfs.c:(.text+0x3616): undefined reference to `compress' +collect2: error: ld returned 1 exit status +base/unix-aux.mak:103: recipe for target 'obj/aux/mkromfs_1' failed + +Signed-off-by: Bernd Kuhls <[email protected]> + +diff -uNr ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4.org/base/unix-aux.mak ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4/base/unix-aux.mak +--- ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4.org/base/unix-aux.mak 2016-12-17 11:33:18.000000000 +0100 ++++ ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4/base/unix-aux.mak 2016-12-18 14:44:57.325394211 +0100 +@@ -100,7 +100,7 @@ + $(AUX)gp_stdia.$(OBJ) $(AUX)gsutil.$(OBJ) + + $(MKROMFS_XE)_1: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_1) $(UNIX_AUX_MAK) $(MAKEDIRS) +- $(CCAUX_) $(GENOPTAUX) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) $(AUXEXTRALIBS) ++ $(CCAUX_) $(GENOPTAUX) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) $(AUXEXTRALIBS) $(AUX_SHARED_ZLIB) + + $(MKROMFS_XE): $(MKROMFS_XE)_$(SHARE_ZLIB) $(UNIX_AUX_MAK) $(MAKEDIRS) + $(CP_) $(MKROMFS_XE)_$(SHARE_ZLIB) $(MKROMFS_XE) +diff -uNr ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4.org/Makefile.in ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4/Makefile.in +--- ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4.org/Makefile.in 2016-12-17 11:33:18.000000000 +0100 ++++ ghostscript-2d46dd9e83edc813f2047a89cd260ab4de48fdf4/Makefile.in 2016-12-18 14:42:05.068156557 +0100 +@@ -461,6 +461,7 @@ + + EXTRALIBS=$(XTRALIBS) @LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@ @JPX_AUTOCONF_LIBS@ @EXPAT_LIBS@ + AUXEXTRALIBS=@AUXEXTRALIBS@ ++AUX_SHARED_ZLIB=@AUX_SHARED_ZLIB@ + + # Define the standard libraries to search at the end of linking. + # Most platforms require -lpthread for the POSIX threads library;
package/ghostscript/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_GHOSTSCRIPT + bool "ghostscript" + depends on BR2_USE_MMU # fork() + select BR2_PACKAGE_FONTCONFIG + select BR2_PACKAGE_GHOSTSCRIPT_FONTS + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LCMS2 + select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_TIFF + help + Ghostscript is an interpreter for PostScript and Portable + Document Format (PDF) files. + + http://ghostscript.com
package/ghostscript/ghostscript.mk new file +61 -0
61 lines not on this page · raw message
Signature · 1 line
2.11.0
Thomas Petazzoni
AppliedPATCH v2 2/3 package/ghostscript: new package
Hello,
Quoted 8 lines · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>---
v2: Current git HEAD contains patches to simplify cross compiling,
committed after the release of ghostscript 9.20. Therefore this commit now uses current git HEAD and shall be bumped to 9.21 once it is released. (Thomas)
Currently I am unable to register on bugs.ghostscript.com to send 0002-configaux.patch upstream but I will do so later.
Applied to master, after doing the following changes:
[Thomas:
- switch to version 9.21 now that it has been released
- add a hash file
- switch to Git formatted patches
- use $(HOSTCC) instead of hardcoding "gcc", and use $(HOST_CFLAGS) and $(HOST_LDFLAGS) instead of hardcoding -L$(HOST_DIR)/usr/lib -I$(HOST_DIR)/usr/include
- add entry to DEVELOPERS file.]
The one thing that would be really nice to do in your submissions in a more systematic fashion is to use Git to format the patches on packages that use Git as their version control system.
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 3/3 DEVELOPERS: add entry for ghostscript
In reply to Bernd Kuhls---
v2: initial version
DEVELOPERS | 1 + 1 file changed, 1 insertion(+)
DEVELOPERS +1 -0
@@ -156,6 +156,7 @@ F: package/exim/ F: package/fetchmail/ F: package/freeswitch/ F: package/ffmpeg/ +F: package/ghostscript/ F: package/giflib/ F: package/glmark2/ F: package/jsoncpp/
Signature · 1 line
2.11.0
Thomas Petazzoni
AppliedPATCH v2 1/3 package/lcms2: add support for host variant
In reply to Bernd KuhlsHello,
Quoted 5 lines · Bernd Kuhls
Needed for upcoming ghostscript package.
Signed-off-by Bernd Kuhls <[email protected]>---
v2: initial version
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com