From: Sebastian Harl Date: Fri, 25 Apr 2014 22:44:53 +0000 (+0200) Subject: Added build_ldadd patch adding ALL_LIBS to rrdcached_LDADD. X-Git-Tag: debian/1.4.8-1~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce043308de93b4f533652e345a3bf7686ad7c2a0;p=pkg-rrdtool.git Added build_ldadd patch adding ALL_LIBS to rrdcached_LDADD. This is required to ensure that rrdcached links against libglib. Build-depend on and use dh-autoreconf to rebuild the build system. --- diff --git a/debian/changelog b/debian/changelog index 8d80086..67dd8f1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,10 @@ rrdtool (1.4.8-1) UNRELEASED; urgency=medium - Added CVE-2013-2131; upstream patch fixing a format string vulnerability in rrdgraph; thanks to Henri Salo for reporting this (Closes: #708866). Raised urgency to medium for this. + * debian/patches, debian/rules, debian/control: + - Added build_ldadd; patch Makefile to pass $ALL_LIBS to rrdcached's + linker flags to ensure it's going to be linked against libglib. + - Build-depend on and use dh-autoreconf to manage the build_ldadd patch. * debian/control: - Optionally recommend fonts-dejavu-core as (the preferred) alternative to ttf-dejavu-core; thanks to Martin-Éric Racine for reporting this diff --git a/debian/patches/build_ldadd b/debian/patches/build_ldadd new file mode 100644 index 0000000..a68132c --- /dev/null +++ b/debian/patches/build_ldadd @@ -0,0 +1,13 @@ +Index: pkg-rrdtool/src/Makefile.am +=================================================================== +--- pkg-rrdtool.orig/src/Makefile.am 2014-04-26 00:39:30.566538157 +0200 ++++ pkg-rrdtool/src/Makefile.am 2014-04-26 00:40:52.842539392 +0200 +@@ -116,7 +116,7 @@ + rrdcached_SOURCES = rrd_daemon.c + rrdcached_DEPENDENCIES = librrd_th.la + rrdcached_CPPFLAGS = -DVERSION='"$(VERSION)"' -DLOCALSTATEDIR='"$(localstatedir)"' +-rrdcached_LDADD = librrd_th.la ++rrdcached_LDADD = librrd_th.la $(ALL_LIBS) + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = librrd.pc diff --git a/debian/patches/series b/debian/patches/series index 3222309..7911eca 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +build_ldadd bts428778-floating-point-exception setup.py-module-name no-rpath-for-ruby diff --git a/debian/rules b/debian/rules index 5c0aa75..390eb8d 100755 --- a/debian/rules +++ b/debian/rules @@ -72,6 +72,8 @@ ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif + dh_autoreconf + LDFLAGS="$(LINKER_FLAGS)" \ CFLAGS="$(CFLAGS)" \ RRDDOCDIR=/usr/share/doc/rrdtool \ @@ -127,6 +129,8 @@ endif rm -f src/librrd.sym rm -f config.h + dh_autoreconf_clean + dh_clean clean-python%: unpatch