diff mbox

[2/3] pkg/debian: use dh-autoreconf by default

Message ID 1456147056-767-2-git-send-email-ricardo.salveti@linaro.org
State Accepted
Commit fd9e7f78c98e1580af4b3bf37c9c9b62f7215ea3
Headers show

Commit Message

Ricardo Salveti Feb. 22, 2016, 1:17 p.m. UTC
Since it's usually a good idea to call autoreconf when building
packages, prefer that option instead of using the pre-built autoconf
files with autotools-dev.

Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
---
 pkg/debian/control | 2 +-
 pkg/debian/rules   | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/pkg/debian/control b/pkg/debian/control
index 941e8a8..873070a 100644
--- a/pkg/debian/control
+++ b/pkg/debian/control
@@ -1,7 +1,7 @@ 
 Source: opendataplane
 Priority: optional
 Maintainer: Anders Roxell <anders.roxell@linaro.org>
-Build-Depends: debhelper (>= 9), autotools-dev, libssl-dev, doxygen,
+Build-Depends: debhelper (>= 9), dh-autoreconf, libssl-dev, doxygen,
     imagemagick, libmagickcore-6.q16-2-extra | libmagickcore-extra,
     ghostscript, asciidoc, mscgen, texlive-latex-recommended
 Standards-Version: 3.9.6
diff --git a/pkg/debian/rules b/pkg/debian/rules
index 73a921d..49c5288 100755
--- a/pkg/debian/rules
+++ b/pkg/debian/rules
@@ -1,12 +1,17 @@ 
 #!/usr/bin/make -f
 
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 DPKG_EXPORT_BUILDFLAGS = 0
 include /usr/share/dpkg/default.mk
 
-# main packaging script based on dh7 syntax
 %:
-	dh $@  --with autotools-dev
+	dh $@ --with autoreconf
+
+override_dh_autoreconf:
+	dh_autoreconf ./bootstrap
 
 override_dh_auto_configure:
 	dh_auto_configure -- --enable-static