1 |
commit: 1c908871e0a615a3a4ce3e21dabfa5c1b1712011 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 22 08:39:02 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 22 08:41:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c908871 |
7 |
|
8 |
app-emacs/org-mode: Fix parallel build failure |
9 |
|
10 |
Closes: https://bugs.gentoo.org/829055 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
13 |
|
14 |
.../files/org-mode-9.5-parallel-make.patch | 73 ++++++++++++++++++++++ |
15 |
app-emacs/org-mode/org-mode-9.5.ebuild | 2 + |
16 |
2 files changed, 75 insertions(+) |
17 |
|
18 |
diff --git a/app-emacs/org-mode/files/org-mode-9.5-parallel-make.patch b/app-emacs/org-mode/files/org-mode-9.5-parallel-make.patch |
19 |
new file mode 100644 |
20 |
index 000000000000..92ff5d3182f8 |
21 |
--- /dev/null |
22 |
+++ b/app-emacs/org-mode/files/org-mode-9.5-parallel-make.patch |
23 |
@@ -0,0 +1,73 @@ |
24 |
+https://bugs.gentoo.org/829055 |
25 |
+ |
26 |
+From b6c5f028a061557e2edb64eef897cd4a28b2afeb Mon Sep 17 00:00:00 2001 |
27 |
+From: Marco Wahl <marcowahlsoft@×××××.com> |
28 |
+Date: Mon, 20 Dec 2021 22:27:50 +0100 |
29 |
+Subject: [PATCH] Fix parallel make of docs |
30 |
+MIME-Version: 1.0 |
31 |
+Content-Type: text/plain; charset=UTF-8 |
32 |
+Content-Transfer-Encoding: 8bit |
33 |
+ |
34 |
+* doc/Makefile: Split multiple target "org.texi orgguide.texi". |
35 |
+* mk/org-fixup.el (org-make-manual, org-make-guide): New functions. |
36 |
+ (org-make-manuals): Make obsolete. |
37 |
+ |
38 |
+Reported by Ulrich Müller. https://list.orgmode.org/uee67gr96@g.o/ |
39 |
+--- |
40 |
+ doc/Makefile | 10 ++++++++-- |
41 |
+ mk/org-fixup.el | 15 +++++++++++++++ |
42 |
+ 2 files changed, 23 insertions(+), 2 deletions(-) |
43 |
+ |
44 |
+diff --git a/doc/Makefile b/doc/Makefile |
45 |
+index 7fb96e65d..cb6d72bdc 100644 |
46 |
+--- a/doc/Makefile |
47 |
++++ b/doc/Makefile |
48 |
+@@ -27,11 +27,17 @@ guide:: orgguide.texi org-version.inc |
49 |
+ ../mk/guidesplit.pl $@/* |
50 |
+ endif |
51 |
+ |
52 |
+-org.texi orgguide.texi: org-manual.org org-guide.org |
53 |
++org.texi: org-manual.org |
54 |
+ $(BATCH) \ |
55 |
+ --eval '(add-to-list `load-path "../lisp")' \ |
56 |
+ --eval '(load "../mk/org-fixup.el")' \ |
57 |
+- --eval '(org-make-manuals)' |
58 |
++ --eval '(org-make-manual)' |
59 |
++ |
60 |
++orgguide.texi: org-guide.org |
61 |
++ $(BATCH) \ |
62 |
++ --eval '(add-to-list `load-path "../lisp")' \ |
63 |
++ --eval '(load "../mk/org-fixup.el")' \ |
64 |
++ --eval '(org-make-guide)' |
65 |
+ |
66 |
+ org-version.inc: org.texi |
67 |
+ @echo "org-version: $(ORGVERSION) ($(GITVERSION))" |
68 |
+diff --git a/mk/org-fixup.el b/mk/org-fixup.el |
69 |
+index c0eef23cb..0e26cc7e7 100644 |
70 |
+--- a/mk/org-fixup.el |
71 |
++++ b/mk/org-fixup.el |
72 |
+@@ -27,6 +27,21 @@ |
73 |
+ (require 'autoload) |
74 |
+ (require 'org-compat "org-compat.el") |
75 |
+ |
76 |
++(defun org-make-manual () |
77 |
++ "Generate the Texinfo file out of the Org manual." |
78 |
++ (require 'ox-texinfo) |
79 |
++ (find-file "../doc/org-manual.org") |
80 |
++ (org-texinfo-export-to-texinfo)) |
81 |
++ |
82 |
++(defun org-make-guide () |
83 |
++ "Generate the Texinfo file out of the Org guide." |
84 |
++ (require 'ox-texinfo) |
85 |
++ (find-file "../doc/org-guide.org") |
86 |
++ (org-texinfo-export-to-texinfo)) |
87 |
++ |
88 |
++(make-obsolete 'org-make-manuals |
89 |
++ "use org-make-manual and org-make-guide." |
90 |
++ "9.6") |
91 |
+ (defun org-make-manuals () |
92 |
+ "Generate the Texinfo files out of Org manuals." |
93 |
+ (require 'ox-texinfo) |
94 |
+-- |
95 |
+2.34.1 |
96 |
+ |
97 |
|
98 |
diff --git a/app-emacs/org-mode/org-mode-9.5.ebuild b/app-emacs/org-mode/org-mode-9.5.ebuild |
99 |
index d4f4644be22f..064ab2444a98 100644 |
100 |
--- a/app-emacs/org-mode/org-mode-9.5.ebuild |
101 |
+++ b/app-emacs/org-mode/org-mode-9.5.ebuild |
102 |
@@ -22,6 +22,8 @@ BDEPEND="doc? ( virtual/texi2dvi )" |
103 |
|
104 |
SITEFILE="50${PN}-gentoo.el" |
105 |
|
106 |
+PATCHES=("${FILESDIR}/${P}-parallel-make.patch") |
107 |
+ |
108 |
src_compile() { |
109 |
emake datadir="${EPREFIX}${SITEETC}/${PN}" |
110 |
use doc && emake pdf card |