mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Apply a patch from upstream to (hopefully) fix a race in documentation
builds. PR: 213619 Reported by: many
This commit is contained in:
parent
af926685de
commit
edb2124352
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424596
3 changed files with 78 additions and 0 deletions
26
devel/llvm37/files/patch-svn-283188
Normal file
26
devel/llvm37/files/patch-svn-283188
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r283188 | mgorny | 2016-10-04 06:09:14 +0000 (Tue, 04 Oct 2016) | 9 lines
|
||||||
|
|
||||||
|
[cmake] Use separate doctrees to prevent races between Sphinx instances
|
||||||
|
|
||||||
|
Use separate doctrees between different Sphinx builders in order to
|
||||||
|
prevent race condition issues due to multiple Sphinx instances accessing
|
||||||
|
the same doctree cache in parallel.
|
||||||
|
|
||||||
|
Bug: https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D23755
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
Index: cmake/modules/AddSphinxTarget.cmake
|
||||||
|
===================================================================
|
||||||
|
--- cmake/modules/AddSphinxTarget.cmake (revision 283187)
|
||||||
|
+++ cmake/modules/AddSphinxTarget.cmake (revision 283188)
|
||||||
|
@@ -6,7 +6,7 @@
|
||||||
|
# ``project`` should be the project name
|
||||||
|
function (add_sphinx_target builder project)
|
||||||
|
set(SPHINX_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/${builder}")
|
||||||
|
- set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
|
||||||
|
+ set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees-${builder}")
|
||||||
|
set(SPHINX_TARGET_NAME docs-${project}-${builder})
|
||||||
|
|
||||||
|
if (SPHINX_WARNINGS_AS_ERRORS)
|
26
devel/llvm38/files/patch-svn-283188
Normal file
26
devel/llvm38/files/patch-svn-283188
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r283188 | mgorny | 2016-10-04 06:09:14 +0000 (Tue, 04 Oct 2016) | 9 lines
|
||||||
|
|
||||||
|
[cmake] Use separate doctrees to prevent races between Sphinx instances
|
||||||
|
|
||||||
|
Use separate doctrees between different Sphinx builders in order to
|
||||||
|
prevent race condition issues due to multiple Sphinx instances accessing
|
||||||
|
the same doctree cache in parallel.
|
||||||
|
|
||||||
|
Bug: https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D23755
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
Index: cmake/modules/AddSphinxTarget.cmake
|
||||||
|
===================================================================
|
||||||
|
--- cmake/modules/AddSphinxTarget.cmake (revision 283187)
|
||||||
|
+++ cmake/modules/AddSphinxTarget.cmake (revision 283188)
|
||||||
|
@@ -6,7 +6,7 @@
|
||||||
|
# ``project`` should be the project name
|
||||||
|
function (add_sphinx_target builder project)
|
||||||
|
set(SPHINX_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/${builder}")
|
||||||
|
- set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
|
||||||
|
+ set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees-${builder}")
|
||||||
|
set(SPHINX_TARGET_NAME docs-${project}-${builder})
|
||||||
|
|
||||||
|
if (SPHINX_WARNINGS_AS_ERRORS)
|
26
devel/llvm39/files/patch-svn-283188
Normal file
26
devel/llvm39/files/patch-svn-283188
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
r283188 | mgorny | 2016-10-04 06:09:14 +0000 (Tue, 04 Oct 2016) | 9 lines
|
||||||
|
|
||||||
|
[cmake] Use separate doctrees to prevent races between Sphinx instances
|
||||||
|
|
||||||
|
Use separate doctrees between different Sphinx builders in order to
|
||||||
|
prevent race condition issues due to multiple Sphinx instances accessing
|
||||||
|
the same doctree cache in parallel.
|
||||||
|
|
||||||
|
Bug: https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D23755
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
Index: cmake/modules/AddSphinxTarget.cmake
|
||||||
|
===================================================================
|
||||||
|
--- cmake/modules/AddSphinxTarget.cmake (revision 283187)
|
||||||
|
+++ cmake/modules/AddSphinxTarget.cmake (revision 283188)
|
||||||
|
@@ -6,7 +6,7 @@
|
||||||
|
# ``project`` should be the project name
|
||||||
|
function (add_sphinx_target builder project)
|
||||||
|
set(SPHINX_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/${builder}")
|
||||||
|
- set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees")
|
||||||
|
+ set(SPHINX_DOC_TREE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees-${builder}")
|
||||||
|
set(SPHINX_TARGET_NAME docs-${project}-${builder})
|
||||||
|
|
||||||
|
if (SPHINX_WARNINGS_AS_ERRORS)
|
Loading…
Add table
Reference in a new issue