summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-10-13 11:13:26 +0000
committerPeter Volkov <pva@gentoo.org>2008-10-13 11:13:26 +0000
commite0c85ac1486bf32001fc50f15c26284e201ec59c (patch)
tree82105af753be6086ce8b25877531976a802d4123 /net-firewall
parentarm stable wrt #241642 (diff)
downloadgentoo-2-e0c85ac1486bf32001fc50f15c26284e201ec59c.tar.gz
gentoo-2-e0c85ac1486bf32001fc50f15c26284e201ec59c.tar.bz2
gentoo-2-e0c85ac1486bf32001fc50f15c26284e201ec59c.zip
Fixed build issue when no optimisation or only -O0 was passed in CFLAGS, bug #240752, thank Diego Pettenò for report.
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/arptables/ChangeLog6
-rw-r--r--net-firewall/arptables/arptables-0.0.3.3-r1.ebuild9
2 files changed, 10 insertions, 5 deletions
diff --git a/net-firewall/arptables/ChangeLog b/net-firewall/arptables/ChangeLog
index 63cffa142ed9..c763f7b994c7 100644
--- a/net-firewall/arptables/ChangeLog
+++ b/net-firewall/arptables/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-firewall/arptables
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/arptables/ChangeLog,v 1.13 2008/01/09 13:54:37 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/arptables/ChangeLog,v 1.14 2008/10/13 11:13:26 pva Exp $
+
+ 13 Oct 2008; Peter Volkov <pva@gentoo.org> arptables-0.0.3.3-r1.ebuild:
+ Fixed build issue when no optimisation or only -O0 was passed in CFLAGS,
+ bug #240752, thank Diego Pettenò for report.
09 Jan 2008; <pva@gentoo.org> -arptables-0.0.3.ebuild,
-arptables-0.0.3.3.ebuild:
diff --git a/net-firewall/arptables/arptables-0.0.3.3-r1.ebuild b/net-firewall/arptables/arptables-0.0.3.3-r1.ebuild
index ec367623d73f..5136bf23a47e 100644
--- a/net-firewall/arptables/arptables-0.0.3.3-r1.ebuild
+++ b/net-firewall/arptables/arptables-0.0.3.3-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/arptables/arptables-0.0.3.3-r1.ebuild,v 1.4 2007/12/16 10:56:50 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/arptables/arptables-0.0.3.3-r1.ebuild,v 1.5 2008/10/13 11:13:26 pva Exp $
inherit versionator eutils
@@ -18,13 +18,14 @@ IUSE=""
S=${WORKDIR}/${MY_P}
src_compile() {
- emake CC="$(tc-getCC)" COPT_FLAGS="${CFLAGS}" || die "make failed"
+ # -O0 does not work and at least -O2 is required, bug #240752
+ emake CC="$(tc-getCC)" COPT_FLAGS="-O2 ${CFLAGS//-O0/-O2}" || die "make failed"
sed -ie 's:__EXEC_PATH__:/sbin:g' arptables-save arptables-restore \
|| die "sed failed"
}
src_install() {
into /
- dosbin arptables arptables-restore arptables-save
+ dosbin arptables arptables-restore arptables-save || die
doman arptables.8
}