Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/compiler-rt/, sys-libs/compiler-rt/files/9999/, ...
Date: Fri, 29 Jan 2021 01:33:25
Message-Id: 1611883983.caad5bb444065318e0df4baa0758ef19e80991c2.mgorny@gentoo
1 commit: caad5bb444065318e0df4baa0758ef19e80991c2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 29 01:33:03 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 29 01:33:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caad5bb4
7
8 sys-libs/compiler-rt: Strip the prefix patch for 12+
9
10 The prefix patch no longer applies to 12.0.0_rc1 and newer. Replace
11 it with an empty file to fix the build while making it easy to readd
12 a new patch.
13
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 sys-libs/compiler-rt/compiler-rt-11.0.0.ebuild | 2 +-
17 sys-libs/compiler-rt/compiler-rt-11.0.1.ebuild | 2 +-
18 sys-libs/compiler-rt/compiler-rt-11.1.0_rc1.ebuild | 2 +-
19 sys-libs/compiler-rt/compiler-rt-11.1.0_rc2.ebuild | 2 +-
20 .../compiler-rt-prefix-paths.patch | 0
21 .../files/9999/compiler-rt-prefix-paths.patch | 79 ----------------------
22 6 files changed, 4 insertions(+), 83 deletions(-)
23
24 diff --git a/sys-libs/compiler-rt/compiler-rt-11.0.0.ebuild b/sys-libs/compiler-rt/compiler-rt-11.0.0.ebuild
25 index 88873e2d937..03faac95341 100644
26 --- a/sys-libs/compiler-rt/compiler-rt-11.0.0.ebuild
27 +++ b/sys-libs/compiler-rt/compiler-rt-11.0.0.ebuild
28 @@ -30,7 +30,7 @@ BDEPEND="
29 ${PYTHON_DEPS}"
30
31 PATCHES=(
32 - "${FILESDIR}/9999/${PN}-prefix-paths.patch"
33 + "${FILESDIR}/11.1.0/${PN}-prefix-paths.patch"
34 )
35
36 python_check_deps() {
37
38 diff --git a/sys-libs/compiler-rt/compiler-rt-11.0.1.ebuild b/sys-libs/compiler-rt/compiler-rt-11.0.1.ebuild
39 index 01907446d0f..a24b2a25ff8 100644
40 --- a/sys-libs/compiler-rt/compiler-rt-11.0.1.ebuild
41 +++ b/sys-libs/compiler-rt/compiler-rt-11.0.1.ebuild
42 @@ -32,7 +32,7 @@ LLVM_COMPONENTS=( compiler-rt )
43 llvm.org_set_globals
44
45 PATCHES=(
46 - "${FILESDIR}/9999/${PN}-prefix-paths.patch"
47 + "${FILESDIR}/11.1.0/${PN}-prefix-paths.patch"
48 )
49
50 python_check_deps() {
51
52 diff --git a/sys-libs/compiler-rt/compiler-rt-11.1.0_rc1.ebuild b/sys-libs/compiler-rt/compiler-rt-11.1.0_rc1.ebuild
53 index 07412646ab2..fb43d386c33 100644
54 --- a/sys-libs/compiler-rt/compiler-rt-11.1.0_rc1.ebuild
55 +++ b/sys-libs/compiler-rt/compiler-rt-11.1.0_rc1.ebuild
56 @@ -32,7 +32,7 @@ LLVM_COMPONENTS=( compiler-rt )
57 llvm.org_set_globals
58
59 PATCHES=(
60 - "${FILESDIR}/9999/${PN}-prefix-paths.patch"
61 + "${FILESDIR}/11.1.0/${PN}-prefix-paths.patch"
62 )
63
64 python_check_deps() {
65
66 diff --git a/sys-libs/compiler-rt/compiler-rt-11.1.0_rc2.ebuild b/sys-libs/compiler-rt/compiler-rt-11.1.0_rc2.ebuild
67 index 07412646ab2..fb43d386c33 100644
68 --- a/sys-libs/compiler-rt/compiler-rt-11.1.0_rc2.ebuild
69 +++ b/sys-libs/compiler-rt/compiler-rt-11.1.0_rc2.ebuild
70 @@ -32,7 +32,7 @@ LLVM_COMPONENTS=( compiler-rt )
71 llvm.org_set_globals
72
73 PATCHES=(
74 - "${FILESDIR}/9999/${PN}-prefix-paths.patch"
75 + "${FILESDIR}/11.1.0/${PN}-prefix-paths.patch"
76 )
77
78 python_check_deps() {
79
80 diff --git a/sys-libs/compiler-rt/files/9999/compiler-rt-prefix-paths.patch b/sys-libs/compiler-rt/files/11.1.0/compiler-rt-prefix-paths.patch
81 similarity index 100%
82 copy from sys-libs/compiler-rt/files/9999/compiler-rt-prefix-paths.patch
83 copy to sys-libs/compiler-rt/files/11.1.0/compiler-rt-prefix-paths.patch
84
85 diff --git a/sys-libs/compiler-rt/files/9999/compiler-rt-prefix-paths.patch b/sys-libs/compiler-rt/files/9999/compiler-rt-prefix-paths.patch
86 index c27e3c44f68..e69de29bb2d 100644
87 --- a/sys-libs/compiler-rt/files/9999/compiler-rt-prefix-paths.patch
88 +++ b/sys-libs/compiler-rt/files/9999/compiler-rt-prefix-paths.patch
89 @@ -1,79 +0,0 @@
90 ---- a/compiler-rt/cmake/config-ix.cmake 2020-10-07 05:10:48.000000000 -0500
91 -+++ b/compiler-rt/cmake/config-ix.cmake 2020-12-13 16:17:43.000000000 -0600
92 -@@ -424,10 +424,7 @@
93 - ${DARWIN_COMMON_LINK_FLAGS}
94 - ${DARWIN_osx_MIN_VER_FLAG}=${SANITIZER_MIN_OSX_VERSION})
95 -
96 -- if(DARWIN_osx_SYSROOT)
97 -- list(APPEND DARWIN_osx_CFLAGS -isysroot ${DARWIN_osx_SYSROOT})
98 -- list(APPEND DARWIN_osx_LINK_FLAGS -isysroot ${DARWIN_osx_SYSROOT})
99 -- endif()
100 -+ # Do not add -isysroot flag on Gentoo Prefix (search paths handled by cmake)
101 -
102 - # Figure out which arches to use for each OS
103 - darwin_get_toolchain_supported_archs(toolchain_arches)
104 ---- a/compiler-rt/cmake/base-config-ix.cmake 2020-12-13 16:17:13.000000000 -0600
105 -+++ b/compiler-rt/cmake/base-config-ix.cmake 2020-12-13 16:18:59.000000000 -0600
106 -@@ -102,23 +102,8 @@
107 - endif()
108 -
109 - if(APPLE)
110 -- # On Darwin if /usr/include/c++ doesn't exist, the user probably has Xcode but
111 -- # not the command line tools (or is using macOS 10.14 or newer). If this is
112 -- # the case, we need to find the OS X sysroot to pass to clang.
113 -- if(NOT EXISTS /usr/include/c++)
114 -- execute_process(COMMAND xcrun -sdk macosx --show-sdk-path
115 -- OUTPUT_VARIABLE OSX_SYSROOT
116 -- ERROR_QUIET
117 -- OUTPUT_STRIP_TRAILING_WHITESPACE)
118 -- if (NOT OSX_SYSROOT OR NOT EXISTS ${OSX_SYSROOT})
119 -- message(WARNING "Detected OSX_SYSROOT ${OSX_SYSROOT} does not exist")
120 -- else()
121 -- message(STATUS "Found OSX_SYSROOT: ${OSX_SYSROOT}")
122 -- set(OSX_SYSROOT_FLAG "-isysroot${OSX_SYSROOT}")
123 -- endif()
124 -- else()
125 -- set(OSX_SYSROOT_FLAG "")
126 -- endif()
127 -+ # Do not add -isysroot flag on Gentoo Prefix (search paths handled by cmake)
128 -+ set(OSX_SYSROOT_FLAG "")
129 -
130 - option(COMPILER_RT_ENABLE_IOS "Enable building for iOS" On)
131 - option(COMPILER_RT_ENABLE_WATCHOS "Enable building for watchOS - Experimental" Off)
132 ---- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake 2020-10-07 05:10:48.000000000 -0500
133 -+++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake 2020-12-13 16:21:32.000000000 -0600
134 -@@ -273,7 +273,8 @@
135 - ${ARGN})
136 - set(libname "${name}.${suffix}_${LIB_ARCH}_${LIB_OS}")
137 - add_library(${libname} STATIC ${LIB_SOURCES})
138 -- if(DARWIN_${LIB_OS}_SYSROOT)
139 -+ # Do not add -isysroot flag on Gentoo Prefix (search paths handled by cmake)
140 -+ if(DARWIN_${LIB_OS}_SYSROOT AND NOT "${LIB_OS}" STREQUAL "osx")
141 - set(sysroot_flag -isysroot ${DARWIN_${LIB_OS}_SYSROOT})
142 - endif()
143 -
144 ---- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake 2020-10-07 05:10:48.000000000 -0500
145 -+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake 2020-12-13 18:12:27.000000000 -0600
146 -@@ -277,9 +277,10 @@
147 - if(CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_TARGET)
148 - list(APPEND extra_cflags_${libname} "--target=${CMAKE_C_COMPILER_TARGET}")
149 - endif()
150 -+ # Do not add --sysroot flag on Gentoo Prefix (search paths handled by cmake)
151 -- if(CMAKE_SYSROOT)
152 -+ if(CMAKE_SYSROOT AND NOT APPLE)
153 - list(APPEND extra_cflags_${libname} "--sysroot=${CMAKE_SYSROOT}")
154 - endif()
155 - string(REPLACE ";" " " extra_cflags_${libname} "${extra_cflags_${libname}}")
156 - string(REGEX MATCHALL "<[A-Za-z0-9_]*>" substitutions
157 - ${CMAKE_C_COMPILE_OBJECT})
158 ---- a/compiler-rt/lib/tsan/CMakeLists.txt 2020-12-13 19:42:02.000000000 -0600
159 -+++ b/compiler-rt/lib/tsan/CMakeLists.txt 2020-12-13 19:42:38.000000000 -0600
160 -@@ -244,6 +244,7 @@
161 - # and Clang's versions. As a workaround do not use --sysroot=. on FreeBSD/NetBSD
162 - # until this is addressed.
163 - if(COMPILER_RT_HAS_SYSROOT_FLAG AND NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD"
164 -+ AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin"
165 - AND NOT CMAKE_SYSTEM_NAME MATCHES "NetBSD")
166 - file(GLOB _tsan_generic_sources rtl/tsan*)
167 - file(GLOB _tsan_platform_sources rtl/tsan*posix* rtl/tsan*mac*
168 -