1 |
commit: 85c6de2213e35965d2e7c79c06d9e9b9d6af7e0d |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 21:33:55 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 21:37:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85c6de22 |
7 |
|
8 |
toolchain.eclass: pull virtual/libcrypt as a dependency for USE=sanitize |
9 |
|
10 |
Closes: https://bugs.gentoo.org/802648 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
eclass/toolchain.eclass | 9 ++++++++- |
14 |
1 file changed, 8 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
17 |
index 57a2c95dd10..5bfa58e4a20 100644 |
18 |
--- a/eclass/toolchain.eclass |
19 |
+++ b/eclass/toolchain.eclass |
20 |
@@ -157,7 +157,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then |
21 |
tc_version_is_at_least 4.7 && IUSE+=" go" |
22 |
# sanitizer support appeared in gcc-4.8, but <gcc-5 does not |
23 |
# support modern glibc. |
24 |
- tc_version_is_at_least 5 && IUSE+=" +sanitize" |
25 |
+ tc_version_is_at_least 5 && IUSE+=" +sanitize" TC_FEATURES+=(sanitize) |
26 |
# Note: |
27 |
# <gcc-4.8 supported graphite, it required forked ppl |
28 |
# versions which we dropped. Since graphite was also experimental in |
29 |
@@ -245,6 +245,13 @@ if tc_has_feature gcj ; then |
30 |
" |
31 |
fi |
32 |
|
33 |
+if tc_has_feature sanitize ; then |
34 |
+ # libsanitizer relies on 'crypt.h' to be present |
35 |
+ # on target. glibc user to provide it unconditionally. |
36 |
+ # Nowadays it's a standalone library: #802648 |
37 |
+ DEPEND+=" sanitize? ( virtual/libcrypt )" |
38 |
+fi |
39 |
+ |
40 |
if tc_has_feature systemtap ; then |
41 |
# gcc needs sys/sdt.h headers on target |
42 |
DEPEND+=" systemtap? ( dev-util/systemtap )" |