summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-03-29 18:13:43 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-03-29 18:13:43 +0000
commit92f3089716b5aeab6dc5fe7567b2f7f257479ee0 (patch)
treeb4708a01e9b9beb979fae65fb5b53ee90a0efdd8 /app-emulation/virtualbox
parentVersion bump. (diff)
downloadgentoo-2-92f3089716b5aeab6dc5fe7567b2f7f257479ee0.tar.gz
gentoo-2-92f3089716b5aeab6dc5fe7567b2f7f257479ee0.tar.bz2
gentoo-2-92f3089716b5aeab6dc5fe7567b2f7f257479ee0.zip
Added message for workaround with hardened gcc. See bug #339914.
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/virtualbox')
-rw-r--r--app-emulation/virtualbox/ChangeLog6
-rw-r--r--app-emulation/virtualbox/virtualbox-4.0.4-r1.ebuild11
2 files changed, 15 insertions, 2 deletions
diff --git a/app-emulation/virtualbox/ChangeLog b/app-emulation/virtualbox/ChangeLog
index db6387af9cf7..66e3c0e36a5e 100644
--- a/app-emulation/virtualbox/ChangeLog
+++ b/app-emulation/virtualbox/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-emulation/virtualbox
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.64 2011/03/20 13:53:29 serkan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.65 2011/03/29 18:13:43 blueness Exp $
+
+ 29 Mar 2011; Anthony G. Basile <blueness@gentoo.org>
+ virtualbox-4.0.4-r1.ebuild:
+ Added message for workaround with hardened gcc. See bug #339914.
20 Mar 2011; Serkan Kaba <serkan@gentoo.org> virtualbox-4.0.4-r1.ebuild:
Enable sdk by default to fix bug #359607. Migrate to EAPI4 and use
diff --git a/app-emulation/virtualbox/virtualbox-4.0.4-r1.ebuild b/app-emulation/virtualbox/virtualbox-4.0.4-r1.ebuild
index 92f862495cda..0fc44fa67264 100644
--- a/app-emulation/virtualbox/virtualbox-4.0.4-r1.ebuild
+++ b/app-emulation/virtualbox/virtualbox-4.0.4-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.0.4-r1.ebuild,v 1.3 2011/03/20 13:53:29 serkan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.0.4-r1.ebuild,v 1.4 2011/03/29 18:13:43 blueness Exp $
EAPI=4
@@ -113,6 +113,15 @@ QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
REQUIRED_USE="java? ( sdk ) python? ( sdk )"
pkg_setup() {
+ if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv -E "hardenednopie|vanilla"; then
+ eerror "The PIE feature provided by the \"hardened\" compiler is incompatible with ${PF}."
+ eerror "You must use gcc-config to select a profile without this feature. You may"
+ eerror "choose either \"hardenednopie\", \"hardenednopiessp\" or \"vanilla\" profile;"
+ eerror "however, \"hardenednopie\" is preferred because it gives the most hardening."
+ eerror "Remember to run \"source /etc/profile\" before continuing. See bug #339914."
+ die
+ fi
+
if ! use headless && ! use qt4 ; then
einfo "No USE=\"qt4\" selected, this build will not include"
einfo "any Qt frontend."