1 |
commit: d36d66e6d8f8da372bc8b6dc23b69a69c8b84960 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 23 08:28:47 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 23 08:38:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d36d66e6 |
7 |
|
8 |
sys-devel/llvm: Backport upstream Sphinx race fix to 3.9, #606858 |
9 |
|
10 |
It seems that we have only applied the patch fixing race condition |
11 |
between LLVM Sphinx targets and not between clang's. To fix that, just |
12 |
switch to the upstream patch that fixes both at the root. |
13 |
|
14 |
...n-ordering-dep-between-HTML-man-Sphinx-ta.patch | 0 |
15 |
...eparate-doctrees-to-prevent-races-between.patch | 35 ++++++++++++++++++++++ |
16 |
sys-devel/llvm/llvm-3.7.1-r3.ebuild | 2 +- |
17 |
sys-devel/llvm/llvm-3.8.1-r2.ebuild | 2 +- |
18 |
sys-devel/llvm/llvm-3.8.1.ebuild | 2 +- |
19 |
sys-devel/llvm/llvm-3.9.0-r1.ebuild | 2 +- |
20 |
sys-devel/llvm/llvm-3.9.1-r1.ebuild | 2 +- |
21 |
sys-devel/llvm/llvm-3.9.1.ebuild | 2 +- |
22 |
8 files changed, 41 insertions(+), 6 deletions(-) |
23 |
|
24 |
diff --git a/sys-devel/llvm/files/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch b/sys-devel/llvm/files/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
25 |
similarity index 100% |
26 |
rename from sys-devel/llvm/files/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
27 |
rename to sys-devel/llvm/files/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
28 |
|
29 |
diff --git a/sys-devel/llvm/files/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch b/sys-devel/llvm/files/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch |
30 |
new file mode 100644 |
31 |
index 00000000..1e01e64 |
32 |
--- /dev/null |
33 |
+++ b/sys-devel/llvm/files/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch |
34 |
@@ -0,0 +1,35 @@ |
35 |
+From 40960f63616f62c8ac52eeeddf68bdb441b8be3e Mon Sep 17 00:00:00 2001 |
36 |
+From: Michal Gorny <mgorny@g.o> |
37 |
+Date: Tue, 4 Oct 2016 06:09:14 +0000 |
38 |
+Subject: [PATCH] [cmake] Use separate doctrees to prevent races between Sphinx |
39 |
+ instances |
40 |
+ |
41 |
+Use separate doctrees between different Sphinx builders in order to |
42 |
+prevent race condition issues due to multiple Sphinx instances accessing |
43 |
+the same doctree cache in parallel. |
44 |
+ |
45 |
+Bug: https://llvm.org/bugs/show_bug.cgi?id=23781 |
46 |
+ |
47 |
+Differential Revision: https://reviews.llvm.org/D23755 |
48 |
+ |
49 |
+git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283188 91177308-0d34-0410-b5e6-96231b3b80d8 |
50 |
+--- |
51 |
+ cmake/modules/AddSphinxTarget.cmake | 2 +- |
52 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
53 |
+ |
54 |
+diff --git a/cmake/modules/AddSphinxTarget.cmake b/cmake/modules/AddSphinxTarget.cmake |
55 |
+index a968555aa06..ca9f4c38ffd 100644 |
56 |
+--- a/cmake/modules/AddSphinxTarget.cmake |
57 |
++++ b/cmake/modules/AddSphinxTarget.cmake |
58 |
+@@ -6,7 +6,7 @@ |
59 |
+ # ``project`` should be the project name |
60 |
+ function (add_sphinx_target builder project) |
61 |
+ set(SPHINX_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/${builder}") |
62 |
+- set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees") |
63 |
++ set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees-${builder}") |
64 |
+ set(SPHINX_TARGET_NAME docs-${project}-${builder}) |
65 |
+ |
66 |
+ if (SPHINX_WARNINGS_AS_ERRORS) |
67 |
+-- |
68 |
+2.11.0 |
69 |
+ |
70 |
|
71 |
diff --git a/sys-devel/llvm/llvm-3.7.1-r3.ebuild b/sys-devel/llvm/llvm-3.7.1-r3.ebuild |
72 |
index b1e9ceb..edebcba 100644 |
73 |
--- a/sys-devel/llvm/llvm-3.7.1-r3.ebuild |
74 |
+++ b/sys-devel/llvm/llvm-3.7.1-r3.ebuild |
75 |
@@ -167,7 +167,7 @@ src_prepare() { |
76 |
|
77 |
# Prevent race conditions with parallel Sphinx runs |
78 |
# https://llvm.org/bugs/show_bug.cgi?id=23781 |
79 |
- eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
80 |
+ eapply "${FILESDIR}"/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
81 |
|
82 |
# Prevent installing libgtest |
83 |
# https://llvm.org/bugs/show_bug.cgi?id=18341 |
84 |
|
85 |
diff --git a/sys-devel/llvm/llvm-3.8.1-r2.ebuild b/sys-devel/llvm/llvm-3.8.1-r2.ebuild |
86 |
index 5ba7822..fd640fc 100644 |
87 |
--- a/sys-devel/llvm/llvm-3.8.1-r2.ebuild |
88 |
+++ b/sys-devel/llvm/llvm-3.8.1-r2.ebuild |
89 |
@@ -167,7 +167,7 @@ src_prepare() { |
90 |
|
91 |
# Prevent race conditions with parallel Sphinx runs |
92 |
# https://llvm.org/bugs/show_bug.cgi?id=23781 |
93 |
- eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
94 |
+ eapply "${FILESDIR}"/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
95 |
|
96 |
# Prevent installing libgtest |
97 |
# https://llvm.org/bugs/show_bug.cgi?id=18341 |
98 |
|
99 |
diff --git a/sys-devel/llvm/llvm-3.8.1.ebuild b/sys-devel/llvm/llvm-3.8.1.ebuild |
100 |
index dcc8353..86a8fe9 100644 |
101 |
--- a/sys-devel/llvm/llvm-3.8.1.ebuild |
102 |
+++ b/sys-devel/llvm/llvm-3.8.1.ebuild |
103 |
@@ -168,7 +168,7 @@ src_prepare() { |
104 |
|
105 |
# Prevent race conditions with parallel Sphinx runs |
106 |
# https://llvm.org/bugs/show_bug.cgi?id=23781 |
107 |
- eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
108 |
+ eapply "${FILESDIR}"/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
109 |
|
110 |
# Prevent installing libgtest |
111 |
# https://llvm.org/bugs/show_bug.cgi?id=18341 |
112 |
|
113 |
diff --git a/sys-devel/llvm/llvm-3.9.0-r1.ebuild b/sys-devel/llvm/llvm-3.9.0-r1.ebuild |
114 |
index 814931b..f33c557 100644 |
115 |
--- a/sys-devel/llvm/llvm-3.9.0-r1.ebuild |
116 |
+++ b/sys-devel/llvm/llvm-3.9.0-r1.ebuild |
117 |
@@ -178,7 +178,7 @@ src_prepare() { |
118 |
|
119 |
# Prevent race conditions with parallel Sphinx runs |
120 |
# https://llvm.org/bugs/show_bug.cgi?id=23781 |
121 |
- eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
122 |
+ eapply "${FILESDIR}"/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch |
123 |
|
124 |
# Allow custom cmake build types (like 'Gentoo') |
125 |
eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch |
126 |
|
127 |
diff --git a/sys-devel/llvm/llvm-3.9.1-r1.ebuild b/sys-devel/llvm/llvm-3.9.1-r1.ebuild |
128 |
index 20bee28..5bae5d3 100644 |
129 |
--- a/sys-devel/llvm/llvm-3.9.1-r1.ebuild |
130 |
+++ b/sys-devel/llvm/llvm-3.9.1-r1.ebuild |
131 |
@@ -178,7 +178,7 @@ src_prepare() { |
132 |
|
133 |
# Prevent race conditions with parallel Sphinx runs |
134 |
# https://llvm.org/bugs/show_bug.cgi?id=23781 |
135 |
- eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
136 |
+ eapply "${FILESDIR}"/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch |
137 |
|
138 |
# Allow custom cmake build types (like 'Gentoo') |
139 |
eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch |
140 |
|
141 |
diff --git a/sys-devel/llvm/llvm-3.9.1.ebuild b/sys-devel/llvm/llvm-3.9.1.ebuild |
142 |
index 6fbfcd8..c24c19f 100644 |
143 |
--- a/sys-devel/llvm/llvm-3.9.1.ebuild |
144 |
+++ b/sys-devel/llvm/llvm-3.9.1.ebuild |
145 |
@@ -178,7 +178,7 @@ src_prepare() { |
146 |
|
147 |
# Prevent race conditions with parallel Sphinx runs |
148 |
# https://llvm.org/bugs/show_bug.cgi?id=23781 |
149 |
- eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch |
150 |
+ eapply "${FILESDIR}"/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch |
151 |
|
152 |
# Allow custom cmake build types (like 'Gentoo') |
153 |
eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch |