Source: chrony
Version: 3.3-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

chrony fails to cross build from source, because it uses the build
architecture compiler. The configure script expects cross builders to
supply a CC variable and feed uname results via --host-*. Since the
Debian package is only built for linux-any, We can pass
--host-system=Linux and ignore the other values as they are not relevant
on Linux. The attached patch implements that and makes chrony cross
buildable. Please consider applying it.

Helmut
--- chrony-3.3/debian/changelog
+++ chrony-3.3/debian/changelog
@@ -1,3 +1,10 @@
+chrony (3.3-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass CC to make and set --host-system. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 16 Apr 2018 22:04:26 +0200
+
 chrony (3.3-1) unstable; urgency=medium
 
   * Import upstream version 3.3:
--- chrony-3.3/debian/rules
+++ chrony-3.3/debian/rules
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+-include /usr/share/dpkg/buildtools.mk
+export CC
+
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 BASE=debian/chrony
@@ -9,6 +12,7 @@
 
 override_dh_auto_configure:
        dh_auto_configure --  --mandir=/usr/share/man \
+               --host-system=Linux \
                --sysconfdir=/etc/chrony \
                --without-readline \
                --with-user=_chrony \

Reply via email to