Source: avahi Version: 0.6.32-2 Tags: patch User: [email protected] Usertags: rebootstrap
avahi fails to cross build from source. Since xmltoman became M-A:foreign. avahi's Build-Depends are almost installable. Its python dependencies still fail with postinst errors. For cross building, one typically wants libpython from the host architecture and the rest from the build architecture. After annotating all of those dependencies, ./configure fails figuring out the target distribution. After telling it that we build for Debian, it cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru avahi-0.6.32/debian/changelog avahi-0.6.32/debian/changelog --- avahi-0.6.32/debian/changelog 2017-01-23 09:41:58.000000000 +0100 +++ avahi-0.6.32/debian/changelog 2017-08-29 13:24:47.000000000 +0200 @@ -1,3 +1,14 @@ +avahi (0.6.32-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Make python build-depends work with cross compilation. Executable + and modules are annotated with :native. Only libpython comes from the + host architecture. + + Tell ./configure that we are Debian. + + -- Helmut Grohne <[email protected]> Tue, 29 Aug 2017 13:24:47 +0200 + avahi (0.6.32-2) unstable; urgency=medium [ Christian Hofstaedtler ] diff --minimal -Nru avahi-0.6.32/debian/control avahi-0.6.32/debian/control --- avahi-0.6.32/debian/control 2017-01-23 09:41:58.000000000 +0100 +++ avahi-0.6.32/debian/control 2017-08-29 13:24:45.000000000 +0200 @@ -21,10 +21,11 @@ libexpat-dev, libdaemon-dev (>= 0.11), libdbus-1-dev (>= 0.60), - python-all-dev (>= 2.6.6-3~), - python-gdbm (>= 2.4.3), - python-dbus <!stage1>, - python-gtk2 (>= 2.8.6-2) <!stage1>, + python-all-dev:any (>= 2.6.6-3~), + libpython-all-dev (>= 2.6.6-3~), + python-gdbm:native (>= 2.4.3), + python-dbus:native <!stage1>, + python-gtk2:native (>= 2.8.6-2) <!stage1>, libqt4-dev <!stage1>, xmltoman, intltool (>= 0.35.0) diff --minimal -Nru avahi-0.6.32/debian/rules avahi-0.6.32/debian/rules --- avahi-0.6.32/debian/rules 2017-01-23 09:41:58.000000000 +0100 +++ avahi-0.6.32/debian/rules 2017-08-29 13:24:47.000000000 +0200 @@ -3,7 +3,7 @@ %: dh $@ --with autotools-dev,python2,systemd,autoreconf -DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) +include /usr/share/dpkg/architecture.mk ifneq (linux,$(DEB_HOST_ARCH_OS)) CONFFLAGS += \ @@ -26,6 +26,10 @@ --enable-gtk3 endif +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +CONFFLAGS += --with-distro=debian +endif + override_dh_auto_configure: dh_auto_configure -- $(CONFFLAGS) \ --enable-compat-libdns_sd \

