Source: re
Version: 0.1-6.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

re fails to cross build from source, because it uses the build
architecture compiler. That leads to a dh_strip failure. Using a
triplet-prefixed compiler always works. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru re-0.1/debian/changelog re-0.1/debian/changelog
--- re-0.1/debian/changelog     2016-11-19 18:58:31.000000000 +0100
+++ re-0.1/debian/changelog     2017-01-06 20:16:32.000000000 +0100
@@ -1,3 +1,10 @@
+re (0.1-6.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use triplet-prefixed compiler (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 06 Jan 2017 20:16:32 +0100
+
 re (0.1-6.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru re-0.1/debian/rules re-0.1/debian/rules
--- re-0.1/debian/rules 2015-12-06 15:37:35.000000000 +0100
+++ re-0.1/debian/rules 2017-01-06 20:16:32.000000000 +0100
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 DESTDIR=./debian/re
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CXX),default)
+CXX := $(DEB_HOST_GNU_TYPE)-g++
+endif
 
 override_dh_auto_build:
        $(CXX) -fsigned-char -Wno-write-strings $(CXXFLAGS) $(LDFLAGS) 
src/re_cmd.c src/ru32call.c src/ru32cp.c src/ru32var.c src/ru32lat.c  
src/ru32fi.c src/ru32au.c src/ru32mau.c src/ru32un.c -ore

Reply via email to