mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
sys-devel/llvm: Backport upstream Sphinx race fix to 3.9, #606858
It seems that we have only applied the patch fixing race condition between LLVM Sphinx targets and not between clang's. To fix that, just switch to the upstream patch that fixes both at the root.
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
From 40960f63616f62c8ac52eeeddf68bdb441b8be3e Mon Sep 17 00:00:00 2001
|
||||
From: Michal Gorny <mgorny@gentoo.org>
|
||||
Date: Tue, 4 Oct 2016 06:09:14 +0000
|
||||
Subject: [PATCH] [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
|
||||
|
||||
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283188 91177308-0d34-0410-b5e6-96231b3b80d8
|
||||
---
|
||||
cmake/modules/AddSphinxTarget.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cmake/modules/AddSphinxTarget.cmake b/cmake/modules/AddSphinxTarget.cmake
|
||||
index a968555aa06..ca9f4c38ffd 100644
|
||||
--- a/cmake/modules/AddSphinxTarget.cmake
|
||||
+++ b/cmake/modules/AddSphinxTarget.cmake
|
||||
@@ -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)
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -167,7 +167,7 @@ src_prepare() {
|
||||
|
||||
# Prevent race conditions with parallel Sphinx runs
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
eapply "${FILESDIR}"/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
|
||||
# Prevent installing libgtest
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=18341
|
||||
|
||||
@@ -167,7 +167,7 @@ src_prepare() {
|
||||
|
||||
# Prevent race conditions with parallel Sphinx runs
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
eapply "${FILESDIR}"/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
|
||||
# Prevent installing libgtest
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=18341
|
||||
|
||||
@@ -168,7 +168,7 @@ src_prepare() {
|
||||
|
||||
# Prevent race conditions with parallel Sphinx runs
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
eapply "${FILESDIR}"/3.8.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
|
||||
# Prevent installing libgtest
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=18341
|
||||
|
||||
@@ -178,7 +178,7 @@ src_prepare() {
|
||||
|
||||
# Prevent race conditions with parallel Sphinx runs
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch
|
||||
|
||||
# Allow custom cmake build types (like 'Gentoo')
|
||||
eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
|
||||
|
||||
@@ -178,7 +178,7 @@ src_prepare() {
|
||||
|
||||
# Prevent race conditions with parallel Sphinx runs
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch
|
||||
|
||||
# Allow custom cmake build types (like 'Gentoo')
|
||||
eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
|
||||
|
||||
@@ -178,7 +178,7 @@ src_prepare() {
|
||||
|
||||
# Prevent race conditions with parallel Sphinx runs
|
||||
# https://llvm.org/bugs/show_bug.cgi?id=23781
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
|
||||
eapply "${FILESDIR}"/3.9.1/0004-cmake-Use-separate-doctrees-to-prevent-races-between.patch
|
||||
|
||||
# Allow custom cmake build types (like 'Gentoo')
|
||||
eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
|
||||
|
||||
Reference in New Issue
Block a user