Source: xdms
Version: 1.3.2-6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

xdms fails to cross build from source, because it uses the build
architecture compiler. The upstream ./configure expects a CC variable.
The attached patch supplies it from dpkg's buildtools.mk. Please
consider applying it.

Helmut
diff --minimal -Nru xdms-1.3.2/debian/changelog xdms-1.3.2/debian/changelog
--- xdms-1.3.2/debian/changelog 2013-06-06 16:43:06.000000000 +0200
+++ xdms-1.3.2/debian/changelog 2019-05-05 11:43:20.000000000 +0200
@@ -1,3 +1,11 @@
+xdms (1.3.2-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply a CC to ./configure.
+    (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 05 May 2019 11:43:20 +0200
+
 xdms (1.3.2-6) unstable; urgency=low
 
   * [ff9593da] Fix indentation in debian/copyright file.
diff --minimal -Nru xdms-1.3.2/debian/rules xdms-1.3.2/debian/rules
--- xdms-1.3.2/debian/rules     2013-03-06 11:08:05.000000000 +0100
+++ xdms-1.3.2/debian/rules     2019-05-05 11:43:09.000000000 +0200
@@ -2,18 +2,14 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
+-include /usr/share/dpkg/buildtools.mk
 
 config.status: configure
        dh_testdir
        dh_autotools-dev_updateconfig
-       CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --prefix=/usr 
--package-prefix=$(CURDIR)/debian/xdms
+       CC=$(CC) CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --prefix=/usr 
--package-prefix=$(CURDIR)/debian/xdms
 
 build: build-arch build-indep
 build-arch: build-stamp

Reply via email to