Here's the patch I've been using locally for my pbuildd bootstrap builds (just updated from DEB_BUILD_PROFILE to DEB_BUILD_PROFILES). With it, I don't seem to have the need to mess around with avahi-discover.1 -- maybe that was in one of the excluded packages that's not being excluded in dh_installdocs in the original patch?
(Also, I think maybe there's a missing "touch" in the avahi-discover.1 line of the original patch?) -- Daniel Schepler
diff -urN avahi-0.6.31.old/debian/rules avahi-0.6.31/debian/rules --- avahi-0.6.31.old/debian/rules 2013-11-26 11:22:52.000000000 -0800 +++ avahi-0.6.31/debian/rules 2014-01-08 18:57:31.099323063 -0800 @@ -1,7 +1,14 @@ #!/usr/bin/make -f +ifneq (,$(findstring stage1,$(DEB_BUILD_PROFILES))) +DH_PACKAGE_EXCLUDES := -Npython-avahi -Navahi-discover \ + -Nlibavahi-qt4-1 -Nlibavahi-qt4-dev \ + -Nlibavahi-ui0 -Nlibavahi-ui-dev -Navahi-ui-utils \ + -Nlibavahi-ui-gtk3-0 -Nlibavahi-ui-gtk3-dev +endif + %: - dh $@ --with autotools-dev,python2,systemd,autoreconf + dh $@ --with autotools-dev,python2,systemd,autoreconf $(DH_PACKAGE_EXCLUDES) DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) @@ -13,13 +20,22 @@ # symbols, and speed up loading. export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed +ifneq (,$(findstring stage1,$(DEB_BUILD_PROFILES))) +qt_conf_flags := --disable-qt3 --disable-qt4 +gtk_conf_flags := --disable-gtk3 --disable-gtk --disable-pygtk \ + --disable-python-dbus +else +qt_conf_flags := --disable-qt3 +gtk_conf_flags := --enable-gtk3 +endif + override_dh_auto_configure: dh_auto_configure -- $(CONFFLAGS) \ --enable-compat-libdns_sd \ --disable-mono \ --disable-monodoc \ - --disable-qt3 \ - --enable-gtk3 \ + $(qt_conf_flags) \ + $(gtk_conf_flags) \ --with-systemdsystemunitdir=/lib/systemd/system override_dh_auto_build: @@ -51,10 +67,10 @@ dh_installinit -pavahi-dnsconfd -- start 16 2 3 4 5 . stop 84 0 1 6 . override_dh_installdocs: - dh_installdocs --all docs/NEWS docs/README + dh_installdocs --all $(DH_PACKAGE_EXCLUDES) docs/NEWS docs/README override_dh_strip: - dh_strip --dbg-package=avahi-dbg + dh_strip $(DH_PACKAGE_EXCLUDES) --dbg-package=avahi-dbg override_dh_autoreconf: dh_autoreconf --as-needed