Source: debdelta
Version: 0.62
Tags: patch
User: [email protected]
Usertags: rebootstrap

debdelta fails to cross build from source, because it uses the build
architecture compiler. Letting dpkg's buildtools.mk fixes that, but then
install uses the build architecture strip. After fixing both, debdelta
cross builds successfully. Please consider applying the attached patch.

Also consider using debhelper. Using dh_strip just works with no extra
effort.

Helmut
diff --minimal -Nru debdelta-0.62/debian/changelog 
debdelta-0.62+nmu1/debian/changelog
--- debdelta-0.62/debian/changelog      2018-06-06 09:22:34.000000000 +0200
+++ debdelta-0.62+nmu1/debian/changelog 2018-08-09 05:53:03.000000000 +0200
@@ -1,3 +1,10 @@
+debdelta (0.62+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use host tools. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 09 Aug 2018 05:53:03 +0200
+
 debdelta (0.62) unstable; urgency=medium
 
   * update Vcs-git to point to salsa
diff --minimal -Nru debdelta-0.62/debian/rules debdelta-0.62+nmu1/debian/rules
--- debdelta-0.62/debian/rules  2018-06-06 09:22:34.000000000 +0200
+++ debdelta-0.62+nmu1/debian/rules     2018-08-09 05:52:22.000000000 +0200
@@ -19,9 +19,10 @@
 MO_FILES := $(patsubst %.po,%.mo,$(PO_FILES))
 LANGS := $(patsubst po/%.po,%,$(PO_FILES))
 
-CC = gcc
-
-INSTALL_PROGRAM = install
+include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
+STRIP = $(DEB_HOST_GNU_TYPE)-strip
+INSTALL_PROGRAM = install --strip-program=$(STRIP)
 
 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)

Reply via email to