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-15 21:58:27 +0000 |
commit | 8d30c2a0b3092e032382b103d9d010837fb75591 (patch) | |
tree | 85696dfb53140b9c206e8e08b28907eac66d12cd /meta | |
parent | 2d9763a1c8685e9bd3a6b0aa0995eec5112dc4a7 (diff) | |
download | poky-8d30c2a0b3092e032382b103d9d010837fb75591.tar.gz |
ghostscript: fix and enable parallel build
(From OE-Core rev: 065f4034698caaaab9c8076d3c7e4ebafb8a9353)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 @@ | |||
1 | From be1e1b33191afdcfe3c2ecc4ff3e361a5859e9c6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Fri, 30 Jan 2015 00:40:22 -0800 | ||
4 | Subject: [PATCH] contrib.mak: fix for parallel build | ||
5 | |||
6 | Fixed: | ||
7 | rm: cannot remove `/usr/share/ghostscript/9.15/lib': Is a directory | ||
8 | |||
9 | Create lib before install to fix the race issue. | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
14 | --- | ||
15 | contrib/contrib.mak | 2 ++ | ||
16 | 1 file changed, 2 insertions(+) | ||
17 | |||
18 | diff --git a/contrib/contrib.mak b/contrib/contrib.mak | ||
19 | index 08a80d1..de2e20d 100644 | ||
20 | --- a/contrib/contrib.mak | ||
21 | +++ b/contrib/contrib.mak | ||
22 | @@ -947,6 +947,7 @@ $(DEVOBJ)dviprlib.$(OBJ) : $(JAPSRC)dviprlib.c $(JAPSRC)dviprlib.h | ||
23 | $(DEVCC) $(O_)$@ $(C_) $(JAPSRC)dviprlib.c | ||
24 | |||
25 | extra-dmprt-install: | ||
26 | + mkdir -p $(DESTDIR)$(gsdatadir)$(D)lib | ||
27 | $(INSTALL_DATA) $(JAPSRC)dmp_init.ps $(DESTDIR)$(gsdatadir)$(D)lib || exit 1 | ||
28 | $(INSTALL_DATA) $(JAPSRC)dmp_site.ps $(DESTDIR)$(gsdatadir)$(D)lib || exit 1 | ||
29 | $(INSTALL_DATA) $(JAPSRC)escp_24.src $(DESTDIR)$(gsdatadir)$(D)lib || exit 1 | ||
30 | @@ -1088,6 +1089,7 @@ $(DEVOBJ)gdevalps.$(OBJ) : $(JAPSRC)gdevalps.c $(PDEVH) | ||
31 | ### ----------------- Additional .upp files ---------------- ### | ||
32 | |||
33 | extra-upp-install: | ||
34 | + mkdir -p $(DESTDIR)$(gsdatadir)$(D)lib | ||
35 | for f in $(CONTRIBSRC)uniprint$(D)*.upp; do \ | ||
36 | $(INSTALL_DATA) $$f $(DESTDIR)$(gsdatadir)$(D)lib || exit 1; \ | ||
37 | done | ||
38 | -- | ||
39 | 1.7.9.5 | ||
40 | |||
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} \ | |||
24 | file://objarch.h \ | 24 | file://objarch.h \ |
25 | file://ghostscript-9.02-parallel-make.patch \ | 25 | file://ghostscript-9.02-parallel-make.patch \ |
26 | file://cups-no-gcrypt.patch \ | 26 | file://cups-no-gcrypt.patch \ |
27 | file://ghostscript-9.15-parallel-make.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRC_URI_class-native = "${SRC_URI_BASE} \ | 30 | SRC_URI_class-native = "${SRC_URI_BASE} \ |
@@ -101,8 +102,3 @@ do_install_class-native () { | |||
101 | } | 102 | } |
102 | 103 | ||
103 | BBCLASSEXTEND = "native" | 104 | BBCLASSEXTEND = "native" |
104 | |||
105 | # Ghostscript install tool 'instcopy' tries to remove already created | ||
106 | # directories during install and parallel make causes problems. | ||
107 | PARALLEL_MAKEINST="" | ||
108 | |||