Source: ondir Version: 0.2.3+git0.55279f03-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
ondir fails to cross build from source, because it uses the build architecture compiler. Normally, the solution is using dh_auto_build, but here that's already the case and the issue arises from overriding CC=cc. If you want to support CC as an environment variable, please use dpkg's buildtools.mk. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru ondir-0.2.3+git0.55279f03/debian/changelog ondir-0.2.3+git0.55279f03/debian/changelog --- ondir-0.2.3+git0.55279f03/debian/changelog 2016-12-22 13:30:22.000000000 +0100 +++ ondir-0.2.3+git0.55279f03/debian/changelog 2021-06-18 07:25:07.000000000 +0200 @@ -1,3 +1,10 @@ +ondir (0.2.3+git0.55279f03-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dpkg's buildtools.mk initialize CC. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 18 Jun 2021 07:25:07 +0200 + ondir (0.2.3+git0.55279f03-1) unstable; urgency=medium * Initial release (Closes: #846237) diff --minimal -Nru ondir-0.2.3+git0.55279f03/debian/rules ondir-0.2.3+git0.55279f03/debian/rules --- ondir-0.2.3+git0.55279f03/debian/rules 2016-12-22 13:30:22.000000000 +0100 +++ ondir-0.2.3+git0.55279f03/debian/rules 2021-06-18 07:25:05.000000000 +0200 @@ -5,7 +5,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CPPFLAGS_MAINT_APPEND = -DVERSION=\"$(VERSION)\" -DGLOBAL_CONF=\"/etc/onddirrc\" -CC ?= cc +-include /usr/share/dpkg/buildtools.mk CFLAGS_FOR_MAKEFILE=$(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS) LDFLAGS_FOR_MAKEFILE=$(shell dpkg-buildflags --get LDFLAGS)