Skip to contentSkip to conversation

collectd: upgrade to 5.5.0

PATCH New [email protected] 1 participant 1 message Aug 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 collectd: upgrade to 5.5.0

From: Roy Li <[email protected]>

1. remove two patch glibc-2.20-compatiblity.patch and 0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch, which have been merged into
2. update collectd-version.patch
3. redefine the collectd dependence
4. update the license, lots of components have been relicensed to the MIT license, and The majority of plugins is licensed either under the "MIT License" or the "GNU General Public License"
4. update the checksum

---
 ...ure-size_t-portability-in-DEBUG-statement.patch |  30 ------
 .../collectd/0001-redefine-the-dependence.patch    |  28 ++++++
 .../collectd/collectd/collectd-version.patch       |  16 ++--
 .../collectd/glibc-2.20-compatiblity.patch         | 102 ---------------------
 .../{collectd_5.4.1.bb => collectd_5.5.0.bb}       |  12 +--
 5 files changed, 41 insertions(+), 147 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch
 create mode 100644 meta-oe/recipes-extended/collectd/collectd/0001-redefine-the-dependence.patch
 delete mode 100644 meta-oe/recipes-extended/collectd/collectd/glibc-2.20-compatiblity.patch
 rename meta-oe/recipes-extended/collectd/{collectd_5.4.1.bb => collectd_5.5.0.bb} (90%)
meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch deleted +0 -30
deleted file mode 100644
index 52b9a86..0000000
@@ -1,30 +0,0 @@
-From f6c89c17955223bf8c99a901ca6f901b83fa521f Mon Sep 17 00:00:00 2001
-From: Marc Fournier <[email protected]>
-Date: Wed, 3 Dec 2014 16:15:28 +0100
-Subject: [PATCH] netlink: ensure size_t portability in DEBUG() statement
-
-This prevents the following error when building on 32bit systems with
-gcc 4.7.2:
-
-netlink.c: In function 'ir_read':
-netlink.c:783:7: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Werror=format]
----
- src/netlink.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/netlink.c b/src/netlink.c
-index 422dc8c..3c4642c 100644
---- a/src/netlink.c
-+++ b/src/netlink.c
-@@ -683,7 +683,7 @@ static int ir_read (void)
-         continue;
-       }
- 
--      DEBUG ("netlink plugin: ir_read: querying %s from %s (%lu).",
-+      DEBUG ("netlink plugin: ir_read: querying %s from %s (%zu).",
-           type_name[type_index], iflist[ifindex], ifindex);
- 
-       nlh = mnl_nlmsg_put_header (buf);
--- 
-2.1.4
-
meta-oe/recipes-extended/collectd/collectd/0001-redefine-the-dependence.patch new file +28 -0
new file mode 100644
index 0000000..ef6afad
@@ -0,0 +1,28 @@
+[PATCH] define the collectd dependence
+
+Upstream-Status: Pending
+
+libavltree.la libcommon.la libheap.la are created dynamically, and in LDADD,
+but not in DEPENDENCIES
+
+Signed-off-by: Roy Li <[email protected]>
+---
+ src/daemon/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
+index 10860ec..7f826e3 100644
+--- a/src/daemon/Makefile.am
++++ b/src/daemon/Makefile.am
+@@ -49,7 +49,7 @@ collectd_CPPFLAGS =  $(AM_CPPFLAGS) $(LTDLINCL)
+ collectd_CFLAGS = $(AM_CFLAGS)
+ collectd_LDFLAGS = -export-dynamic
+ collectd_LDADD = libavltree.la libcommon.la libheap.la -lm
+-collectd_DEPENDENCIES =
++collectd_DEPENDENCIES = libavltree.la libcommon.la libheap.la
+ 
+ # Link to these libraries..
+ if BUILD_WITH_LIBRT
+-- 
+1.9.1
+
meta-oe/recipes-extended/collectd/collectd/collectd-version.patch +7 -9
index 1e2b7c1..86c3f65 100644
@@ -11,21 +11,19 @@ Upstream-Status: Pending
 Signed-off-by: Paul Eggleton <[email protected]>
 
 diff --git a/version-gen.sh b/version-gen.sh
-index e344541..d1c0929 100755
+index b09be8e..2671066 100755
 --- a/version-gen.sh
 +++ b/version-gen.sh
-@@ -2,7 +2,10 @@
+@@ -2,8 +2,10 @@
  
- DEFAULT_VERSION="5.2.2.git"
+ DEFAULT_VERSION="5.5.0.git"
  
--VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
+-VERSION="`git describe 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`"
+-
 +VERSION=""
 +if test -d .git ; then
-+	VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
++	VERSION="`git describe 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`"
 +fi
- 
  if test -z "$VERSION"; then
  	VERSION="$DEFAULT_VERSION"
--- 
-1.7.10.4
-
+ fi
meta-oe/recipes-extended/collectd/collectd/glibc-2.20-compatiblity.patch deleted +0 -102

102 lines not on this page · raw message

meta-oe/recipes-extended/collectd/collectd_5.5.0.bb renamed from meta-oe/recipes-extended/collectd/collectd_5.4.1.bb +6 -6
similarity index 90%
rename from meta-oe/recipes-extended/collectd/collectd_5.4.1.bb
rename to meta-oe/recipes-extended/collectd/collectd_5.5.0.bb
index 3a566db..feda26b 100644
@@ -1,19 +1,18 @@
 SUMMARY = "Collects and summarises system performance statistics"
 DESCRIPTION = "collectd is a daemon which collects system performance statistics periodically and provides mechanisms to store the values in a variety of ways, for example in RRD files."
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+LICENSE = "GPLv2 & MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1bd21f19f7f0c61a7be8ecacb0e28854"
 
 DEPENDS = "rrdtool curl libpcap libxml2 yajl libgcrypt libtool lvm2"
 
 SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \
            file://no-gcrypt-badpath.patch \
            file://collectd-version.patch \
-           file://glibc-2.20-compatiblity.patch \
-           file://0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch \
+           file://0001-redefine-the-dependence.patch  \
            file://collectd.init \
            file://collectd.service"
-SRC_URI[md5sum] = "6f56c71c96573a7f4f7fb3bfab185974"
-SRC_URI[sha256sum] = "75452129f271cb0aad28e57f12a49070618bbb7b6a9d64cf869e8766fa2f66e0"
+SRC_URI[md5sum] = "c39305ef5514b44238b0d31f77e29e6a"
+SRC_URI[sha256sum] = "847684cf5c10de1dc34145078af3fcf6e0d168ba98c14f1343b1062a4b569e88"
 
 inherit autotools pythonnative update-rc.d pkgconfig systemd
 
@@ -43,6 +42,7 @@ PACKAGECONFIG[pinba] = "--enable-pinba,--disable-pinba,protobuf-c-native protobu
 PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt"
 PACKAGECONFIG[libesmtp] = "--with-libesmtp,--without-libesmtp,libesmtp"
 PACKAGECONFIG[libmnl] = "--with-libmnl,--without-libmnl,libmnl"
+PACKAGECONFIG[libatasmart] = "--with-libatasmart,--without-libatasmart,libatasmart"
 
 EXTRA_OECONF = " \
                 ${FPLAYOUT} \
Signature · 1 line
1.9.1