Browse code

pkg/deb: fix dh_strip

Victor Seva authored on 15/06/2014 12:59:01
Showing 5 changed files
... ...
@@ -40,3 +40,10 @@ override_dh_auto_install:
40 40
 
41 41
 override_dh_strip:
42 42
 	dh_strip --dbg-package=sems-dbg
43
+	# those binaries aren't automatically stripped
44
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch && \
45
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
46
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch
47
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos && \
48
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
49
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos
... ...
@@ -40,3 +40,10 @@ override_dh_auto_install:
40 40
 
41 41
 override_dh_strip:
42 42
 	dh_strip --dbg-package=sems-dbg
43
+	# those binaries aren't automatically stripped
44
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch && \
45
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
46
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch
47
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos && \
48
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
49
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos
... ...
@@ -40,3 +40,10 @@ override_dh_auto_install:
40 40
 
41 41
 override_dh_strip:
42 42
 	dh_strip --dbg-package=sems-dbg
43
+	# those binaries aren't automatically stripped
44
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch && \
45
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
46
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch
47
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos && \
48
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
49
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos
... ...
@@ -40,3 +40,10 @@ override_dh_auto_install:
40 40
 
41 41
 override_dh_strip:
42 42
 	dh_strip --dbg-package=sems-dbg
43
+	# those binaries aren't automatically stripped
44
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch && \
45
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
46
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch
47
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos && \
48
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
49
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos
... ...
@@ -40,3 +40,10 @@ override_dh_auto_install:
40 40
 
41 41
 override_dh_strip:
42 42
 	dh_strip --dbg-package=sems-dbg
43
+	# those binaries aren't automatically stripped
44
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch && \
45
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
46
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch
47
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos && \
48
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
49
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos