summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}