Source: dvidvi
Version: 1.0-8etch2.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dvidvi fails to cross build from source, because it uses the build
architecture compiler and thus fails stripping the wrong architecture
executable. Switching to triplet-prefixed tools fixes the cross build.
Please consider applying the attached patch.

Helmut
diff -u dvidvi-1.0/debian/changelog dvidvi-1.0/debian/changelog
--- dvidvi-1.0/debian/changelog
+++ dvidvi-1.0/debian/changelog
@@ -1,3 +1,10 @@
+dvidvi (1.0-8etch2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use triplet-prefixed compiler (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 06 Nov 2016 06:21:17 +0100
+
 dvidvi (1.0-8etch2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u dvidvi-1.0/debian/rules dvidvi-1.0/debian/rules
--- dvidvi-1.0/debian/rules
+++ dvidvi-1.0/debian/rules
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
 CFLAGS := -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
 
 build: build-arch build-indep

Reply via email to