From 68cbeb575a53d1e4f4cc8d372bb9409b3ca4cb48 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 11 Jun 2014 11:12:10 +0200 Subject: [PATCH] MT#7431 Force strip getarch + getos files in ngcp-sems-libsems1-dev Addressing: | E: ngcp-sems-libsems1-dev: unstripped-binary-or-object usr/include/sems/compat/getarch | E: ngcp-sems-libsems1-dev: unstripped-binary-or-object usr/include/sems/compat/getos dh_strip doesn't work as reliable as lintian (e.g. see #35733 and #468333 in Debian's BTS), so instruct debian/rules to explicitly strip those files. --- debian/rules | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/rules b/debian/rules index e0a33a9a..1d3bfb7f 100644 --- a/debian/rules +++ b/debian/rules @@ -44,3 +44,10 @@ override_dh_auto_install: override_dh_strip: dh_strip --dbg-package=$(APP_NAME)-dbg + # MT#7431 those binaries aren't automatically stripped + test -r $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getarch && \ + strip --remove-section=.comment --remove-section=.note --strip-unneeded \ + $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getarch + test -r $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getos && \ + strip --remove-section=.comment --remove-section=.note --strip-unneeded \ + $(CURDIR)/debian/ngcp-sems-libsems1-dev/usr/include/sems/compat/getos