Skip to contentSkip to conversation

collectd: upgrade to 5.5.0

PATCH Superseded [email protected] 3 participants 5 messages Aug 14, 2015 – Aug 17, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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 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}       |   9 +-
 5 files changed, 39 insertions(+), 146 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} (91%)
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..c17020a
@@ -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 +4 -5
similarity index 91%
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..1646722 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"
+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
 
Signature · 1 line
1.9.1
#1 lore raw

meta-oe/recipes-extended/collectd/collectd_5.5.0.bb line 4

Quoted 4 lines · On Fri, Aug 14, 2015 at 2:28 AM, <[email protected]> wrote:

LICENSE = "GPLv2"

meta-oe/recipes-extended/collectd/collectd_5.5.0.bb renamed from meta-oe/recipes-extended/collectd/collectd_5.4.1.bb +1 -1
-LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1bd21f19f7f0c61a7be8ecacb0e28854"

what changed in License ? Please add that info to commit msg

#2 lore raw
Quoted 8 lines · Khem Raj

meta-oe/recipes-extended/collectd/collectd_5.5.0.bb line 4

Quoted 4 lines · On Fri, Aug 14, 2015 at 2:28 AM, <[email protected]> wrote:

LICENSE = "GPLv2"

meta-oe/recipes-extended/collectd/collectd_5.5.0.bb renamed from meta-oe/recipes-extended/collectd/collectd_5.4.1.bb +1 -1
-LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1bd21f19f7f0c61a7be8ecacb0e28854"

what changed in License ? Please add that info to commit msg

OK

Signature · 2 lines
Best Reagrds,
Roy | RongQing Li
#3 lore raw
In reply to [email protected]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 14-08-15 om 11:28 schreef [email protected]:

Quoted 6 lines

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 checksum

Could you also add a PACKAGECONFIG for libatasmart? Collectd finally stopped using hddtemp and switched to libatasmart for 5.5.x.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFVzjChMkyGM64RGpERApehAJ9T5j14amJRLb4UXs4RdmmQsnAkiACgllzN 4RlxlVEPpYNKEgEcOrddAjE=
=ayit
-----END PGP SIGNATURE-----

#4 lore raw
Quoted 6 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 14-08-15 om 11:28 schreef [email protected]:

Quoted 2 lines

From: Roy Li <[email protected]>

Quoted 7 lines
Quoted 4 lines

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 checksum

Could you also add a PACKAGECONFIG for libatasmart? Collectd finally stopped using hddtemp and switched to libatasmart for 5.5.x.

OK, I will

-Roy

Quoted 10 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFVzjChMkyGM64RGpERApehAJ9T5j14amJRLb4UXs4RdmmQsnAkiACgllzN 4RlxlVEPpYNKEgEcOrddAjE=
=ayit
-----END PGP SIGNATURE-----

Signature · 2 lines
Best Reagrds,
Roy | RongQing Li