From: Helmut Grohne Date: Sun, 26 Dec 2021 00:59:02 +0000 (+0000) Subject: debian/rules: Fix FTCBFS: Use host tools provided from dpkg X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=2a0cfd6070829d4da0fdb3c8980369c7ee27cd39;hp=bea36a608f028f67d4c7f65ef7ea6a55945e0b93;p=userv.git debian/rules: Fix FTCBFS: Use host tools provided from dpkg Use host tools provided from dpkg's buildtools.mk. Closes: #985998 Signed-off-by: Ian Jackson --- diff --git a/debian/rules b/debian/rules index 67c5271..65c44fc 100755 --- a/debian/rules +++ b/debian/rules @@ -5,8 +5,11 @@ package=userv t=debian/tmp +DPKG_EXPORT_BUILDTOOLS=1 +include /usr/share/dpkg/buildtools.mk + ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTOPTS= LDFLAGS=-s INSTALL_PROGRAM='install -c -s' + INSTOPTS= LDFLAGS=-s INSTALL_PROGRAM='install -c -s --strip-program=$(STRIP)' else INSTOPTS= INSTALL_PROGRAM='install -c' endif