Source: lv Version: 4.51-3 Tags: patch User: [email protected] Usertags: rebootstrap
lv fails to cross build from source, because it configures for the build architecture by not passing the relevant --host flag. Deferring that task to dh_auto_configure is possible as soon as we use a builddirectory other than ".". Please consider applying the attached patch. Helmut
diff --minimal -Nru lv-4.51/debian/changelog lv-4.51/debian/changelog --- lv-4.51/debian/changelog 2016-10-04 12:55:14.000000000 +0200 +++ lv-4.51/debian/changelog 2017-07-01 08:38:02.000000000 +0200 @@ -1,3 +1,11 @@ +lv (4.51-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + + Let dh_auto_configure pass --host to ./configure + + For that to work, use a different builddirectory than . + + -- Helmut Grohne <[email protected]> Sat, 01 Jul 2017 08:38:02 +0200 + lv (4.51-3) unstable; urgency=medium * New maintainer (Closes: #839674) diff --minimal -Nru lv-4.51/debian/rules lv-4.51/debian/rules --- lv-4.51/debian/rules 2016-10-04 08:46:03.000000000 +0200 +++ lv-4.51/debian/rules 2017-07-01 08:38:02.000000000 +0200 @@ -10,18 +10,17 @@ CFLAGS += $(CPPFLAGS) %: - dh $@ --with autoreconf + dh $@ --with autoreconf --sourcedirectory=src --builddirectory=builddir override_dh_auto_configure: - src/configure \ - --prefix=/usr --libdir=/usr/share --enable-fastio + dh_auto_configure -- --libdir=/usr/share --enable-fastio override_dh_auto_install: install -d -m 755 $(CURDIR)/debian/lv/usr/bin \ $(CURDIR)/debian/lv/usr/share/lv \ $(CURDIR)/debian/lv/usr/share/man/man1 \ $(CURDIR)/debian/lv/usr/share/doc - install -m 755 lv $(CURDIR)/debian/lv/usr/bin/lv + install -m 755 builddir/lv $(CURDIR)/debian/lv/usr/bin/lv install -m 644 lv.hlp $(CURDIR)/debian/lv/usr/share/lv/lv.hlp install -m 644 lv.1 $(CURDIR)/debian/lv/usr/share/man/man1 ln -sf lv debian/lv/usr/bin/lgrep

