Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 07 Jan 2018 19:40:06
Message-Id: 1515353986.e1172c04556bc25be18ebb0edc2b1beae7199260.slyfox@gentoo
1 commit: e1172c04556bc25be18ebb0edc2b1beae7199260
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 7 18:50:51 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 7 19:39:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1172c04
7
8 toolchain.eclass: Migrate CROSSCOMPILE_OPTS=headers-only -> USE=headers-only
9
10 CROSSCOMPILE_OPTS is a USE_EXPAND of a single item: headers-only.
11 Convert it to a global USE flag instead.
12
13 Mechanical ebuild rename done as:
14 $ sed -e 's@crosscompile_opts_headers-only@headers-only@g' \
15 -i $(git grep -l headers-only)
16
17 'headers-only' flag is used by crossdev to bootstrap stage1 compiler
18 before libc is available.
19
20 crossdev switched to USE=headers-only in =sys-devel/crossdev-20171230.
21
22 Bug: https://bugs.gentoo.org/642712
23 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
24
25 eclass/toolchain.eclass | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
29 index 7fc4c70652f..c1fe72d9354 100644
30 --- a/eclass/toolchain.eclass
31 +++ b/eclass/toolchain.eclass
32 @@ -993,7 +993,7 @@ toolchain_src_configure() {
33 --disable-threads
34 --without-headers
35 )
36 - elif has_version "${CATEGORY}/${needed_libc}[crosscompile_opts_headers-only(-)]" ; then
37 + elif has_version "${CATEGORY}/${needed_libc}[headers-only(-)]" ; then
38 confgcc+=(
39 "${confgcc_no_libc[@]}"
40 --with-sysroot="${PREFIX}"/${CTARGET}