Source: vile Version: 9.8t-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
vile fails to cross build from source, because it does not pass --host to ./configure. The easiest way of fixing that - using dh_auto_configure - makes vile cross buildable. Please consider applying the attached patch. Helmut
diff --minimal -Nru vile-9.8t/debian/changelog vile-9.8t/debian/changelog --- vile-9.8t/debian/changelog 2019-07-21 09:21:26.000000000 +0200 +++ vile-9.8t/debian/changelog 2019-07-24 20:52:49.000000000 +0200 @@ -1,3 +1,10 @@ +vile (9.8t-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass --host to ./configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 24 Jul 2019 20:52:49 +0200 + vile (9.8t-2) unstable; urgency=medium * Change build dependency from flex-old back to flex (closes: #932560). diff --minimal -Nru vile-9.8t/debian/rules vile-9.8t/debian/rules --- vile-9.8t/debian/rules 2018-11-13 12:32:14.000000000 +0100 +++ vile-9.8t/debian/rules 2019-07-24 20:52:49.000000000 +0200 @@ -9,22 +9,17 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all -include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/buildflags.mk -ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) - CONFARGS = --host=$(DEB_HOST_GNU_TYPE) -endif - -configure = ../../configure \ - --prefix=/usr \ - --mandir='$$(prefix)/share/man' \ +configure_flags = \ + --libdir='$${prefix}/lib' \ --with-app-defaults=/etc/X11/app-defaults \ --with-locale \ --with-loadable-filters=all \ --disable-rpath-hack \ --disable-stripping \ - $(shell dpkg-buildflags --export=configure) + $(shell dpkg-buildflags --export=configure) \ + --with-perl xshell = x-terminal-emulator -e /usr/share/vile/xshell.sh @@ -41,8 +36,7 @@ dh_update_autotools_config # Configure vile - mkdir -p t/vile - cd t/vile; $(configure) --with-perl + dh_auto_configure --builddirectory=t/vile -- $(configure_flags) # Build vile, vile-common, vile-filters $(MAKE) -C t/vile all vile-perl-api.doc @@ -55,8 +49,8 @@ done) # Configure xvile - mkdir -p t/xvile - cd t/xvile; $(configure) --with-perl --with-xpm --with-screen=Xaw \ + dh_auto_configure --builddirectory=t/xvile -- $(configure_flags) \ + --with-xpm --with-screen=Xaw \ --with-pixmapdir='$$(prefix)/share/pixmaps' \ --with-icondir='$$(prefix)/share/icons' \ --with-icon-theme=hicolor