Gentoo Archives: gentoo-dev

From: Joshua Kinard <kumba@g.o>
To: Gentoo-dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] [PATCH] toolchain.eclass: Remove kludge that blocks gcc-6+ on sys-libs/uclibc-ng systems
Date: Sat, 29 Jul 2017 23:12:53
Message-Id: e3506e6d-9d45-bc7b-39f6-51e68e4bf473@gentoo.org
1 The following kludge is present in toolchain.eclass, in
2 toolchain_pkg_pretend():
3
4 [[ -z ${UCLIBC_VER} ]] && [[ ${CTARGET} == *-uclibc* ]] && \
5 die "Sorry, this version does not support uClibc"
6
7 The below patch removes this. I've been running a gcc-6-built,
8 sys-libs/uclibc-ng in chroot for some time now, have completed several
9 catalyst runs, and am at the tail end of a fresh install of a
10 sys-libs/uclibc-ng userland on actual MIPS hardware.
11
12 Signed-off-by: Joshua Kinard <kumba@g.o>
13 ---
14 eclass/toolchain.eclass | 3 ---
15 1 file changed, 3 deletions(-)
16
17 --- a/eclass/toolchain.eclass.orig 2017-07-29 19:06:30.894211203 -0400
18 +++ b/eclass/toolchain.eclass 2017-07-29 19:06:40.514211133 -0400
19 @@ -375,9 +375,6 @@ toolchain_pkg_pretend() {
20 "in your make.conf if you want to use this version."
21 fi
22
23 - [[ -z ${UCLIBC_VER} ]] && [[ ${CTARGET} == *-uclibc* ]] && \
24 - die "Sorry, this version does not support uClibc"
25 -
26 if ! use_if_iuse cxx ; then
27 use_if_iuse go && ewarn 'Go requires a C++ compiler, disabled due to USE="-cxx"'
28 use_if_iuse objc++ && ewarn 'Obj-C++ requires a C++ compiler, disabled due to USE="-cxx"'

Replies