Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/crossdev:master commit in: /
Date: Sun, 01 Sep 2019 16:15:01
Message-Id: 1567354467.7283a01fc3dd7523793c28d8acd04ce7fd049389.slyfox@gentoo
1 commit: 7283a01fc3dd7523793c28d8acd04ce7fd049389
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 1 16:08:26 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 1 16:14:27 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=7283a01f
7
8 crossdev: set --without-headers by default
9
10 In https://sourceware.org/PR24577 we discovered that riscv
11 can't really install libc headers as it needs a cross-compiler.
12
13 Before this change we had the following default build order:
14 - cross-binutils
15 - kernel/libc headers
16 - stage1 gcc
17 - glibc
18 - stage2 gcc
19
20 After this change it's:
21 - cross-binutils
22 - stage1 gcc
23 - kernel headers
24 - glibc
25 - stage2 gcc
26
27 Users can still fors headers installation with '--ith-headers' option.
28
29 Bug: https://sourceware.org/PR24577
30 Bug: https://bugs.gentoo.org/692052
31 Bug: https://bugs.gentoo.org/686248
32 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
33
34 crossdev | 9 ++++++++-
35 1 file changed, 8 insertions(+), 1 deletion(-)
36
37 diff --git a/crossdev b/crossdev
38 index 6d61f1c..e03ea78 100755
39 --- a/crossdev
40 +++ b/crossdev
41 @@ -708,7 +708,14 @@ GUSE_DISABLE="-boundschecking -d -gcj -gtk -libffi -mudflap -objc -objc++ -objc-
42 # These are disabled only for stage1 gcc. Normally need libc present.
43 GUSE_DISABLE_STAGE_1="${GUSE_DISABLE} -fortran -go -jit -cxx -mpx -openmp -sanitize -vtv"
44 GUSE_DISABLE_STAGE_2="${GUSE_DISABLE}"
45 -WITH_HEADERS="COW" WITH_DEF_HEADERS="yes" #227065 gcc-4.3+ is a pita w/out headers
46 +
47 +# Past history of WITH_DEF_HEADERS:
48 +# - ????-2005: "no"
49 +# - 2005-2019: "yes": #227065 gcc-4.3+ is a pita w/out headers
50 +# - 2019-????: "no" again: glibc does not really support headers install
51 +# at least on riscv-*: #686248
52 +WITH_HEADERS="COW"
53 +WITH_DEF_HEADERS="no"
54 EX_FAST="no"
55 EX_GCC="no"
56 EX_GDB="no"