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-sanitizers/files/7.0.9999/, ...
Date: Tue, 30 Oct 2018 09:02:57
Message-Id: 1540890158.f9f2933f932693eed06d1266eb66d20fc71c701b.mgorny@gentoo
1 commit: f9f2933f932693eed06d1266eb66d20fc71c701b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 30 09:02:38 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 09:02:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9f2933f
7
8 sys-libs/compiler-rt-sanitizers: Rebase patches for -9999
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../compiler-rt-sanitizers-7.0.0.ebuild | 4 ++--
13 .../compiler-rt-sanitizers-7.0.9999.ebuild | 4 ++--
14 ...itizer_common-Fix-using-libtirpc-on-Linux.patch | 0
15 ...0002-test-Support-using-libtirpc-on-Linux.patch | 0
16 ...itizer_common-Fix-using-libtirpc-on-Linux.patch | 14 ++++++-------
17 ...0002-test-Support-using-libtirpc-on-Linux.patch | 24 +++++++++++-----------
18 6 files changed, 23 insertions(+), 23 deletions(-)
19
20 diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.0.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.0.ebuild
21 index b4dec8cc00b..97f45a06894 100644
22 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.0.ebuild
23 +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.0.ebuild
24 @@ -76,8 +76,8 @@ src_prepare() {
25 cmake-utils_src_prepare
26
27 # apply the fixes for new glibc / split tirpc
28 - eapply "${FILESDIR}/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch"
29 - eapply "${FILESDIR}/9999/0002-test-Support-using-libtirpc-on-Linux.patch"
30 + eapply "${FILESDIR}/7.0.9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch"
31 + eapply "${FILESDIR}/7.0.9999/0002-test-Support-using-libtirpc-on-Linux.patch"
32
33 if use test; then
34 # remove tests that are (still) broken by new glibc
35
36 diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.9999.ebuild
37 index d68ca7b8bdf..a71b3be6bec 100644
38 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.9999.ebuild
39 +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.0.9999.ebuild
40 @@ -77,8 +77,8 @@ src_prepare() {
41 cmake-utils_src_prepare
42
43 # apply the fixes for new glibc / split tirpc
44 - eapply "${FILESDIR}/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch"
45 - eapply "${FILESDIR}/9999/0002-test-Support-using-libtirpc-on-Linux.patch"
46 + eapply "${FILESDIR}/7.0.9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch"
47 + eapply "${FILESDIR}/7.0.9999/0002-test-Support-using-libtirpc-on-Linux.patch"
48
49 if use test; then
50 # remove tests that are (still) broken by new glibc
51
52 diff --git a/sys-libs/compiler-rt-sanitizers/files/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch b/sys-libs/compiler-rt-sanitizers/files/7.0.9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch
53 similarity index 100%
54 copy from sys-libs/compiler-rt-sanitizers/files/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch
55 copy to sys-libs/compiler-rt-sanitizers/files/7.0.9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch
56
57 diff --git a/sys-libs/compiler-rt-sanitizers/files/9999/0002-test-Support-using-libtirpc-on-Linux.patch b/sys-libs/compiler-rt-sanitizers/files/7.0.9999/0002-test-Support-using-libtirpc-on-Linux.patch
58 similarity index 100%
59 copy from sys-libs/compiler-rt-sanitizers/files/9999/0002-test-Support-using-libtirpc-on-Linux.patch
60 copy to sys-libs/compiler-rt-sanitizers/files/7.0.9999/0002-test-Support-using-libtirpc-on-Linux.patch
61
62 diff --git a/sys-libs/compiler-rt-sanitizers/files/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch b/sys-libs/compiler-rt-sanitizers/files/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch
63 index ca871c37b99..f39645669da 100644
64 --- a/sys-libs/compiler-rt-sanitizers/files/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch
65 +++ b/sys-libs/compiler-rt-sanitizers/files/9999/0001-sanitizer_common-Fix-using-libtirpc-on-Linux.patch
66 @@ -1,7 +1,7 @@
67 -From e198d21b9a5851dbc061f60911e3b3da910bca0a Mon Sep 17 00:00:00 2001
68 +From 6d96ca43ca31bb69d07271696c43b4372ca534d9 Mon Sep 17 00:00:00 2001
69 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
70 Date: Wed, 6 Jun 2018 12:16:38 +0200
71 -Subject: [PATCH 7/8] [sanitizer_common] Fix using libtirpc on Linux
72 +Subject: [PATCH 1/2] [sanitizer_common] Fix using libtirpc on Linux
73
74 Fix using libtirpc on Linux by using pkg-config to detect it, and append
75 appropriate include directory. The libtirpc headers reference one
76 @@ -17,10 +17,10 @@ apparently causes it to fail.
77 2 files changed, 11 insertions(+), 4 deletions(-)
78
79 diff --git a/lib/sanitizer_common/CMakeLists.txt b/lib/sanitizer_common/CMakeLists.txt
80 -index e0226ae49..4071bc0e8 100644
81 +index ad3aba005..f2a6bab51 100644
82 --- a/lib/sanitizer_common/CMakeLists.txt
83 +++ b/lib/sanitizer_common/CMakeLists.txt
84 -@@ -151,9 +151,18 @@ include_directories(..)
85 +@@ -191,9 +191,18 @@ include_directories(..)
86
87 set(SANITIZER_COMMON_DEFINITIONS)
88
89 @@ -41,7 +41,7 @@ index e0226ae49..4071bc0e8 100644
90 set(SANITIZER_CFLAGS ${SANITIZER_COMMON_CFLAGS})
91 append_rtti_flag(OFF SANITIZER_CFLAGS)
92 diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
93 -index feb7bad6f..2e736ee26 100644
94 +index cd1b73d58..c6de2683d 100644
95 --- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
96 +++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
97 @@ -146,8 +146,6 @@ typedef struct user_fpregs elf_fpregset_t;
98 @@ -53,7 +53,7 @@ index feb7bad6f..2e736ee26 100644
99 #endif
100 #include <scsi/scsi.h>
101 #include <sys/mtio.h>
102 -@@ -1236,7 +1234,7 @@ CHECK_SIZE_AND_OFFSET(group, gr_passwd);
103 +@@ -1243,7 +1241,7 @@ CHECK_SIZE_AND_OFFSET(group, gr_passwd);
104 CHECK_SIZE_AND_OFFSET(group, gr_gid);
105 CHECK_SIZE_AND_OFFSET(group, gr_mem);
106
107 @@ -63,5 +63,5 @@ index feb7bad6f..2e736ee26 100644
108 CHECK_SIZE_AND_OFFSET(XDR, x_op);
109 CHECK_SIZE_AND_OFFSET(XDR, x_ops);
110 --
111 -2.18.0
112 +2.19.1
113
114
115 diff --git a/sys-libs/compiler-rt-sanitizers/files/9999/0002-test-Support-using-libtirpc-on-Linux.patch b/sys-libs/compiler-rt-sanitizers/files/9999/0002-test-Support-using-libtirpc-on-Linux.patch
116 index 880284775e2..c851cae0a6b 100644
117 --- a/sys-libs/compiler-rt-sanitizers/files/9999/0002-test-Support-using-libtirpc-on-Linux.patch
118 +++ b/sys-libs/compiler-rt-sanitizers/files/9999/0002-test-Support-using-libtirpc-on-Linux.patch
119 @@ -1,7 +1,7 @@
120 -From 4fc99ef388e2f110759dc774428fd194b65614c8 Mon Sep 17 00:00:00 2001
121 +From a415328c75fe88c5e8e3bd0c01913a25b5705fec Mon Sep 17 00:00:00 2001
122 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
123 Date: Wed, 6 Jun 2018 12:45:55 +0200
124 -Subject: [PATCH 8/8] [test] Support using libtirpc on Linux
125 +Subject: [PATCH 2/2] [test] Support using libtirpc on Linux
126
127 Add compiler flags necessary for using libtirpc on Linux (RPC headers
128 split out of glibc). The flags are obtained via pkg-config. This fixes
129 @@ -16,7 +16,7 @@ test failures due to tests being unable to find <rpc/...> includes.
130 6 files changed, 10 insertions(+), 4 deletions(-)
131
132 diff --git a/cmake/base-config-ix.cmake b/cmake/base-config-ix.cmake
133 -index b208f0852..46b88f72b 100644
134 +index b92e29a2e..ec0b1b979 100644
135 --- a/cmake/base-config-ix.cmake
136 +++ b/cmake/base-config-ix.cmake
137 @@ -8,6 +8,10 @@ include(CheckCXXSourceCompiles)
138 @@ -31,10 +31,10 @@ index b208f0852..46b88f72b 100644
139 add_custom_target(compiler-rt ALL)
140 add_custom_target(install-compiler-rt)
141 diff --git a/lib/sanitizer_common/CMakeLists.txt b/lib/sanitizer_common/CMakeLists.txt
142 -index 4071bc0e8..08d1781a6 100644
143 +index f2a6bab51..a560e7c15 100644
144 --- a/lib/sanitizer_common/CMakeLists.txt
145 +++ b/lib/sanitizer_common/CMakeLists.txt
146 -@@ -151,8 +151,6 @@ include_directories(..)
147 +@@ -191,8 +191,6 @@ include_directories(..)
148
149 set(SANITIZER_COMMON_DEFINITIONS)
150
151 @@ -44,7 +44,7 @@ index 4071bc0e8..08d1781a6 100644
152 include_directories(${TIRPC_INCLUDE_DIRS})
153 set(CMAKE_REQUIRED_INCLUDES ${TIRPC_INCLUDE_DIRS})
154 diff --git a/test/msan/lit.cfg b/test/msan/lit.cfg
155 -index cac260999..fe8525047 100644
156 +index e08673d5c..e86f6091f 100644
157 --- a/test/msan/lit.cfg
158 +++ b/test/msan/lit.cfg
159 @@ -14,7 +14,8 @@ clang_msan_cflags = (["-fsanitize=memory",
160 @@ -56,7 +56,7 @@ index cac260999..fe8525047 100644
161 + [config.rpc_cflags])
162 # Some Msan tests leverage backtrace() which requires libexecinfo on FreeBSD.
163 if config.host_os == 'FreeBSD':
164 - clang_msan_cflags += ["-lexecinfo"]
165 + clang_msan_cflags += ["-lexecinfo", "-fPIC"]
166 diff --git a/test/msan/lit.site.cfg.in b/test/msan/lit.site.cfg.in
167 index f744d71fd..35634d324 100644
168 --- a/test/msan/lit.site.cfg.in
169 @@ -70,7 +70,7 @@ index f744d71fd..35634d324 100644
170 # Load common config for all compiler-rt lit tests.
171 lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
172 diff --git a/test/tsan/lit.cfg b/test/tsan/lit.cfg
173 -index fdbafefbc..82fd2f79d 100644
174 +index 233d273f3..2776775eb 100644
175 --- a/test/tsan/lit.cfg
176 +++ b/test/tsan/lit.cfg
177 @@ -49,7 +49,8 @@ clang_tsan_cflags = (["-fsanitize=thread",
178 @@ -84,11 +84,11 @@ index fdbafefbc..82fd2f79d 100644
179 # Add additional flags if we're using instrumented libc++.
180 # Instrumented libcxx currently not supported on Darwin.
181 diff --git a/test/tsan/lit.site.cfg.in b/test/tsan/lit.site.cfg.in
182 -index a215e664a..142d61bf2 100644
183 +index 6dec5f92b..67020f3b9 100644
184 --- a/test/tsan/lit.site.cfg.in
185 +++ b/test/tsan/lit.site.cfg.in
186 -@@ -7,6 +7,7 @@ config.ios = @TSAN_TEST_IOS_PYBOOL@
187 - config.iossim = @TSAN_TEST_IOSSIM_PYBOOL@
188 +@@ -6,6 +6,7 @@ config.has_libcxx = @TSAN_HAS_LIBCXX@
189 + config.apple_platform = "@TSAN_TEST_APPLE_PLATFORM@"
190 config.target_cflags = "@TSAN_TEST_TARGET_CFLAGS@"
191 config.target_arch = "@TSAN_TEST_TARGET_ARCH@"
192 +config.rpc_cflags = "@TIRPC_CFLAGS@"
193 @@ -96,5 +96,5 @@ index a215e664a..142d61bf2 100644
194 # Load common config for all compiler-rt lit tests.
195 lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
196 --
197 -2.18.0
198 +2.19.1