public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/files/, app-text/ghostscript-gpl/
Date: Tue, 28 Sep 2021 02:50:18 +0000 (UTC)	[thread overview]
Message-ID: <1632797396.655a62e570746ba83e8fbadd977d58ae608984ba.sam@gentoo> (raw)

commit:     655a62e570746ba83e8fbadd977d58ae608984ba
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 28 02:49:56 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep 28 02:49:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=655a62e5

app-text/ghostscript-gpl: add more upstream parallel build patches to 94.0-r1

Bug: https://bugs.gentoo.org/800125
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../ghostscript-gpl-9.54.0-makefile-deps-2.patch   | 96 ++++++++++++++++++++++
 .../ghostscript-gpl-9.54.0-makefile-deps.patch     |  2 +
 .../ghostscript-gpl-9.54.0-r1.ebuild               |  7 +-
 3 files changed, 101 insertions(+), 4 deletions(-)

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
new file mode 100644
index 00000000000..38f0eaa1516
--- /dev/null
+++ b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.54.0-makefile-deps-2.patch
@@ -0,0 +1,96 @@
+From: Sam James <sam@gentoo.org>
+Date: Tue, 28 Sep 2021 03:40:19 +0100
+Subject: [PATCH] Rebased versions of upstream Makefile patches
+
+https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=cf868c13c03a781243c1d8764cbeba3a49ffb92e
+https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=c8285e6e9cd42277ae298475ad0c96da009b0e98
+https://bugs.gentoo.org/800125
+--- a/devices/devs.mak
++++ b/devices/devs.mak
+@@ -669,7 +669,7 @@ $(DD)txtwrite.dev : $(ECHOGS_XE) $(txtwrite_) $(GDEV)\
+ $(DEVOBJ)gdevtxtw.$(OBJ) : $(DEVVECSRC)gdevtxtw.c $(GDEV) $(gdevkrnlsclass_h) \
+   $(memory__h) $(string__h) $(gp_h) $(gsparam_h) $(gsutil_h) \
+   $(gsdevice_h) $(gxfont_h) $(gxfont0_h) $(gstext_h) $(gxfcid_h)\
+-  $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) $(DEVVECSRC)doc_common.h
++  $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(DEVVECSRC)doc_common.h $(MAKEDIRS)
+ 	$(DEVCC) $(DEVO_)gdevtxtw.$(OBJ) $(C_) $(DEVVECSRC)gdevtxtw.c
+ 
+ $(DEVOBJ)gdevagl.$(OBJ) : $(DEVVECSRC)gdevagl.c $(GDEV)\
+@@ -684,14 +684,14 @@ gdevagl_h=$(DEVVECSRC)gdevagl.h
+ docxwrite_=$(DEVOBJ)gdevdocxw.$(OBJ) $(DEVOBJ)gdevagl.$(OBJ) $(DEVOBJ)doc_common.$(OBJ)
+ 
+ $(DD)docxwrite.dev : $(ECHOGS_XE) $(docxwrite_) $(GDEV)\
+- $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) $(EXTRACT_OBJS)
++ $(gdevagl_h) $(DEVS_MAK) $(EXTRACT_OBJS) $(MAKEDIRS)
+ 	$(SETDEV2) $(DD)docxwrite $(docxwrite_) $(EXTRACT_OBJS)
+ 
+ $(DEVOBJ)gdevdocxw.$(OBJ) : $(DEVVECSRC)gdevdocxw.c $(GDEV) $(gdevkrnlsclass_h) \
+   $(memory__h) $(string__h) $(gp_h) $(gsparam_h) $(gsutil_h) \
+   $(gsdevice_h) $(gxfont_h) $(gxfont0_h) $(gstext_h) $(gxfcid_h)\
+-  $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) \
+-  $(DEVVECSRC)doc_common.h
++  $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(DEVVECSRC)doc_common.h \
++  $(MAKEDIRS)
+ 	$(DEVCC) $(DEVO_)gdevdocxw.$(OBJ) $(C_) $(DEVVECSRC)gdevdocxw.c
+ 
+ # Shared code used by txtwrite and docxwrite.
+@@ -699,7 +699,7 @@ $(DEVOBJ)gdevdocxw.$(OBJ) : $(DEVVECSRC)gdevdocxw.c $(GDEV) $(gdevkrnlsclass_h)
+ $(DEVOBJ)doc_common.$(OBJ) : $(DEVVECSRC)doc_common.c $(GDEV) $(gdevkrnlsclass_h) \
+   $(memory__h) $(string__h) $(gp_h) $(gsparam_h) $(gsutil_h) \
+   $(gsdevice_h) $(gxfont_h) $(gxfont0_h) $(gstext_h) $(gxfcid_h)\
+-  $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(MAKEDIRS) $(DEVVECSRC)doc_common.h
++  $(gxgstate_h) $(gxpath_h) $(gdevagl_h) $(DEVS_MAK) $(DEVVECSRC)doc_common.h $(MAKEDIRS)
+ 	$(DEVCC) $(DEVO_)doc_common.$(OBJ) $(C_) $(DEVVECSRC)doc_common.c
+ 
+ 
+--- a/devices/extract.mak
++++ b/devices/extract.mak
+@@ -1,37 +1,37 @@
+ extract_cc = $(CC) $(CCFLAGS) $(I_)$(EXTRACT_DIR)/include$(_I) $(I_)$(ZSRCDIR)$(_I) $(O_)
+ extract_out_prefix = $(GLOBJDIR)$(D)extract_
+ 
+-$(extract_out_prefix)alloc.$(OBJ):          $(EXTRACT_DIR)/src/alloc.c
++$(extract_out_prefix)alloc.$(OBJ):          $(EXTRACT_DIR)/src/alloc.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/alloc.c
+ 
+-$(extract_out_prefix)astring.$(OBJ):        $(EXTRACT_DIR)/src/astring.c
++$(extract_out_prefix)astring.$(OBJ):        $(EXTRACT_DIR)/src/astring.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/astring.c
+ 
+-$(extract_out_prefix)buffer.$(OBJ):         $(EXTRACT_DIR)/src/buffer.c
++$(extract_out_prefix)buffer.$(OBJ):         $(EXTRACT_DIR)/src/buffer.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/buffer.c
+ 
+-$(extract_out_prefix)docx.$(OBJ):           $(EXTRACT_DIR)/src/docx.c
++$(extract_out_prefix)docx.$(OBJ):           $(EXTRACT_DIR)/src/docx.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/docx.c
+ 
+-$(extract_out_prefix)docx_template.$(OBJ):  $(EXTRACT_DIR)/src/docx_template.c
++$(extract_out_prefix)docx_template.$(OBJ):  $(EXTRACT_DIR)/src/docx_template.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/docx_template.c
+ 
+-$(extract_out_prefix)extract.$(OBJ):        $(EXTRACT_DIR)/src/extract.c
++$(extract_out_prefix)extract.$(OBJ):        $(EXTRACT_DIR)/src/extract.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/extract.c
+ 
+-$(extract_out_prefix)join.$(OBJ):           $(EXTRACT_DIR)/src/join.c
++$(extract_out_prefix)join.$(OBJ):           $(EXTRACT_DIR)/src/join.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/join.c
+ 
+-$(extract_out_prefix)mem.$(OBJ):            $(EXTRACT_DIR)/src/mem.c
++$(extract_out_prefix)mem.$(OBJ):            $(EXTRACT_DIR)/src/mem.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/mem.c
+ 
+-$(extract_out_prefix)outf.$(OBJ):           $(EXTRACT_DIR)/src/outf.c
++$(extract_out_prefix)outf.$(OBJ):           $(EXTRACT_DIR)/src/outf.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/outf.c
+ 
+-$(extract_out_prefix)xml.$(OBJ):            $(EXTRACT_DIR)/src/xml.c
++$(extract_out_prefix)xml.$(OBJ):            $(EXTRACT_DIR)/src/xml.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/xml.c
+ 
+-$(extract_out_prefix)zip.$(OBJ):            $(EXTRACT_DIR)/src/zip.c
++$(extract_out_prefix)zip.$(OBJ):            $(EXTRACT_DIR)/src/zip.c $(MAKEDIRS)
+ 	$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/zip.c
+ 
+ EXTRACT_OBJS = \

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
index 33858f763db..51ce95958ba 100644
--- 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
@@ -1,4 +1,6 @@
 https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=4874418fd031617212336b8b55f8fcba3b9cfb68#patch1
+https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=cf868c13c03a781243c1d8764cbeba3a49ffb92e
+https://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=c8285e6e9cd42277ae298475ad0c96da009b0e98
 https://bugs.gentoo.org/800125
 
 From: Chris Liddell <chris.liddell@artifex.com>

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
index 210f7eba636..94be6c18b80 100644
--- a/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0-r1.ebuild
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0-r1.ebuild
@@ -72,6 +72,7 @@ src_prepare() {
 	# Upstream patches
 	eapply "${FILESDIR}"/${P}-CVE-2021-3781.patch
 	eapply "${FILESDIR}"/${P}-makefile-deps.patch
+	eapply "${FILESDIR}"/${P}-makefile-deps-2.patch
 
 	default
 
@@ -164,12 +165,10 @@ src_configure() {
 }
 
 src_compile() {
-	# Forcing j1 for both emake calls for now
-	# See bug #800125
-	emake -j1 so all
+	emake so all
 
 	cd ijs || die
-	emake -j1
+	emake
 }
 
 src_install() {


             reply	other threads:[~2021-09-28  2:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-28  2:50 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-19 10:47 [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/files/, app-text/ghostscript-gpl/ Sam James
2023-12-04  9:25 Sam James
2022-12-18  7:48 Sam James
2022-04-17 12:09 Sam James
2022-01-15 14:15 Andreas Sturmlechner
2018-11-04 20:33 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1632797396.655a62e570746ba83e8fbadd977d58ae608984ba.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox