diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-02-18 17:09:17 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-02-18 17:09:17 +0000 |
commit | bdb17b314b51509c51b1f486601289f3fca23276 (patch) | |
tree | 940c494bdd11c5a49e747f856ec25218c813590d /sys-freebsd/freebsd-mk-defs | |
parent | Version bump. (diff) | |
download | gentoo-2-bdb17b314b51509c51b1f486601289f3fca23276.tar.gz gentoo-2-bdb17b314b51509c51b1f486601289f3fca23276.tar.bz2 gentoo-2-bdb17b314b51509c51b1f486601289f3fca23276.zip |
Fix SIGABRT failure when compiled with SSP-enabled gcc, bug #511698, patch by Yuta SATOH
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'sys-freebsd/freebsd-mk-defs')
4 files changed, 42 insertions, 6 deletions
diff --git a/sys-freebsd/freebsd-mk-defs/ChangeLog b/sys-freebsd/freebsd-mk-defs/ChangeLog index d77b9ed30573..011a75d3afff 100644 --- a/sys-freebsd/freebsd-mk-defs/ChangeLog +++ b/sys-freebsd/freebsd-mk-defs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-freebsd/freebsd-mk-defs -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/ChangeLog,v 1.58 2013/11/09 09:17:03 aballier Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/ChangeLog,v 1.59 2015/02/18 17:09:17 mgorny Exp $ + + 18 Feb 2015; Michał Górny <mgorny@gentoo.org> + +files/freebsd-mk-defs-add-nossp-cflags.patch, freebsd-mk-defs-9.1.ebuild, + freebsd-mk-defs-9.2.ebuild: + Fix SIGABRT failure when compiled with SSP-enabled gcc, bug #511698, patch by + Yuta SATOH *freebsd-mk-defs-9.2 (09 Nov 2013) diff --git a/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-add-nossp-cflags.patch b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-add-nossp-cflags.patch new file mode 100644 index 000000000000..8eb80c38cc7a --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-add-nossp-cflags.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/show_bug.cgi?id=511698 + +diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk +index e438633..de4a05b 100644 +--- a/share/mk/bsd.sys.mk ++++ b/share/mk/bsd.sys.mk +@@ -111,12 +111,18 @@ CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\ + CFLAGS+= -Qunused-arguments + .endif # CLANG + +-.if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "ia64" && \ +- ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" ++.if ${MACHINE_CPUARCH} != "ia64" && ${MACHINE_CPUARCH} != "arm" \ ++ && ${MACHINE_CPUARCH} != "mips" ++.if ${MK_SSP} != "no" + # Don't use -Wstack-protector as it breaks world with -Werror. + SSP_CFLAGS?= -fstack-protector ++.else ++# gcc-4.9, -fstack-protector-strong is enabled by default. ++# Add -fno-stack-protector to disable it. Gentoo Bug #511698. ++SSP_CFLAGS= -fno-stack-protector ++.endif #SSP + CFLAGS+= ${SSP_CFLAGS} +-.endif # SSP && !IA64 && !ARM && !MIPS ++.endif # !IA64 && !ARM && !MIPS + + # Allow user-specified additional warning flags + CFLAGS+= ${CWARNFLAGS} diff --git a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.1.ebuild b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.1.ebuild index 8e0bc64bd680..0b572a0b88db 100644 --- a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.1.ebuild +++ b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.1.ebuild,v 1.1 2013/01/27 21:26:05 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.1.ebuild,v 1.2 2015/02/18 17:09:17 mgorny Exp $ EAPI=3 @@ -23,6 +23,7 @@ S="${WORKDIR}/share/mk" src_prepare() { epatch "${FILESDIR}/${PN}-9.1-gentoo.patch" + epatch "${FILESDIR}/${PN}-add-nossp-cflags.patch" use userland_GNU && epatch "${FILESDIR}/${PN}-9.1-gnu.patch" } diff --git a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.2.ebuild b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.2.ebuild index fa66f56314ac..837a5439d335 100644 --- a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.2.ebuild +++ b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.2.ebuild,v 1.1 2013/11/09 09:17:03 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-9.2.ebuild,v 1.2 2015/02/18 17:09:17 mgorny Exp $ EAPI=3 @@ -25,6 +25,7 @@ S="${WORKDIR}/share/mk" src_prepare() { epatch "${FILESDIR}/${PN}-9.2-gentoo.patch" + epatch "${FILESDIR}/${PN}-add-nossp-cflags.patch" use userland_GNU && epatch "${FILESDIR}/${PN}-9.2-gnu.patch" } |