From 617e87bb6a573607c037ae1d5e91cd0080db63d7 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 26 Apr 2014 16:37:47 +0200 Subject: [PATCH] rules: Prepend collectd/core to collectd's header files. Thanks to Sergio Jimenez for reporting this. Closes: #739516 --- debian/changelog | 2 ++ debian/rules | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index d33aaee..8dc89bb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ collectd (5.4.1-2) UNRELEASED; urgency=medium c.f. https://bugs.debian.org/745902 (Closes: #745894). - Added INSTALL_BASE= to perl options; else, modules are installed into $HOME. + - Prepend collectd/core to collectd's header files; thanks to Sergio + Jimenez for reporting this (Closes: #739516). * debian/control: - Drop build dependency on libvarnishapi-dev. * debian/patches: diff --git a/debian/rules b/debian/rules index 044d8fc..094a50b 100755 --- a/debian/rules +++ b/debian/rules @@ -216,6 +216,12 @@ install-indep: dh_clean -k dh_installdirs -i dh_install -i + + # update include path for collectd header files + sed -r -i -e 's/include "(.*)"/include "collectd\/core\/\1"/' \ + $(CURDIR)/debian/collectd-dev/usr/include/collectd/core/* + sed -r -i -e 's/"collectd\/core\/(liboconfig\/.*)"/"collectd\/\1"/' \ + $(CURDIR)/debian/collectd-dev/usr/include/collectd/core/* install-arch: build dh_testdir -- 2.30.2