From: Sebastian Harl Date: Sat, 26 Apr 2014 14:37:47 +0000 (+0200) Subject: rules: Prepend collectd/core to collectd's header files. X-Git-Tag: collectd-5.4.1-2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=617e87bb6a573607c037ae1d5e91cd0080db63d7;p=pkg-collectd.git rules: Prepend collectd/core to collectd's header files. Thanks to Sergio Jimenez for reporting this. Closes: #739516 --- 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