From ce043308de93b4f533652e345a3bf7686ad7c2a0 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 26 Apr 2014 00:44:53 +0200 Subject: [PATCH] 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. --- debian/changelog | 4 ++++ debian/patches/build_ldadd | 13 +++++++++++++ debian/patches/series | 1 + debian/rules | 4 ++++ 4 files changed, 22 insertions(+) create mode 100644 debian/patches/build_ldadd 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 -- 2.30.2