Source: shim Version: 15+1533136590.3beb971-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
shim fails to cross build from source, because some tools (notably ld) are not translated. dh_auto_build only passes specific, frequently used tools, but shim needs more and makes that easy via the CROSS_COMPILE variable, which debhelper does not set. After setting it manually, shim cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru shim-15+1533136590.3beb971/debian/changelog shim-15+1533136590.3beb971/debian/changelog --- shim-15+1533136590.3beb971/debian/changelog 2019-02-09 08:23:19.000000000 +0100 +++ shim-15+1533136590.3beb971/debian/changelog 2019-02-12 18:26:11.000000000 +0100 @@ -1,3 +1,10 @@ +shim (15+1533136590.3beb971-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Set CROSS_COMPILE. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 12 Feb 2019 18:26:11 +0100 + shim (15+1533136590.3beb971-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru shim-15+1533136590.3beb971/debian/rules shim-15+1533136590.3beb971/debian/rules --- shim-15+1533136590.3beb971/debian/rules 2019-02-09 08:01:16.000000000 +0100 +++ shim-15+1533136590.3beb971/debian/rules 2019-02-12 18:26:09.000000000 +0100 @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk + # Other vendors, add your certs here. No sense in using # dpkg-vendor --derives-from, because only Canonical-generated binaries will # be signed with this key; so if you are building your own shim binary you @@ -28,6 +30,7 @@ ENABLE_SBSIGN=1 \ VENDOR_CERT_FILE=$(cert) \ EFIDIR=$(distributor) \ + CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- \ $(NULL) %: