Bug#960511: antop FTCBFS: builds for the build architecture
Source: sntop
Version: 1.4.3-5
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
sntop fails to cross build from source, because it does not pass --host
to ./configure. The easiest way of fixing that - using dh_auto_configure
- does not fix this, because the configure script is so old that it
doesn't understand the flag. Regenerating it from the configure.in
(thanks Adrian) makes it work. Please consider applying the attached
patch.
Helmut
diff -u sntop-1.4.3/debian/changelog sntop-1.4.3/debian/changelog
--- sntop-1.4.3/debian/changelog
+++ sntop-1.4.3/debian/changelog
@@ -1,3 +1,11 @@
+sntop (1.4.3-6) UNRELEASED; urgency=medium
+
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_configure pass --host to ./configure.
+ + autoreconf.
+
+ -- Helmut Grohne <helmut@subdivi.de> Wed, 13 May 2020 14:19:16 +0200
+
sntop (1.4.3-5) unstable; urgency=low
* QA upload.
diff -u sntop-1.4.3/debian/control sntop-1.4.3/debian/control
--- sntop-1.4.3/debian/control
+++ sntop-1.4.3/debian/control
@@ -2,7 +2,7 @@
Section: net
Priority: optional
Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: debhelper (>= 7), libncurses5-dev, quilt (>= 0.40)
+Build-Depends: debhelper (>= 7), dh-autoreconf, libncurses5-dev, quilt (>= 0.40)
Homepage: http://sourceforge.net/projects/sntop
Standards-Version: 3.8.0
diff -u sntop-1.4.3/debian/rules sntop-1.4.3/debian/rules
--- sntop-1.4.3/debian/rules
+++ sntop-1.4.3/debian/rules
@@ -11,8 +11,8 @@
configure-stamp: patch
dh_testdir
# Commands to configure the package.
- ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
- --infodir=\$${prefix}/share/info --sysconfdir=/etc
+ dh_autoreconf
+ dh_auto_configure
touch configure-stamp
build: configure-stamp build-stamp
@@ -28,6 +28,7 @@
# Add here commands to clean up after the build process.
# Not enough: $(MAKE) clean
rm -f sntop config.cache config.status config.log sntop.o getopt_long.o
+ dh_autoreconf_clean
dh_clean
install: build
Reply to: