Source: dacs Version: 1.4.40-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
dacs 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 work here, because the configure script does not understand --runstatedir. The next option is passing it explicitly. While that does get the build a lot further, it fails running the built dacsacl during make install. Possibly, that can be replaced with the dacsacl from a build architecture dacs, but I don't know. Can you just fix the part about --host as an incremental improvement? Please close this bug when doing so despite dacs continuing to ftcbfs. Helmut
diff --minimal -Nru dacs-1.4.40/debian/changelog dacs-1.4.40/debian/changelog --- dacs-1.4.40/debian/changelog 2019-02-19 14:08:41.000000000 +0100 +++ dacs-1.4.40/debian/changelog 2020-09-25 20:23:58.000000000 +0200 @@ -1,3 +1,10 @@ +dacs (1.4.40-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Improve cross building: Pass --host to configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 25 Sep 2020 20:23:58 +0200 + dacs (1.4.40-2) unstable; urgency=medium [ Ondřej Nový ] diff --minimal -Nru dacs-1.4.40/debian/rules dacs-1.4.40/debian/rules --- dacs-1.4.40/debian/rules 2018-03-12 09:56:10.000000000 +0100 +++ dacs-1.4.40/debian/rules 2020-09-25 20:23:58.000000000 +0200 @@ -8,6 +8,7 @@ PKG_LIBDACS := $(shell grep -E '^Package: libdacs[0-9]+' debian/control |\ awk '{print $$2}') +include /usr/share/dpkg/architecture.mk DPKG_EXPORT_BUILDFLAGS=1 include /usr/share/dpkg/buildflags.mk @@ -42,6 +43,8 @@ set -e ;\ cd src ;\ ./configure \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --host=$(DEB_HOST_GNU_TYPE) \ --prefix=/usr \ --localstatedir=/var \ --disable-prefix-check \