diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-01-29 17:33:35 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-14 22:26:10 +0000 |
commit | 065f4034698caaaab9c8076d3c7e4ebafb8a9353 (patch) | |
tree | 51ff62526b66d24372b4b7be48ccb3d87cbea7b3 | |
parent | 521ec7e979409f213cd98ed6015fdba2fce89243 (diff) | |
download | openembedded-core-065f4034698caaaab9c8076d3c7e4ebafb8a9353.tar.gz openembedded-core-065f4034698caaaab9c8076d3c7e4ebafb8a9353.tar.bz2 openembedded-core-065f4034698caaaab9c8076d3c7e4ebafb8a9353.zip |
ghostscript: fix and enable parallel build
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.15-parallel-make.patch | 40 | ||||
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.15.bb | 6 |
2 files changed, 41 insertions, 5 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.15-parallel-make.patch b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.15-parallel-make.patch new file mode 100644 index 0000000000..797b8947cf --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.15-parallel-make.patch @@ -0,0 +1,40 @@ +From be1e1b33191afdcfe3c2ecc4ff3e361a5859e9c6 Mon Sep 17 00:00:00 2001 +From: Robert Yang <liezhi.yang@windriver.com> +Date: Fri, 30 Jan 2015 00:40:22 -0800 +Subject: [PATCH] contrib.mak: fix for parallel build + +Fixed: +rm: cannot remove `/usr/share/ghostscript/9.15/lib': Is a directory + +Create lib before install to fix the race issue. + +Upstream-Status: Pending + +Signed-off-by: Robert Yang <liezhi.yang@windriver.com> +--- + contrib/contrib.mak | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/contrib/contrib.mak b/contrib/contrib.mak +index 08a80d1..de2e20d 100644 +--- a/contrib/contrib.mak ++++ b/contrib/contrib.mak +@@ -947,6 +947,7 @@ $(DEVOBJ)dviprlib.$(OBJ) : $(JAPSRC)dviprlib.c $(JAPSRC)dviprlib.h + $(DEVCC) $(O_)$@ $(C_) $(JAPSRC)dviprlib.c + + extra-dmprt-install: ++ mkdir -p $(DESTDIR)$(gsdatadir)$(D)lib + $(INSTALL_DATA) $(JAPSRC)dmp_init.ps $(DESTDIR)$(gsdatadir)$(D)lib || exit 1 + $(INSTALL_DATA) $(JAPSRC)dmp_site.ps $(DESTDIR)$(gsdatadir)$(D)lib || exit 1 + $(INSTALL_DATA) $(JAPSRC)escp_24.src $(DESTDIR)$(gsdatadir)$(D)lib || exit 1 +@@ -1088,6 +1089,7 @@ $(DEVOBJ)gdevalps.$(OBJ) : $(JAPSRC)gdevalps.c $(PDEVH) + ### ----------------- Additional .upp files ---------------- ### + + extra-upp-install: ++ mkdir -p $(DESTDIR)$(gsdatadir)$(D)lib + for f in $(CONTRIBSRC)uniprint$(D)*.upp; do \ + $(INSTALL_DATA) $$f $(DESTDIR)$(gsdatadir)$(D)lib || exit 1; \ + done +-- +1.7.9.5 + diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.15.bb b/meta/recipes-extended/ghostscript/ghostscript_9.15.bb index 850ed81705..578883777d 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.15.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.15.bb @@ -24,6 +24,7 @@ SRC_URI = "${SRC_URI_BASE} \ file://objarch.h \ file://ghostscript-9.02-parallel-make.patch \ file://cups-no-gcrypt.patch \ + file://ghostscript-9.15-parallel-make.patch \ " SRC_URI_class-native = "${SRC_URI_BASE} \ @@ -101,8 +102,3 @@ do_install_class-native () { } BBCLASSEXTEND = "native" - -# Ghostscript install tool 'instcopy' tries to remove already created -# directories during install and parallel make causes problems. -PARALLEL_MAKEINST="" - |