summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/collectd
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2014-09-03 09:56:48 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2014-09-26 05:41:53 +0200
commit06e7054b9a3383ac28e851e2351b0d8bf56d1300 (patch)
tree5539975e814fb5a11ea091353dc2435f84004af2 /meta-oe/recipes-extended/collectd
parentadd0ba41de8930d726067b95a0d1dfa1b37e21c5 (diff)
downloadmeta-openembedded-06e7054b9a3383ac28e851e2351b0d8bf56d1300.tar.gz
collectd: Upgrade to 5.4.1 and fix with glibc 2.20
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/collectd')
-rw-r--r--meta-oe/recipes-extended/collectd/collectd/glibc-2.20-compatiblity.patch102
-rw-r--r--meta-oe/recipes-extended/collectd/collectd/no-gcrypt-badpath.patch10
-rw-r--r--meta-oe/recipes-extended/collectd/collectd_5.4.1.bb (renamed from meta-oe/recipes-extended/collectd/collectd_5.2.2.bb)8
3 files changed, 111 insertions, 9 deletions
diff --git a/meta-oe/recipes-extended/collectd/collectd/glibc-2.20-compatiblity.patch b/meta-oe/recipes-extended/collectd/collectd/glibc-2.20-compatiblity.patch
new file mode 100644
index 000000000..2596bedf9
--- /dev/null
+++ b/meta-oe/recipes-extended/collectd/collectd/glibc-2.20-compatiblity.patch
@@ -0,0 +1,102 @@
1This makes it forward compatible with glibc 2.20+ where _BSD_SOURCE
2macro has been deprecated.
3
4Fixes warnings like
5
6usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
7| # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Upstream-Status: Pending
11Index: collectd-5.4.1/configure.ac
12===================================================================
13--- collectd-5.4.1.orig/configure.ac 2014-09-03 01:21:10.666084244 -0700
14+++ collectd-5.4.1/configure.ac 2014-09-03 01:31:27.794084244 -0700
15@@ -1288,6 +1288,7 @@
16
17 AC_CHECK_MEMBERS([struct udphdr.uh_dport, struct udphdr.uh_sport], [], [],
18 [#define _BSD_SOURCE
19+#define _DEFAULT_SOURCE 1
20 #if HAVE_STDINT_H
21 # include <stdint.h>
22 #endif
23@@ -1309,6 +1310,7 @@
24 ])
25 AC_CHECK_MEMBERS([struct udphdr.dest, struct udphdr.source], [], [],
26 [#define _BSD_SOURCE
27+#define _DEFAULT_SOURCE 1
28 #if HAVE_STDINT_H
29 # include <stdint.h>
30 #endif
31Index: collectd-5.4.1/src/dns.c
32===================================================================
33--- collectd-5.4.1.orig/src/dns.c 2014-01-26 00:09:14.856391886 -0800
34+++ collectd-5.4.1/src/dns.c 2014-09-03 01:32:37.666084244 -0700
35@@ -22,6 +22,7 @@
36 **/
37
38 #define _BSD_SOURCE
39+#define _DEFAULT_SOURCE 1
40
41 #include "collectd.h"
42 #include "common.h"
43Index: collectd-5.4.1/src/exec.c
44===================================================================
45--- collectd-5.4.1.orig/src/exec.c 2014-01-26 00:09:14.860391963 -0800
46+++ collectd-5.4.1/src/exec.c 2014-09-03 01:32:28.874084244 -0700
47@@ -24,6 +24,7 @@
48 **/
49
50 #define _BSD_SOURCE /* For setgroups */
51+#define _DEFAULT_SOURCE 1
52
53 #include "collectd.h"
54 #include "common.h"
55Index: collectd-5.4.1/src/load.c
56===================================================================
57--- collectd-5.4.1.orig/src/load.c 2014-01-26 00:09:23.532559941 -0800
58+++ collectd-5.4.1/src/load.c 2014-09-03 01:32:51.462084244 -0700
59@@ -22,6 +22,7 @@
60 **/
61
62 #define _BSD_SOURCE
63+#define _DEFAULT_SOURCE 1
64
65 #include "collectd.h"
66 #include "common.h"
67Index: collectd-5.4.1/src/network.c
68===================================================================
69--- collectd-5.4.1.orig/src/network.c 2014-01-26 00:09:23.532559941 -0800
70+++ collectd-5.4.1/src/network.c 2014-09-03 01:32:44.522084244 -0700
71@@ -23,6 +23,7 @@
72 **/
73
74 #define _BSD_SOURCE /* For struct ip_mreq */
75+#define _DEFAULT_SOURCE 1
76
77 #include "collectd.h"
78 #include "plugin.h"
79Index: collectd-5.4.1/src/ntpd.c
80===================================================================
81--- collectd-5.4.1.orig/src/ntpd.c 2014-01-26 00:09:14.880392351 -0800
82+++ collectd-5.4.1/src/ntpd.c 2014-09-03 01:32:20.350084244 -0700
83@@ -20,6 +20,7 @@
84 **/
85
86 #define _BSD_SOURCE /* For NI_MAXHOST */
87+#define _DEFAULT_SOURCE 1
88
89 #include "collectd.h"
90 #include "common.h"
91Index: collectd-5.4.1/src/utils_dns.c
92===================================================================
93--- collectd-5.4.1.orig/src/utils_dns.c 2014-01-26 00:09:14.908392893 -0800
94+++ collectd-5.4.1/src/utils_dns.c 2014-09-03 01:31:47.062084244 -0700
95@@ -34,6 +34,7 @@
96 */
97
98 #define _BSD_SOURCE
99+#define _DEFAULT_SOURCE 1
100
101 #include "collectd.h"
102 #include "plugin.h"
diff --git a/meta-oe/recipes-extended/collectd/collectd/no-gcrypt-badpath.patch b/meta-oe/recipes-extended/collectd/collectd/no-gcrypt-badpath.patch
index 02b160109..0e876ae85 100644
--- a/meta-oe/recipes-extended/collectd/collectd/no-gcrypt-badpath.patch
+++ b/meta-oe/recipes-extended/collectd/collectd/no-gcrypt-badpath.patch
@@ -7,11 +7,11 @@ Upstream-Status: Inappropriate [configuration]
7 7
8Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> 8Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 9
10diff --git a/configure.in b/configure.in 10Index: collectd-5.4.1/configure.ac
11index 98395ed..81c3a2c 100644 11===================================================================
12--- a/configure.in 12--- collectd-5.4.1.orig/configure.ac 2014-09-03 01:20:22.062084244 -0700
13+++ b/configure.in 13+++ collectd-5.4.1/configure.ac 2014-09-03 01:20:22.058084244 -0700
14@@ -1777,11 +1777,11 @@ then 14@@ -1867,11 +1867,11 @@
15 GCRYPT_CPPFLAGS=`"$with_libgcrypt_config" --cflags 2>/dev/null` 15 GCRYPT_CPPFLAGS=`"$with_libgcrypt_config" --cflags 2>/dev/null`
16 fi 16 fi
17 17
diff --git a/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb b/meta-oe/recipes-extended/collectd/collectd_5.4.1.bb
index 69a5a7e13..dc5f88fd7 100644
--- a/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb
+++ b/meta-oe/recipes-extended/collectd/collectd_5.4.1.bb
@@ -3,15 +3,15 @@ DESCRIPTION = "collectd is a daemon which collects system performance statistics
3LICENSE = "GPLv2" 3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5 5
6DEPENDS = "rrdtool curl mysql5 libpcap libxml2 yajl libgcrypt libtool" 6DEPENDS = "rrdtool curl mysql5 libpcap libxml2 yajl libgcrypt libtool lvm2 libmnl"
7 7
8SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \ 8SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \
9 file://no-gcrypt-badpath.patch \ 9 file://no-gcrypt-badpath.patch \
10 file://collectd-version.patch \ 10 file://collectd-version.patch \
11 file://glibc-2.20-compatiblity.patch \
11 file://collectd.init" 12 file://collectd.init"
12 13SRC_URI[md5sum] = "6f56c71c96573a7f4f7fb3bfab185974"
13SRC_URI[md5sum] = "29e61411e51845d5ae71ab676078867e" 14SRC_URI[sha256sum] = "75452129f271cb0aad28e57f12a49070618bbb7b6a9d64cf869e8766fa2f66e0"
14SRC_URI[sha256sum] = "7b8906d1c8866155b31820ef108be92abcee7fcd278d386bf0d449e704ba4696"
15 15
16inherit autotools pythonnative update-rc.d pkgconfig 16inherit autotools pythonnative update-rc.d pkgconfig
17 17