Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/eva:master commit in: app-admin/collectd/files/
Date: Sun, 29 Apr 2012 14:20:24
Message-Id: 1335709201.0de4e0a7a517a88f4ebcc09cee2d312950109754.eva@gentoo
1 commit: 0de4e0a7a517a88f4ebcc09cee2d312950109754
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 14:20:01 2012 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 14:20:01 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/eva.git;a=commit;h=0de4e0a7
7
8 add missing patches
9
10 ---
11 .../collectd/files/collectd-4.10.1-libiptc.patch | 12 ++++++++
12 .../collectd/files/collectd-4.10.1-libperl.patch | 29 ++++++++++++++++++++
13 .../collectd/files/collectd-4.10.1-noowniptc.patch | 26 +++++++++++++++++
14 .../files/collectd-4.10.2-libnotify-0.7.patch | 27 ++++++++++++++++++
15 .../collectd/files/collectd-4.10.2-libocci.patch | 20 +++++++++++++
16 .../collectd/files/collectd-4.10.2-nohal.patch | 23 +++++++++++++++
17 6 files changed, 137 insertions(+), 0 deletions(-)
18
19 diff --git a/app-admin/collectd/files/collectd-4.10.1-libiptc.patch b/app-admin/collectd/files/collectd-4.10.1-libiptc.patch
20 new file mode 100644
21 index 0000000..193a479
22 --- /dev/null
23 +++ b/app-admin/collectd/files/collectd-4.10.1-libiptc.patch
24 @@ -0,0 +1,12 @@
25 +diff -r -u collectd-4.10.1.orig/configure.in collectd-4.10.1/configure.in
26 +--- collectd-4.10.1.orig/configure.in 2010-07-09 12:01:59.000000000 +0200
27 ++++ collectd-4.10.1/configure.in 2010-08-27 22:27:57.010271693 +0200
28 +@@ -1626,7 +1626,7 @@
29 + # Check for the iptc_init symbol in the library.
30 + if test "x$with_libiptc" = "xyes" && test "x$with_own_libiptc" = "xno"
31 + then
32 +- AC_CHECK_LIB(iptc, iptc_init,
33 ++ AC_SEARCH_LIBS(iptc_init, [iptc ip4tc],
34 + [
35 + AC_DEFINE(HAVE_LIBIPTC, 1, [Define to 1 if you have the iptc library (-liptc).])
36 + ],
37
38 diff --git a/app-admin/collectd/files/collectd-4.10.1-libperl.patch b/app-admin/collectd/files/collectd-4.10.1-libperl.patch
39 new file mode 100644
40 index 0000000..8fc25a8
41 --- /dev/null
42 +++ b/app-admin/collectd/files/collectd-4.10.1-libperl.patch
43 @@ -0,0 +1,29 @@
44 +diff -r -u collectd-4.10.1.orig/configure.in collectd-4.10.1/configure.in
45 +--- collectd-4.10.1.orig/configure.in 2010-07-09 12:01:59.000000000 +0200
46 ++++ collectd-4.10.1/configure.in 2010-09-24 20:15:22.666434555 +0200
47 +@@ -2607,11 +2607,13 @@
48 + then
49 + SAVE_CFLAGS="$CFLAGS"
50 + SAVE_LDFLAGS="$LDFLAGS"
51 ++ SAVE_LIBS="$LIBS"
52 + dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string)
53 + PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts`
54 + PERL_LDFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts`
55 + CFLAGS="$CFLAGS $PERL_CFLAGS"
56 + LDFLAGS="$LDFLAGS $PERL_LDFLAGS"
57 ++ LIBS="$LIBS -lperl"
58 +
59 + AC_CACHE_CHECK([for libperl],
60 + [c_cv_have_libperl],
61 +@@ -2630,7 +2632,10 @@
62 + Nullsv);
63 + ]]),
64 + [c_cv_have_libperl="yes"],
65 +- [c_cv_have_libperl="no"]
66 ++ [
67 ++ c_cv_have_libperl="no"
68 ++ LIBS="$SAVE_LIBS"
69 ++ ]
70 + )
71 + )
72 +
73
74 diff --git a/app-admin/collectd/files/collectd-4.10.1-noowniptc.patch b/app-admin/collectd/files/collectd-4.10.1-noowniptc.patch
75 new file mode 100644
76 index 0000000..6496890
77 --- /dev/null
78 +++ b/app-admin/collectd/files/collectd-4.10.1-noowniptc.patch
79 @@ -0,0 +1,26 @@
80 +diff -r -u collectd-4.10.1.orig/src/Makefile.am collectd-4.10.1/src/Makefile.am
81 +--- collectd-4.10.1.orig/src/Makefile.am 2010-07-09 12:01:59.000000000 +0200
82 ++++ collectd-4.10.1/src/Makefile.am 2010-10-11 00:10:59.000000000 +0200
83 +@@ -1,7 +1,4 @@
84 + SUBDIRS = libcollectdclient
85 +-if BUILD_WITH_OWN_LIBIPTC
86 +-SUBDIRS += owniptc
87 +-endif
88 + if BUILD_WITH_OWN_LIBOCONFIG
89 + SUBDIRS += liboconfig
90 + endif
91 +@@ -415,12 +412,9 @@
92 + iptables_la_SOURCES = iptables.c
93 + iptables_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBIPTC_CPPFLAGS)
94 + iptables_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBIPTC_LDFLAGS)
95 +-if BUILD_WITH_OWN_LIBIPTC
96 +-iptables_la_LIBADD = owniptc/libiptc.la
97 +-iptables_la_DEPENDENCIES = owniptc/libiptc.la
98 +-else
99 ++
100 + iptables_la_LIBADD = -liptc
101 +-endif
102 ++
103 + collectd_LDADD += "-dlopen" iptables.la
104 + collectd_DEPENDENCIES += iptables.la
105 + endif
106
107 diff --git a/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch b/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch
108 new file mode 100644
109 index 0000000..92b01b1
110 --- /dev/null
111 +++ b/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch
112 @@ -0,0 +1,27 @@
113 +--- src/notify_desktop.c
114 ++++ src/notify_desktop.c
115 +@@ -31,6 +31,10 @@
116 + #include <glib.h>
117 + #include <libnotify/notify.h>
118 +
119 ++#ifndef NOTIFY_CHECK_VERSION
120 ++#define NOTIFY_CHECK_VERSION(x,y,z) 0
121 ++#endif
122 ++
123 + #define log_info(...) INFO ("notify_desktop: " __VA_ARGS__)
124 + #define log_warn(...) WARNING ("notify_desktop: " __VA_ARGS__)
125 + #define log_err(...) ERROR ("notify_desktop: " __VA_ARGS__)
126 +@@ -95,7 +99,12 @@
127 + : (NOTIF_WARNING == n->severity) ? "WARNING"
128 + : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN");
129 +
130 +- notification = notify_notification_new (summary, n->message, NULL, NULL);
131 ++ notification = notify_notification_new (summary, n->message, NULL
132 ++#if NOTIFY_CHECK_VERSION (0, 7, 0)
133 ++ );
134 ++#else
135 ++ , NULL);
136 ++#endif
137 + if (NULL == notification) {
138 + log_err ("Failed to create a new notification.");
139 + return -1;
140
141 diff --git a/app-admin/collectd/files/collectd-4.10.2-libocci.patch b/app-admin/collectd/files/collectd-4.10.2-libocci.patch
142 new file mode 100644
143 index 0000000..2ae42dc
144 --- /dev/null
145 +++ b/app-admin/collectd/files/collectd-4.10.2-libocci.patch
146 @@ -0,0 +1,20 @@
147 +diff -r -u collectd-4.10.2.orig/configure.in collectd-4.10.2/configure.in
148 +--- collectd-4.10.2.orig/configure.in 2010-11-28 03:27:47.000000000 +0100
149 ++++ collectd-4.10.2/configure.in 2010-11-28 03:28:23.000000000 +0100
150 +@@ -2446,14 +2446,14 @@
151 + ])
152 + if test "x$ORACLE_HOME" != "x"
153 + then
154 +- with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public"
155 ++ with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public -locci"
156 +
157 + if test -e "$ORACLE_HOME/lib/ldflags"
158 + then
159 + with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"`
160 + fi
161 + #with_oracle_libs="-L$ORACLE_HOME/lib $with_oracle_libs -lclntsh"
162 +- with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh"
163 ++ with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh -locci"
164 + fi
165 + if test "x$with_oracle" = "xyes"
166 + then
167
168 diff --git a/app-admin/collectd/files/collectd-4.10.2-nohal.patch b/app-admin/collectd/files/collectd-4.10.2-nohal.patch
169 new file mode 100644
170 index 0000000..a82a3bc
171 --- /dev/null
172 +++ b/app-admin/collectd/files/collectd-4.10.2-nohal.patch
173 @@ -0,0 +1,23 @@
174 +diff -ruN collectd-4.10.2.orig/configure.in collectd-4.10.2/configure.in
175 +--- collectd-4.10.2.orig/configure.in 2010-11-27 11:10:38.000000000 +0100
176 ++++ collectd-4.10.2/configure.in 2011-02-07 21:55:22.000000000 +0100
177 +@@ -1109,18 +1109,7 @@
178 + AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
179 +
180 + dnl Check for HAL (hardware abstraction library)
181 +-with_libhal="yes"
182 +-AC_CHECK_LIB(hal,libhal_device_property_exists,
183 +- [AC_DEFINE(HAVE_LIBHAL, 1, [Define to 1 if you have 'hal' library])],
184 +- [with_libhal="no"])
185 +-if test "x$with_libhal" = "xyes"; then
186 +- if test "x$PKG_CONFIG" != "x"; then
187 +- BUILD_WITH_LIBHAL_CFLAGS="`pkg-config --cflags hal`"
188 +- BUILD_WITH_LIBHAL_LIBS="`pkg-config --libs hal`"
189 +- AC_SUBST(BUILD_WITH_LIBHAL_CFLAGS)
190 +- AC_SUBST(BUILD_WITH_LIBHAL_LIBS)
191 +- fi
192 +-fi
193 ++with_libhal="no"
194 +
195 + m4_divert_once([HELP_WITH], [
196 + collectd additional packages:])