summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-04-21 11:09:04 +0000
committerPeter Volkov <pva@gentoo.org>2008-04-21 11:09:04 +0000
commitf89b0dd03011d1b46bc194f843bbc668416a223c (patch)
tree83fec01c5ea184b4f91768bfc6c0adbb3bf26988 /net-misc/l7-protocols
parentCleanup ebuilds. (diff)
downloadgentoo-2-f89b0dd03011d1b46bc194f843bbc668416a223c.tar.gz
gentoo-2-f89b0dd03011d1b46bc194f843bbc668416a223c.tar.bz2
gentoo-2-f89b0dd03011d1b46bc194f843bbc668416a223c.zip
Fixed compilation with gcc-4.3.
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-misc/l7-protocols')
-rw-r--r--net-misc/l7-protocols/ChangeLog7
-rw-r--r--net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch10
-rw-r--r--net-misc/l7-protocols/l7-protocols-2008.02.20.ebuild12
3 files changed, 24 insertions, 5 deletions
diff --git a/net-misc/l7-protocols/ChangeLog b/net-misc/l7-protocols/ChangeLog
index 4a08bb31e1ab..00b30d38c450 100644
--- a/net-misc/l7-protocols/ChangeLog
+++ b/net-misc/l7-protocols/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/l7-protocols
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/ChangeLog,v 1.53 2008/04/01 06:07:45 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/ChangeLog,v 1.54 2008/04/21 11:09:03 pva Exp $
+
+ 21 Apr 2008; Peter Volkov <pva@gentoo.org>
+ +files/l7-protocols-2008.02.20-gcc4.3.patch,
+ l7-protocols-2008.02.20.ebuild:
+ Fixed compilation with gcc-4.3.
01 Apr 2008; Daniel Black <dragonheart@gentoo.org>
-l7-protocols-2006.06.03.ebuild, -l7-protocols-2007.05.09.ebuild,
diff --git a/net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch b/net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch
new file mode 100644
index 000000000000..85453978fd56
--- /dev/null
+++ b/net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch
@@ -0,0 +1,10 @@
+--- testing/test_speed-userspace.cpp.orig 2008-04-21 14:41:58.000000000 +0400
++++ testing/test_speed-userspace.cpp 2008-04-21 14:42:26.000000000 +0400
+@@ -16,6 +16,7 @@
+ #include <fstream>
+ #include <iostream>
+ #include <sys/types.h>
++#include <stdlib.h>
+ #include "l7-parse-patterns.h"
+
+ #define MAX 1500
diff --git a/net-misc/l7-protocols/l7-protocols-2008.02.20.ebuild b/net-misc/l7-protocols/l7-protocols-2008.02.20.ebuild
index 9bd467578272..c8d09dfb9ffe 100644
--- a/net-misc/l7-protocols/l7-protocols-2008.02.20.ebuild
+++ b/net-misc/l7-protocols/l7-protocols-2008.02.20.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/l7-protocols-2008.02.20.ebuild,v 1.1 2008/03/04 16:21:44 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/l7-protocols-2008.02.20.ebuild,v 1.2 2008/04/21 11:09:03 pva Exp $
-inherit fixheadtails toolchain-funcs
+inherit eutils fixheadtails toolchain-funcs
IUSE=""
@@ -20,9 +20,13 @@ S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
+
+ cd "${S}"
sed -i -e "s/gcc.*\-o/$(tc-getCC) ${CFLAGS} -o/g" \
- -e "s/g++.*\-o/$(tc-getCXX) ${CXXFLAGS} -o/g" "${S}"/testing/Makefile
- ht_fix_file "${S}"/testing/*.sh
+ -e "s/g++.*\-o/$(tc-getCXX) ${CXXFLAGS} -o/g" testing/Makefile
+ ht_fix_file testing/*.sh
+
+ epatch "${FILESDIR}"/${P}-gcc4.3.patch
}
src_compile() {