1 |
commit: 655a62e570746ba83e8fbadd977d58ae608984ba |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 28 02:49:56 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 28 02:49:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=655a62e5 |
7 |
|
8 |
app-text/ghostscript-gpl: add more upstream parallel build patches to 94.0-r1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/800125 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../ghostscript-gpl-9.54.0-makefile-deps-2.patch | 96 ++++++++++++++++++++++ |
14 |
.../ghostscript-gpl-9.54.0-makefile-deps.patch | 2 + |
15 |
.../ghostscript-gpl-9.54.0-r1.ebuild | 7 +- |
16 |
3 files changed, 101 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps-2.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps-2.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..38f0eaa1516 |
21 |
--- /dev/null |
22 |
+++ b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps-2.patch |
23 |
@@ -0,0 +1,96 @@ |
24 |
+From: Sam James <sam@g.o> |
25 |
+Date: Tue, 28 Sep 2021 03:40:19 +0100 |
26 |
+Subject: [PATCH] Rebased versions of upstream Makefile patches |
27 |
+ |
28 |
+https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=cf868c13c03a781243c1d8764cbeba3a49ffb92e |
29 |
+https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=c8285e6e9cd42277ae298475ad0c96da009b0e98 |
30 |
+https://bugs.gentoo.org/800125 |
31 |
+--- a/devices/devs.mak |
32 |
++++ b/devices/devs.mak |
33 |
+@@ -669,7 +669,7 @@ $(DD)txtwrite.dev : $(ECHOGS_XE) $(txtwrite_) $(GDEV)\ |
34 |
+ $(DEVOBJ)gdevtxtw.$(OBJ) : $(DEVVECSRC)gdevtxtw.c $(GDEV) $(gdevkrnlsclass_h) \ |
35 |
+ $(memory__h) $(string__h) $(gp_h) $(gsparam_h) $(gsutil_h) \ |
36 |
+ $(gsdevice_h) $(gxfont_h) $(gxfont0_h) $(gstext_h) $(gxfcid_h)\ |
37 |
+- $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) $(DEVVECSRC)doc_common.h |
38 |
++ $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(DEVVECSRC)doc_common.h $(MAKEDIRS) |
39 |
+ $(DEVCC) $(DEVO_)gdevtxtw.$(OBJ) $(C_) $(DEVVECSRC)gdevtxtw.c |
40 |
+ |
41 |
+ $(DEVOBJ)gdevagl.$(OBJ) : $(DEVVECSRC)gdevagl.c $(GDEV)\ |
42 |
+@@ -684,14 +684,14 @@ gdevagl_h=$(DEVVECSRC)gdevagl.h |
43 |
+ docxwrite_=$(DEVOBJ)gdevdocxw.$(OBJ) $(DEVOBJ)gdevagl.$(OBJ) $(DEVOBJ)doc_common.$(OBJ) |
44 |
+ |
45 |
+ $(DD)docxwrite.dev : $(ECHOGS_XE) $(docxwrite_) $(GDEV)\ |
46 |
+- $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) $(EXTRACT_OBJS) |
47 |
++ $(gdevagl_h) $(DEVS_MAK) $(EXTRACT_OBJS) $(MAKEDIRS) |
48 |
+ $(SETDEV2) $(DD)docxwrite $(docxwrite_) $(EXTRACT_OBJS) |
49 |
+ |
50 |
+ $(DEVOBJ)gdevdocxw.$(OBJ) : $(DEVVECSRC)gdevdocxw.c $(GDEV) $(gdevkrnlsclass_h) \ |
51 |
+ $(memory__h) $(string__h) $(gp_h) $(gsparam_h) $(gsutil_h) \ |
52 |
+ $(gsdevice_h) $(gxfont_h) $(gxfont0_h) $(gstext_h) $(gxfcid_h)\ |
53 |
+- $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) \ |
54 |
+- $(DEVVECSRC)doc_common.h |
55 |
++ $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(DEVVECSRC)doc_common.h \ |
56 |
++ $(MAKEDIRS) |
57 |
+ $(DEVCC) $(DEVO_)gdevdocxw.$(OBJ) $(C_) $(DEVVECSRC)gdevdocxw.c |
58 |
+ |
59 |
+ # Shared code used by txtwrite and docxwrite. |
60 |
+@@ -699,7 +699,7 @@ $(DEVOBJ)gdevdocxw.$(OBJ) : $(DEVVECSRC)gdevdocxw.c $(GDEV) $(gdevkrnlsclass_h) |
61 |
+ $(DEVOBJ)doc_common.$(OBJ) : $(DEVVECSRC)doc_common.c $(GDEV) $(gdevkrnlsclass_h) \ |
62 |
+ $(memory__h) $(string__h) $(gp_h) $(gsparam_h) $(gsutil_h) \ |
63 |
+ $(gsdevice_h) $(gxfont_h) $(gxfont0_h) $(gstext_h) $(gxfcid_h)\ |
64 |
+- $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) $(DEVVECSRC)doc_common.h |
65 |
++ $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(DEVVECSRC)doc_common.h $(MAKEDIRS) |
66 |
+ $(DEVCC) $(DEVO_)doc_common.$(OBJ) $(C_) $(DEVVECSRC)doc_common.c |
67 |
+ |
68 |
+ |
69 |
+--- a/devices/extract.mak |
70 |
++++ b/devices/extract.mak |
71 |
+@@ -1,37 +1,37 @@ |
72 |
+ extract_cc = $(CC) $(CCFLAGS) $(I_)$(EXTRACT_DIR)/include$(_I) $(I_)$(ZSRCDIR)$(_I) $(O_) |
73 |
+ extract_out_prefix = $(GLOBJDIR)$(D)extract_ |
74 |
+ |
75 |
+-$(extract_out_prefix)alloc.$(OBJ): $(EXTRACT_DIR)/src/alloc.c |
76 |
++$(extract_out_prefix)alloc.$(OBJ): $(EXTRACT_DIR)/src/alloc.c $(MAKEDIRS) |
77 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/alloc.c |
78 |
+ |
79 |
+-$(extract_out_prefix)astring.$(OBJ): $(EXTRACT_DIR)/src/astring.c |
80 |
++$(extract_out_prefix)astring.$(OBJ): $(EXTRACT_DIR)/src/astring.c $(MAKEDIRS) |
81 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/astring.c |
82 |
+ |
83 |
+-$(extract_out_prefix)buffer.$(OBJ): $(EXTRACT_DIR)/src/buffer.c |
84 |
++$(extract_out_prefix)buffer.$(OBJ): $(EXTRACT_DIR)/src/buffer.c $(MAKEDIRS) |
85 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/buffer.c |
86 |
+ |
87 |
+-$(extract_out_prefix)docx.$(OBJ): $(EXTRACT_DIR)/src/docx.c |
88 |
++$(extract_out_prefix)docx.$(OBJ): $(EXTRACT_DIR)/src/docx.c $(MAKEDIRS) |
89 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/docx.c |
90 |
+ |
91 |
+-$(extract_out_prefix)docx_template.$(OBJ): $(EXTRACT_DIR)/src/docx_template.c |
92 |
++$(extract_out_prefix)docx_template.$(OBJ): $(EXTRACT_DIR)/src/docx_template.c $(MAKEDIRS) |
93 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/docx_template.c |
94 |
+ |
95 |
+-$(extract_out_prefix)extract.$(OBJ): $(EXTRACT_DIR)/src/extract.c |
96 |
++$(extract_out_prefix)extract.$(OBJ): $(EXTRACT_DIR)/src/extract.c $(MAKEDIRS) |
97 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/extract.c |
98 |
+ |
99 |
+-$(extract_out_prefix)join.$(OBJ): $(EXTRACT_DIR)/src/join.c |
100 |
++$(extract_out_prefix)join.$(OBJ): $(EXTRACT_DIR)/src/join.c $(MAKEDIRS) |
101 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/join.c |
102 |
+ |
103 |
+-$(extract_out_prefix)mem.$(OBJ): $(EXTRACT_DIR)/src/mem.c |
104 |
++$(extract_out_prefix)mem.$(OBJ): $(EXTRACT_DIR)/src/mem.c $(MAKEDIRS) |
105 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/mem.c |
106 |
+ |
107 |
+-$(extract_out_prefix)outf.$(OBJ): $(EXTRACT_DIR)/src/outf.c |
108 |
++$(extract_out_prefix)outf.$(OBJ): $(EXTRACT_DIR)/src/outf.c $(MAKEDIRS) |
109 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/outf.c |
110 |
+ |
111 |
+-$(extract_out_prefix)xml.$(OBJ): $(EXTRACT_DIR)/src/xml.c |
112 |
++$(extract_out_prefix)xml.$(OBJ): $(EXTRACT_DIR)/src/xml.c $(MAKEDIRS) |
113 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/xml.c |
114 |
+ |
115 |
+-$(extract_out_prefix)zip.$(OBJ): $(EXTRACT_DIR)/src/zip.c |
116 |
++$(extract_out_prefix)zip.$(OBJ): $(EXTRACT_DIR)/src/zip.c $(MAKEDIRS) |
117 |
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/zip.c |
118 |
+ |
119 |
+ EXTRACT_OBJS = \ |
120 |
|
121 |
diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps.patch |
122 |
index 33858f763db..51ce95958ba 100644 |
123 |
--- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps.patch |
124 |
+++ b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps.patch |
125 |
@@ -1,4 +1,6 @@ |
126 |
https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=4874418fd031617212336b8b55f8fcba3b9cfb68#patch1 |
127 |
+https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=cf868c13c03a781243c1d8764cbeba3a49ffb92e |
128 |
+https://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=c8285e6e9cd42277ae298475ad0c96da009b0e98 |
129 |
https://bugs.gentoo.org/800125 |
130 |
|
131 |
From: Chris Liddell <chris.liddell@×××××××.com> |
132 |
|
133 |
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0-r1.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0-r1.ebuild |
134 |
index 210f7eba636..94be6c18b80 100644 |
135 |
--- a/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0-r1.ebuild |
136 |
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0-r1.ebuild |
137 |
@@ -72,6 +72,7 @@ src_prepare() { |
138 |
# Upstream patches |
139 |
eapply "${FILESDIR}"/${P}-CVE-2021-3781.patch |
140 |
eapply "${FILESDIR}"/${P}-makefile-deps.patch |
141 |
+ eapply "${FILESDIR}"/${P}-makefile-deps-2.patch |
142 |
|
143 |
default |
144 |
|
145 |
@@ -164,12 +165,10 @@ src_configure() { |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
- # Forcing j1 for both emake calls for now |
150 |
- # See bug #800125 |
151 |
- emake -j1 so all |
152 |
+ emake so all |
153 |
|
154 |
cd ijs || die |
155 |
- emake -j1 |
156 |
+ emake |
157 |
} |
158 |
|
159 |
src_install() { |