diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-09-03 09:56:48 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-09-26 05:41:53 +0200 |
commit | 06e7054b9a3383ac28e851e2351b0d8bf56d1300 (patch) | |
tree | 5539975e814fb5a11ea091353dc2435f84004af2 /meta-oe/recipes-extended/collectd | |
parent | add0ba41de8930d726067b95a0d1dfa1b37e21c5 (diff) | |
download | meta-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.patch | 102 | ||||
-rw-r--r-- | meta-oe/recipes-extended/collectd/collectd/no-gcrypt-badpath.patch | 10 | ||||
-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 @@ | |||
1 | This makes it forward compatible with glibc 2.20+ where _BSD_SOURCE | ||
2 | macro has been deprecated. | ||
3 | |||
4 | Fixes warnings like | ||
5 | |||
6 | usr/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 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | Upstream-Status: Pending | ||
11 | Index: 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 | ||
31 | Index: 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" | ||
43 | Index: 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" | ||
55 | Index: 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" | ||
67 | Index: 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" | ||
79 | Index: 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" | ||
91 | Index: 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 | ||
8 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | 8 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
9 | 9 | ||
10 | diff --git a/configure.in b/configure.in | 10 | Index: collectd-5.4.1/configure.ac |
11 | index 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 | |||
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
5 | 5 | ||
6 | DEPENDS = "rrdtool curl mysql5 libpcap libxml2 yajl libgcrypt libtool" | 6 | DEPENDS = "rrdtool curl mysql5 libpcap libxml2 yajl libgcrypt libtool lvm2 libmnl" |
7 | 7 | ||
8 | SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \ | 8 | SRC_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 | 13 | SRC_URI[md5sum] = "6f56c71c96573a7f4f7fb3bfab185974" | |
13 | SRC_URI[md5sum] = "29e61411e51845d5ae71ab676078867e" | 14 | SRC_URI[sha256sum] = "75452129f271cb0aad28e57f12a49070618bbb7b6a9d64cf869e8766fa2f66e0" |
14 | SRC_URI[sha256sum] = "7b8906d1c8866155b31820ef108be92abcee7fcd278d386bf0d449e704ba4696" | ||
15 | 15 | ||
16 | inherit autotools pythonnative update-rc.d pkgconfig | 16 | inherit autotools pythonnative update-rc.d pkgconfig |
17 | 17 | ||