summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2010-10-12 17:59:52 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2010-10-12 17:59:52 +0000
commit3130b833da756048808e478a6c2ddd3f06413b10 (patch)
treeb8919f3d96bc24e54a24a6a4f52b25a9f17db4cf /app-admin
parentVersion bump for Gnome 2.32 (diff)
downloadgentoo-2-3130b833da756048808e478a6c2ddd3f06413b10.tar.gz
gentoo-2-3130b833da756048808e478a6c2ddd3f06413b10.tar.bz2
gentoo-2-3130b833da756048808e478a6c2ddd3f06413b10.zip
Real fix for bug 340109: use libiptc only if needed and fully disable bundled copy
(Portage version: 2.1.9.14/cvs/Linux x86_64)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/collectd/ChangeLog7
-rw-r--r--app-admin/collectd/collectd-4.10.1-r2.ebuild12
-rw-r--r--app-admin/collectd/files/collectd-4.10.1-noowniptc.patch26
3 files changed, 39 insertions, 6 deletions
diff --git a/app-admin/collectd/ChangeLog b/app-admin/collectd/ChangeLog
index b7361b44e3bd..b39a105a8bca 100644
--- a/app-admin/collectd/ChangeLog
+++ b/app-admin/collectd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-admin/collectd
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/collectd/ChangeLog,v 1.5 2010/10/10 19:13:04 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/collectd/ChangeLog,v 1.6 2010/10/12 17:59:52 dilfridge Exp $
+
+ 12 Oct 2010; Andreas K. Huettel <dilfridge@gentoo.org>
+ collectd-4.10.1-r2.ebuild, +files/collectd-4.10.1-noowniptc.patch:
+ Real fix for bug 340109: use libiptc only if needed for iptables plugin,
+ and completely disable bundled version
10 Oct 2010; Andreas K. Huettel <dilfridge@gentoo.org>
files/collectd.initd:
diff --git a/app-admin/collectd/collectd-4.10.1-r2.ebuild b/app-admin/collectd/collectd-4.10.1-r2.ebuild
index 4e785ee005e9..2927ca6e840d 100644
--- a/app-admin/collectd/collectd-4.10.1-r2.ebuild
+++ b/app-admin/collectd/collectd-4.10.1-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/collectd/collectd-4.10.1-r2.ebuild,v 1.5 2010/10/10 18:15:48 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/collectd/collectd-4.10.1-r2.ebuild,v 1.6 2010/10/12 17:59:52 dilfridge Exp $
EAPI="2"
@@ -46,10 +46,7 @@ unset plugin
# Now come the dependencies.
-# this cannot be in the dependencies if the USE flag is not listed
-# collectd_plugins_oracle? ( >=dev-db/oracle-instantclient-basic-11.1.0.7.0 )
COMMON_DEPEND="
- >=net-firewall/iptables-1.4.9.1-r2
collectd_plugins_apache? ( net-misc/curl )
collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 )
collectd_plugins_bind? ( dev-libs/libxml2 )
@@ -97,7 +94,7 @@ DEPEND="${COMMON_DEPEND}
RDEPEND="${COMMON_DEPEND}
collectd_plugins_syslog? ( virtual/logger )"
-PATCHES=( "${FILESDIR}/${P}"-{libperl,libiptc}.patch )
+PATCHES=( "${FILESDIR}/${P}"-{libperl,libiptc,noowniptc}.patch )
# @FUNCTION: collectd_plugin_kernel_linux
# @DESCRIPTION:
@@ -251,6 +248,11 @@ src_configure() {
myconf+=" --with-java=$(java-config -g JAVA_HOME)"
fi
+ # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens.
+ if ! use collectd_plugins_iptables; then
+ myconf+=" --with-libiptc=no"
+ fi
+
# Finally, run econf.
KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl --localstatedir=/var ${myconf}
}
diff --git a/app-admin/collectd/files/collectd-4.10.1-noowniptc.patch b/app-admin/collectd/files/collectd-4.10.1-noowniptc.patch
new file mode 100644
index 000000000000..6496890a7cae
--- /dev/null
+++ b/app-admin/collectd/files/collectd-4.10.1-noowniptc.patch
@@ -0,0 +1,26 @@
+diff -r -u collectd-4.10.1.orig/src/Makefile.am collectd-4.10.1/src/Makefile.am
+--- collectd-4.10.1.orig/src/Makefile.am 2010-07-09 12:01:59.000000000 +0200
++++ collectd-4.10.1/src/Makefile.am 2010-10-11 00:10:59.000000000 +0200
+@@ -1,7 +1,4 @@
+ SUBDIRS = libcollectdclient
+-if BUILD_WITH_OWN_LIBIPTC
+-SUBDIRS += owniptc
+-endif
+ if BUILD_WITH_OWN_LIBOCONFIG
+ SUBDIRS += liboconfig
+ endif
+@@ -415,12 +412,9 @@
+ iptables_la_SOURCES = iptables.c
+ iptables_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBIPTC_CPPFLAGS)
+ iptables_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBIPTC_LDFLAGS)
+-if BUILD_WITH_OWN_LIBIPTC
+-iptables_la_LIBADD = owniptc/libiptc.la
+-iptables_la_DEPENDENCIES = owniptc/libiptc.la
+-else
++
+ iptables_la_LIBADD = -liptc
+-endif
++
+ collectd_LDADD += "-dlopen" iptables.la
+ collectd_DEPENDENCIES += iptables.la
+ endif