Code

rules: Prepend collectd/core to collectd's header files.
authorSebastian Harl <sh@tokkee.org>
Sat, 26 Apr 2014 14:37:47 +0000 (16:37 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 26 Apr 2014 14:37:47 +0000 (16:37 +0200)
Thanks to Sergio Jimenez for reporting this.
Closes: #739516
debian/changelog
debian/rules

index d33aaeef0f426a109c7261af7becbd726c6774f3..8dc89bbdabdceca1e6131e3749a8dc1a78dcfaab 100644 (file)
@@ -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:
index 044d8fc2a1d934cd35cddbb33b9cd376f26fe52f..094a50b908dfb42a07e2f51dfdc971f01745fa66 100755 (executable)
@@ -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