Source: taggrepper Version: 0.05-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
taggrepper fails to cross build from source, because it uses plain strip in debian/rules. The attached patch fixes that. However consider using debehlper and dh_strip to avoid similar problems in future. Helmut
diff --minimal -Nru taggrepper-0.05/debian/changelog taggrepper-0.05/debian/changelog --- taggrepper-0.05/debian/changelog 2016-12-04 06:21:34.000000000 +0100 +++ taggrepper-0.05/debian/changelog 2019-04-30 05:54:51.000000000 +0200 @@ -1,3 +1,10 @@ +taggrepper (0.05-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the strip from dpkg's buildtools.mk. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 30 Apr 2019 05:54:51 +0200 + taggrepper (0.05-3) unstable; urgency=medium * Add Valerie Young's patch to fix directory permissions. diff --minimal -Nru taggrepper-0.05/debian/rules taggrepper-0.05/debian/rules --- taggrepper-0.05/debian/rules 2016-12-04 06:20:22.000000000 +0100 +++ taggrepper-0.05/debian/rules 2019-04-30 05:54:48.000000000 +0200 @@ -5,8 +5,9 @@ # %: # dh $@ -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +include /usr/share/dpkg/architecture.mk +-include /usr/share/dpkg/buildtools.mk +STRIP ?= strip export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s) @@ -95,7 +96,7 @@ gzip -9nv $(PACKAGE_DIR)/usr/share/man/*/* # Strip binaries ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - strip -R.note -R.comment $(PACKAGE_DIR)/usr/bin/* + $(STRIP) -R.note -R.comment $(PACKAGE_DIR)/usr/bin/* endif dpkg-shlibdeps $(PACKAGE_DIR)/usr/bin/taggrepper $(INSTALL_DIR) $(PACKAGE_DIR)/DEBIAN