Source: snort Version: 2.9.7.0-5 Tags: patch User: helm...@debian.org Usertags: rebootstrap
snort fails to cross build from source, because it configures for the build architecture. The easiest way of passing the relevant --host flag is using dh_auto_configure. The attached patch implements that. It doesn't make snort cross build as there are subsequent failures to be sorted out. Please consider applying the patch anyway and close this bug when doing so. Helmut
diff --minimal -Nru snort-2.9.7.0/debian/changelog snort-2.9.7.0/debian/changelog --- snort-2.9.7.0/debian/changelog 2015-06-30 00:55:04.000000000 +0200 +++ snort-2.9.7.0/debian/changelog 2018-06-27 19:29:21.000000000 +0200 @@ -1,3 +1,11 @@ +snort (2.9.7.0-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Improve cross buiding: Let dh_auto_configure pass --host to ./configure. + (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 27 Jun 2018 19:29:21 +0200 + snort (2.9.7.0-5) unstable; urgency=medium * debian/control: Depend on perl, not perl-modules (Closes: #779126) diff --minimal -Nru snort-2.9.7.0/debian/rules snort-2.9.7.0/debian/rules --- snort-2.9.7.0/debian/rules 2014-12-12 01:55:55.000000000 +0100 +++ snort-2.9.7.0/debian/rules 2018-06-27 19:29:17.000000000 +0200 @@ -27,9 +27,8 @@ export CFLAGS -CONFFLAGS= --prefix=/usr \ +CONFFLAGS= \ --bindir=\$$\{exec_prefix\}/sbin \ - --mandir=\$$\{exec_prefix\}/share/man \ --enable-zlib \ --enable-ipv6 \ --enable-gre \ @@ -76,7 +75,7 @@ dh_testdir dh_autoreconf # Standard package configuration: - ./configure $(CONFFLAGS) + dh_auto_configure -- $(CONFFLAGS) touch $@ # Basic 'flavor' package