Code

rules: Do not cripple include files in collectd-dev when patching them.
authorSebastian Harl <sh@tokkee.org>
Sat, 24 Sep 2016 13:16:59 +0000 (15:16 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 24 Sep 2016 13:16:59 +0000 (15:16 +0200)
Thanks to Scott Talbert for reporting this.
Closes: #827759
debian/changelog
debian/rules

index 0e0ba1507ee5491e3ff637c81accfe240c779849..71f8a66e22bda0b62ab0d51d3f231bed1c3677de 100644 (file)
@@ -18,6 +18,8 @@ collectd (5.6.0-1) UNRELEASED; urgency=medium
     - Disable cpusleep plugin on non-Linux.
     - Disable xencpu plugin except on amd64, arm64, armhf, and i386.
     - Disable the zone plugin.
+    - Do not cripple include files in collectd-dev when patching them; thanks
+      to Scott Talbert for reporting this (Closes: #827759).
   * debian/control:
     - Build-depend on libgps-dev: Needed by the new gps plugin.
     - Build-depend on liblua5.3-dev: Needed by the new lua plugin.
index 078243f2ad1bc7abfd5cae5e381859310a3a1f4b..e26fb5465d616911dd21f9d6cf0f4946a27b2d97 100755 (executable)
@@ -230,7 +230,7 @@ install-indep:
                        libname=$$(basename $$lib); \
                        fullpath=$$(echo $$lib | sed -r -e 's,^\./,collectd/,'); \
                        for dir in $$(find . -mindepth 1 -type d); do \
-                               sed -r -i -e "s,(include\s+)\".*$$libname\",\1\"$$fullpath\"," $$dir/*.h; \
+                               sed -r -i -e "s,(include\s+)\".*\<$$libname\",\1\"$$fullpath\"," $$dir/*.h; \
                        done; \
                done )