tags 515110 + patch thanks On 2009-03-18 15:07 +0100, LaMont Jones wrote:
> tag 515110 + wontfix > severity 515110 wishlist > -- > > It is perfectly reasonable to ask the kernel what we are, and build > accordingly. The kernel information is unreliable, it is better to use dpkg-architecture and pass its output to 'configure'. Here is a patch that fixes the FTBFS and should also enable cross-compilation: --8<---------------cut here---------------start------------->8--- diff -u bind9-9.5.1.dfsg.P1/debian/rules bind9-9.5.1.dfsg.P1/debian/rules --- bind9-9.5.1.dfsg.P1/debian/rules +++ bind9-9.5.1.dfsg.P1/debian/rules @@ -11,6 +11,9 @@ endif export arch = $(DEB_HOST_ARCH) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) DEBUG = -g endif @@ -27,6 +30,8 @@ configure-stamp: dh_testdir ./configure --prefix=/usr \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --host=$(DEB_HOST_GNU_TYPE) \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --sysconfdir=/etc/bind \ --8<---------------cut here---------------end--------------->8--- Better still, report the failure upstream, since i386 userland and x86_64 kernel is a valid combination that should work. > Given the valid solution of using linux32, I don't see that this is > even a bug. Leaving it open anyway, but won't be fixing it. So that the bind9 will eventually FTBFS on puccini? Great. :-/ Regards, Sven -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org