summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-05-04 17:38:26 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-05-04 17:38:26 +0000
commit4df98cde6474067a782933d9383326b097221dd6 (patch)
tree0f98b1db96b5853b44a3e85c80b7761ea0a29491 /sys-freebsd/freebsd-sources
parentremove commented out patch and its comments. (diff)
downloadgentoo-2-4df98cde6474067a782933d9383326b097221dd6.tar.gz
gentoo-2-4df98cde6474067a782933d9383326b097221dd6.tar.bz2
gentoo-2-4df98cde6474067a782933d9383326b097221dd6.zip
build with -O1 on amd64-fbsd otherwise the kernel does not boot with gcc 4.4 and later, by Yuta SATOH in bug #408019
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'sys-freebsd/freebsd-sources')
-rw-r--r--sys-freebsd/freebsd-sources/ChangeLog6
-rw-r--r--sys-freebsd/freebsd-sources/freebsd-sources-9.0.ebuild7
2 files changed, 11 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-sources/ChangeLog b/sys-freebsd/freebsd-sources/ChangeLog
index 13825296a1a1..3d9afe881437 100644
--- a/sys-freebsd/freebsd-sources/ChangeLog
+++ b/sys-freebsd/freebsd-sources/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-freebsd/freebsd-sources
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.67 2012/05/04 17:34:56 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.68 2012/05/04 17:38:26 aballier Exp $
+
+ 04 May 2012; Alexis Ballier <aballier@gentoo.org> freebsd-sources-9.0.ebuild:
+ build with -O1 on amd64-fbsd otherwise the kernel does not boot with gcc 4.4
+ and later, by Yuta SATOH in bug #408019
04 May 2012; Alexis Ballier <aballier@gentoo.org> freebsd-sources-9.0.ebuild:
remove commented out patch and its comments.
diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-9.0.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-9.0.ebuild
index 678dd37db12f..23eeb4b7254c 100644
--- a/sys-freebsd/freebsd-sources/freebsd-sources-9.0.ebuild
+++ b/sys-freebsd/freebsd-sources/freebsd-sources-9.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.0.ebuild,v 1.4 2012/05/04 17:34:56 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.0.ebuild,v 1.5 2012/05/04 17:38:26 aballier Exp $
inherit bsdmk freebsd flag-o-matic
@@ -56,6 +56,11 @@ src_unpack() {
# vop_whiteout to tmpfs, so it can be used as an overlay
# unionfs filesystem over the cd9660 readonly filesystem.
epatch "${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch"
+
+ # workaround a kernel panic for amd64-fbsd, bug #408019
+ if use amd64-fbsd ; then
+ sed -e "s:-O2:-O1:g" -i "${S}/conf/kern.pre.mk" || die
+ fi
}
src_compile() {