diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-02-06 00:05:43 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-02-06 00:05:43 +0000 |
commit | f1927a4767055ea46892ec79ee2489966823397a (patch) | |
tree | a6ec4b21f98190a1da20ec4c8c48e7cbeec68105 /net-libs | |
parent | 0.9.8 version bump. (diff) | |
download | gentoo-2-f1927a4767055ea46892ec79ee2489966823397a.tar.gz gentoo-2-f1927a4767055ea46892ec79ee2489966823397a.tar.bz2 gentoo-2-f1927a4767055ea46892ec79ee2489966823397a.zip |
Add patch to build with GCC 4.1.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/libksnmp/ChangeLog | 8 | ||||
-rw-r--r-- | net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch | 42 | ||||
-rw-r--r-- | net-libs/libksnmp/libksnmp-0.3.ebuild | 20 |
3 files changed, 51 insertions, 19 deletions
diff --git a/net-libs/libksnmp/ChangeLog b/net-libs/libksnmp/ChangeLog index 9af7608fe3d1..3db42cd5b229 100644 --- a/net-libs/libksnmp/ChangeLog +++ b/net-libs/libksnmp/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-libs/libksnmp -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libksnmp/ChangeLog,v 1.3 2005/12/10 13:27:47 flameeyes Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libksnmp/ChangeLog,v 1.4 2006/02/06 00:05:43 flameeyes Exp $ + + 06 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> + +files/libksnmp-0.3-gcc41.patch, libksnmp-0.3.ebuild: + Add patch to build with GCC 4.1. 10 Dec 2005; Diego Pettenò <flameeyes@gentoo.org> libksnmp-0.3.ebuild: Update $HOMEPAGE value, as the .xhtml version does not exists anymore. diff --git a/net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch b/net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch new file mode 100644 index 000000000000..da4f6007ebb3 --- /dev/null +++ b/net-libs/libksnmp/files/libksnmp-0.3-gcc41.patch @@ -0,0 +1,42 @@ +Index: tests/loopget.cpp +=================================================================== +RCS file: /cvsroot/atmosphere/libksnmp/tests/loopget.cpp,v +retrieving revision 1.3 +diff -u -B -r1.3 loopget.cpp +--- tests/loopget.cpp 18 Feb 2005 12:49:16 -0000 1.3 ++++ tests/loopget.cpp 6 Feb 2006 00:02:18 -0000 +@@ -96,8 +96,8 @@ + goto endofmain; + } + +- const int loop = atoi( args->arg(2) ); +- const int delay = atoi( args->arg(3) ) * 1000; ++ static const int loop = atoi( args->arg(2) ); ++ static const int delay = atoi( args->arg(3) ) * 1000; + + for(int i = 0; i < loop; i++) + { +Index: tests/name2index.cpp +=================================================================== +RCS file: /cvsroot/atmosphere/libksnmp/tests/name2index.cpp,v +retrieving revision 1.1 +diff -u -B -r1.1 name2index.cpp +--- tests/name2index.cpp 18 Feb 2005 12:28:45 -0000 1.1 ++++ tests/name2index.cpp 6 Feb 2006 00:02:18 -0000 +@@ -67,6 +67,7 @@ + int ret = 0; + + KSNMP::Session *session = NULL; ++ KSNMP::Device1213 *dev = NULL; + if ( args->getOption("V") == "1" ) + session = new KSNMP::Session1("", args->getOption("c")); + else if ( args->getOption("V") == "2c" ) +@@ -93,7 +94,7 @@ + goto endofmain; + } + +- KSNMP::Device1213 *dev = new KSNMP::Device1213(session); ++ dev = new KSNMP::Device1213(session); + + std::cout << "ifIndex: " << dev->getIfIndex(args->arg(1), false) << std::endl; + diff --git a/net-libs/libksnmp/libksnmp-0.3.ebuild b/net-libs/libksnmp/libksnmp-0.3.ebuild index faafa9c9fa7c..4e0ad9e3be7e 100644 --- a/net-libs/libksnmp/libksnmp-0.3.ebuild +++ b/net-libs/libksnmp/libksnmp-0.3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libksnmp/libksnmp-0.3.ebuild,v 1.3 2005/12/10 13:27:47 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libksnmp/libksnmp-0.3.ebuild,v 1.4 2006/02/06 00:05:43 flameeyes Exp $ inherit kde @@ -17,19 +17,5 @@ DEPEND="net-analyzer/net-snmp" need-kde 3.1 -src_compile() { - kde_src_compile +PATCHES="${FILESDIR}/${P}-gcc41.patch" -# if use doc; then -# cd ${S}/doc -# doxygen -# fi -} - -src_install() { - kde_src_install - -# if use doc; then -# dohtml -r ${S}/doc/html -# fi -} |