tags 535716 + patch
tags 535716 + pending
thanks

Dear maintainer,

This bug has been pending for some time (5 years), and needs fixing for new
ports, including arm64 which is building now:
(http://buildd.debian-ports.org/status/architecture.php?a=arm64&suite=sid).

So I've prepared an NMU for doscan (versioned as 0.3.1-3.1) and
uploaded it to DELAYED/7.

Discussion on debian-devel revealed consensus that the right way to
ensure successful builds on all new architectures was to autoreconf
packages, so that method has been used to fix this bug. This works for
all arches, even those that need libtool changes, and will continue to
work into the future without an update as each new arch comes along.
(Discussion at
https://lists.debian.org/debian-devel/2014/04/msg00383.html, thread
starting at https://lists.debian.org/debian-devel/2014/04/msg00342.html

As you can see this works fine on this package, and is a very simple
patch. Because it uses autoconf and not automake, both autotools-dev
and dh-autoconf dh_actions are needed.
diff -u doscan-0.3.1/debian/rules doscan-0.3.1/debian/rules
--- doscan-0.3.1/debian/rules
+++ doscan-0.3.1/debian/rules
@@ -26,6 +26,8 @@
 
 config.status: configure
 	dh_testdir
+	dh_autotools-dev_updateconfig
+	dh_autoreconf
 	# Add here commands to configure the package.
 	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
@@ -44,6 +46,8 @@
 
 	-$(MAKE) distclean
 
+	dh_autoreconf_clean
+	dh_autotools-dev_restoreconfig
 	dh_clean 
 
 install: build
diff -u doscan-0.3.1/debian/control doscan-0.3.1/debian/control
--- doscan-0.3.1/debian/control
+++ doscan-0.3.1/debian/control
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Florian Weimer <[email protected]>
-Build-Depends: debhelper (>= 4.0.0), libpcre3-dev
+Build-Depends: debhelper (>= 4.0.0), libpcre3-dev, dh-autoreconf, autotools-dev
 Standards-Version: 3.6.1
 
 Package: doscan
diff -u doscan-0.3.1/debian/changelog doscan-0.3.1/debian/changelog
--- doscan-0.3.1/debian/changelog
+++ doscan-0.3.1/debian/changelog
@@ -1,3 +1,10 @@
+doscan (0.3.1-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Use dh-autoreconf in build to suport new architectures (Closes: #535716)
+
+ -- Chen Baozi <[email protected]>  Fri, 06 Jun 2014 14:47:32 +0800
+
 doscan (0.3.1-3) unstable; urgency=low
 
   * Fix building with GCC 4.3.  Closes: #417158.

Reply via email to