commit: 5d62f7c88b7cee84d1c7a399b6b7e9089e3eb558
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 6 09:10:57 2017 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Aug 6 09:10:57 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d62f7c8
sys-libs/glibc: Forward-port some minor changes from 2.25 to 9999
Package-Manager: Portage-2.3.6, Repoman-2.3.3
sys-libs/glibc/glibc-9999.ebuild | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 3ac3d78a81b..026e3879bf5 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -100,7 +100,7 @@ upstream_uris() {
echo mirror://gnu/glibc/$1
ftp://sourceware.org/pub/glibc/{releases,snapshots}/$1 mirror://gentoo/$1
}
gentoo_uris() {
- local devspace="HTTP~vapier/dist/URI HTTP~azarah/glibc/URI"
+ local devspace="HTTP~vapier/dist/URI HTTP~tamiko/distfiles/URI
HTTP~dilfridge/distfiles/URI"
devspace=${devspace//HTTP/https://dev.gentoo.org/}
echo mirror://gentoo/$1 ${devspace//URI/$1}
}
@@ -127,7 +127,7 @@ src_prepare() {
# includes backtraces and symbols.
einfo "Installing Hardened Gentoo SSP and FORTIFY_SOURCE
handler"
cp "${FILESDIR}"/2.20/glibc-2.20-gentoo-stack_chk_fail.c
debug/stack_chk_fail.c || die
- cp "${FILESDIR}"/2.20/glibc-2.20-gentoo-chk_fail.c
debug/chk_fail.c || die
+ cp "${FILESDIR}"/2.25/glibc-2.25-gentoo-chk_fail.c
debug/chk_fail.c || die
if use debug ; then
# Allow SIGABRT to dump core on non-hardened systems,
or when debug is requested.
@@ -137,4 +137,12 @@ src_prepare() {
debug/Makefile || die
fi
fi
+
+ case $(gcc-fullversion) in
+ 4.8.[0-3]|4.9.0)
+ eerror "You need to switch to a newer compiler; gcc-4.8.[0-3]
and gcc-4.9.0 miscompile"
+ eerror "glibc. See https://bugs.gentoo.org/547420 for details."
+ die "need to switch compilers #547420"
+ ;;
+ esac
}