diff --minimal -Nru libidn-1.33/debian/changelog libidn-1.33/debian/changelog --- libidn-1.33/debian/changelog 2017-09-13 14:00:38.000000000 +0200 +++ libidn-1.33/debian/changelog 2017-09-13 16:49:23.000000000 +0200 @@ -1,3 +1,10 @@ +libidn (1.33-2.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Add a native build pass for help2man. (Closes: #-1) + + -- Helmut Grohne Wed, 13 Sep 2017 16:49:23 +0200 + libidn (1.33-2.1) UNRELEASED; urgency=medium * Non-maintainer upload. diff --minimal -Nru libidn-1.33/debian/rules libidn-1.33/debian/rules --- libidn-1.33/debian/rules 2017-09-13 14:00:38.000000000 +0200 +++ libidn-1.33/debian/rules 2017-09-13 16:49:23.000000000 +0200 @@ -1,28 +1,39 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk + export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS=hardening=+all +CFG_VERS = `dpkg-parsechangelog | grep ^Version: | cut -d\ -f2` + DOPACKAGES = $(shell dh_listpackages) -CONFIGURE_FLAGS := +CONFIGURE_FLAGS := \ + --with-packager=Debian \ + --with-packager-version=$(CFG_VERS) \ + --with-packager-bug-reports=https://bugs.debian.org/ \ + --disable-silent-rules ifneq ($(filter libidn11-java,$(DOPACKAGES)),) CONFIGURE_FLAGS += --enable-java else CONFIGURE_FLAGS += --disable-java endif +NATIVE = eval $$(dpkg-architecture -f -a$(DEB_BUILD_ARCH) -s); %: dh $@ --parallel --builddirectory=build --with autoreconf -CFG_VERS = `dpkg-parsechangelog | grep ^Version: | cut -d\ -f2` - override_dh_auto_configure: - dh_auto_configure -- --with-packager=Debian \ - --with-packager-version=$(CFG_VERS) \ - --with-packager-bug-reports=https://bugs.debian.org/ \ - --disable-silent-rules \ - $(CONFIGURE_FLAGS) +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) + $(NATIVE) dh_auto_configure -- $(CONFIGURE_FLAGS) + $(NATIVE) dh_auto_build + $(NATIVE) dh_auto_clean + test -f doc/idn.1 + dh_auto_configure -- $(CONFIGURE_FLAGS) HELP2MAN=true +else + dh_auto_configure -- $(CONFIGURE_FLAGS) +endif override_dh_auto_install: dh_auto_install