Bug#895852: chrony FTCBFS: configures for the build architecture

2018-04-17 Thread Vincent Blut

Control: tags -1 pending

Hi,

On Mon, Apr 16, 2018 at 10:20:27PM +0200, Helmut Grohne wrote:

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.


I do intend to provide support for kFreeBSD in Buster though.

The attached patch implements that and makes chrony cross buildable.  
Please consider applying it.


Will do. Thanks a lot Helmut!


Helmut


Cheers,
Vincent


signature.asc
Description: PGP signature


Bug#895852: chrony FTCBFS: configures for the build architecture

2018-04-16 Thread Helmut Grohne
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   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 \