Source: cln Version: 1.3.4-1 Tags: patch User: [email protected] Usertags: rebootstrap
cln fails to cross build from source, because it uses an ancient and now unsupported way of passing the host architecture to ./configure directly. Replacing that with --build and --host and adding support for DEB_BUILD_OPTIONS=nocheck makes a cross build succeed. Please consider applying the attached patch. Helmut
diff --minimal -Nru cln-1.3.4/debian/changelog cln-1.3.4/debian/changelog --- cln-1.3.4/debian/changelog 2014-10-16 07:45:53.000000000 +0200 +++ cln-1.3.4/debian/changelog 2016-10-02 06:19:21.000000000 +0200 @@ -1,3 +1,12 @@ +cln (1.3.4-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Pass --build and --host to ./configure. + + Support DEB_BUILD_OPTIONS=nocheck. + + -- Helmut Grohne <[email protected]> Sun, 02 Oct 2016 06:18:58 +0200 + cln (1.3.4-1) unstable; urgency=low * New upstream release. (Closes: #748325) diff --minimal -Nru cln-1.3.4/debian/rules cln-1.3.4/debian/rules --- cln-1.3.4/debian/rules 2014-06-01 11:53:22.000000000 +0200 +++ cln-1.3.4/debian/rules 2016-10-02 06:20:15.000000000 +0200 @@ -39,7 +39,7 @@ build-arch: debian/autoreconf-stamp dh_testdir - ./configure --prefix=/usr `dpkg-architecture -qDEB_HOST_GNU_TYPE` CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" + ./configure --prefix=/usr --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ${MAKE} (cd doc; ${MAKE} cln.html) touch build @@ -61,8 +61,10 @@ dh_testdir dh_testroot dh_installdirs +ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) # I want to see what the buildd logs of the different architectures say: -${MAKE} check +endif ${MAKE} install prefix=${CURDIR}/debian/tmp/usr bindir=${CURDIR}/debian/pi/usr/bin mandir=${CURDIR}/debian/pi/usr/share/man datadir=${CURDIR}/debian/libcln-dev/usr/share ${MAKE} install-html prefix=${CURDIR}/debian/libcln-dev/usr htmldir=${CURDIR}/debian/libcln-dev/usr/share/doc/libcln-dev/html # This installs into libdir, but we must not set libdir because it affects the .la file:

