Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: eclass/
Date: Thu, 14 Oct 2021 06:16:00
Message-Id: 1634192086.46cb1cb5a5e1f8eeba77ad733d3af149d8a4ce19.sam@gentoo
1 commit: 46cb1cb5a5e1f8eeba77ad733d3af149d8a4ce19
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 14 06:14:08 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 14 06:14:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=46cb1cb5
7
8 toolchain.eclass: depend on virtual/libcrypt with USE=sanitize
9
10 Bug: https://bugs.gentoo.org/802648
11 Closes: https://bugs.gentoo.org/817974
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 eclass/toolchain.eclass | 7 +++++++
15 1 file changed, 7 insertions(+)
16
17 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
18 index da707d504d..2bdc8f5633 100644
19 --- a/eclass/toolchain.eclass
20 +++ b/eclass/toolchain.eclass
21 @@ -259,6 +259,13 @@ if tc_has_feature gcj ; then
22 DEPEND+=" gcj? ( awt? ( ${GCJ_GTK_DEPS} ) ${GCJ_DEPS} )"
23 fi
24
25 +if tc_has_feature sanitize ; then
26 + # libsanitizer relies on 'crypt.h' to be present
27 + # on target. glibc userdto provide it unconditionally.
28 + # Nowadays it's a standalone library: #802648
29 + DEPEND+=" sanitize? ( virtual/libcrypt )"
30 +fi
31 +
32 if tc_has_feature systemtap ; then
33 # gcc needs sys/sdt.h headers on target
34 DEPEND+=" systemtap? ( dev-util/systemtap )"