commit: 02d2f6de0f054250af528d20cb9d4594ee5352a6
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 9 15:01:13 2017 +0000
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
CommitDate: Thu Feb 9 15:01:41 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02d2f6de
dev-lisp/sbcl: Removes -no-pie GCC option
Fixes bug #608678
Package-Manager: portage-2.3.3
dev-lisp/sbcl/files/sbcl-1.3.14-config.patch | 22 ++++++++++++++++++++++
dev-lisp/sbcl/sbcl-1.3.14.ebuild | 2 ++
2 files changed, 24 insertions(+)
diff --git a/dev-lisp/sbcl/files/sbcl-1.3.14-config.patch
b/dev-lisp/sbcl/files/sbcl-1.3.14-config.patch
new file mode 100644
index 0000000000..c12700d0d6
--- /dev/null
+++ b/dev-lisp/sbcl/files/sbcl-1.3.14-config.patch
@@ -0,0 +1,22 @@
+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 \
diff --git a/dev-lisp/sbcl/sbcl-1.3.14.ebuild b/dev-lisp/sbcl/sbcl-1.3.14.ebuild
index f737a35455..4712077392 100644
--- a/dev-lisp/sbcl/sbcl-1.3.14.ebuild
+++ b/dev-lisp/sbcl/sbcl-1.3.14.ebuild
@@ -101,6 +101,8 @@ src_prepare() {
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
eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch