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 <[email protected]>
---
 pkg/debian/control | 2 +-
 pkg/debian/rules   | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

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 <[email protected]>
-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
-- 
2.5.0

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to