The change
3403dbaffc0a9bab49b78cf0bb5308cce0a0c153 that upstream did for
https://bugs.launchpad.net/sbcl/+bug/
1633559 does not work on Gentoo. So
it was patched out in the fix for #607302 with sbcl-1.3.14-config.patch,
which unfortunately leads to #583930. Thanks to Toralf Forster for
reporting, and grozin for testing.
Gentoo-bug: 599902, 607302, 583930
Package-Manager: portage-2.3.3
+++ /dev/null
-diff -Nuar a/src/runtime/GNUmakefile b/src/runtime/GNUmakefile
---- a/src/runtime/GNUmakefile 2017-01-22 20:43:20.000000000 +0100
-+++ b/src/runtime/GNUmakefile 2017-02-09 15:42:22.340029401 +0100
-@@ -39,18 +39,6 @@
- # OS_SRC, OS_LIBS, OS_CLEAN_FILES
- include Config
-
--# Disable PIE when possible
--ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e no-pie),)
--CFLAGS += -fno-pie
--LINKFLAGS += -no-pie
--LDFLAGS += -no-pie
--endif
--ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e -nopie),)
--CFLAGS += -fno-pie
--LINKFLAGS += -nopie
--LDFLAGS += -nopie
--endif
--
- COMMON_SRC = alloc.c backtrace.c breakpoint.c coreparse.c dynbind.c \
- funcall.c gc-common.c globals.c interr.c interrupt.c \
- largefile.c monitor.c os-common.c parse.c print.c purify.c \
--- /dev/null
+--- sbcl-1.3.14-orig/src/runtime/GNUmakefile 2017-01-23 06:43:20.000000000 +1100
++++ sbcl-1.3.14/src/runtime/GNUmakefile 2017-02-28 12:44:37.627161988 +1100
+@@ -40,12 +40,12 @@
+ include Config
+
+ # Disable PIE when possible
+-ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e no-pie),)
++ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e '[^f]no-pie'),)
+ CFLAGS += -fno-pie
+ LINKFLAGS += -no-pie
+ LDFLAGS += -no-pie
+ endif
+-ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e -nopie),)
++ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e '[^f]nopie'),)
+ CFLAGS += -fno-pie
+ LINKFLAGS += -nopie
+ LDFLAGS += -nopie
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+# $Id$
EAPI=6
inherit multilib eutils flag-o-matic pax-utils
eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch
# bugs #560276, #561018
eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
- # bug #599902, #607302
- eapply "${FILESDIR}"/${PN}-1.3.14-config.patch
+ # bug #599902, #607302, #583930
+ eapply "${FILESDIR}"/${PN}-1.3.14-gentoo-fix_nopie_for_hardened_toolchain.patch
eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
- # To make the hardened compiler NOT compile with -fPIE -pie
- if gcc-specs-pie ; then
- einfo "Disabling PIE..."
- eapply "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
- fi
-
eapply_user
# bug #526194