From d802d404b4ec6cecbd3b36f0d804979614d59b80 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 24 Sep 2016 15:16:59 +0200 Subject: [PATCH] rules: Do not cripple include files in collectd-dev when patching them. Thanks to Scott Talbert for reporting this. Closes: #827759 --- debian/changelog | 2 ++ debian/rules | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0e0ba15..71f8a66 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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. diff --git a/debian/rules b/debian/rules index 078243f..e26fb54 100755 --- a/debian/rules +++ b/debian/rules @@ -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 ) -- 2.30.2