--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: shim FTCBFS: some tools are not translated
- From: Helmut Grohne <helmut@subdivi.de>
- Date: Tue, 12 Feb 2019 18:33:45 +0100
- Message-id: <20190212173344.GA12126@alf.mars>
Source: shim
Version: 15+1533136590.3beb971-1
Tags: patch
User: helmutg@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 <helmut@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)
%:
--- End Message ---
--- Begin Message ---
Source: shim
Source-Version: 15+1533136590.3beb971-6
We believe that the bug you reported is fixed in the latest version of
shim, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 922152@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Steve McIntyre <93sam@debian.org> (supplier of updated shim package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 23 Mar 2019 18:19:13 +0000
Source: shim
Architecture: source
Version: 15+1533136590.3beb971-6
Distribution: unstable
Urgency: medium
Maintainer: Debian EFI team <debian-efi@lists.debian.org>
Changed-By: Steve McIntyre <93sam@debian.org>
Closes: 922152 924619
Changes:
shim (15+1533136590.3beb971-6) unstable; urgency=medium
.
[ Steve McIntyre ]
* Add Provides: and Breaks: to shim-helpers-$arch-signed to fix
clashes with the old shim-signed package for fbx64.efi.signed and
mmx64.efi.signed. Closes: #924619
.
[ Helmut Grohne ]
* Fix FTCBFS: Set CROSS_COMPILE. (Closes: #922152)
Checksums-Sha1:
cf2b350f40da4e57302f8486803e348f5bcb57ce 2358 shim_15+1533136590.3beb971-6.dsc
5d8aef47ebaa48f8e67944b51d3f41f3fd916ad1 12368 shim_15+1533136590.3beb971-6.debian.tar.xz
80a89e756bafffe0e2ab3b746adf677f424028b8 5275 shim_15+1533136590.3beb971-6_source.buildinfo
Checksums-Sha256:
ad4685ae54f6ab50cae43a0ca4db3db63c3859de3ce7ca66c9079bbccbcba8bf 2358 shim_15+1533136590.3beb971-6.dsc
ef8505b540e1f7d1a825a5109ba835f188dd57346691d02e6df78ef43786905f 12368 shim_15+1533136590.3beb971-6.debian.tar.xz
ed070b906c4c8552c26a28bdc3d52f8d86b49ffe387386f882c528afac5db566 5275 shim_15+1533136590.3beb971-6_source.buildinfo
Files:
b52e2a7edaf73d0a62aad41e110a15bf 2358 admin optional shim_15+1533136590.3beb971-6.dsc
96ffdaf9cb668ead14626ee94980b6e3 12368 admin optional shim_15+1533136590.3beb971-6.debian.tar.xz
62918e69150d4e5d6f4ba9051264ce51 5275 admin optional shim_15+1533136590.3beb971-6_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCAAvFiEEzrtSMB1hfpEDkP4WWHl5VzRCaE4FAlyWhAgRHDkzc2FtQGRl
Ymlhbi5vcmcACgkQWHl5VzRCaE5lWA//XM4RFH+/Jz+zdKEWj9pA2GvhweBCAYAf
wT053JBlqkVAztoGRg4XxMKww0A1tDJ3qaA/gsUlxPmY/FEKI9fleodoJ3QTzn2y
IPtD+QcqS9UsgnNmgbdDdr2UHKkvmBUs2/eQPa787xbuDq/GtvScVDogKhGe+anP
IHeDZkdoZUrlqWkNjh1rlGLiooMYCv/lg/ju1osLhaGk2cjvC7LZIKVZXuKTGmvy
9yCZP6cTn34qV2C6BgWhrFLEB6O6eVtBMAY7AD+c0w4TVS8wPv89ndXv1MeyzjLA
yb4AVfVAHixQD0blNOhwXSKnZNqR3ZfS3Rj4IxLgHBqNKguYPgKiLFKNfTYr7PAT
Mb1xrMofK7CsYXwHq+avXnzhsSKlpI+SG6J9rzP9NsF5OcrfsH+LEvwLpKekXBeq
mEiKfhHr3bSA/pFyOSNUt1rHmZWaCYE55l4LhwVzm9VVPBiTvJbureWE06FLM+32
tFc9/rDbpt0C6SCAmgNo3UN1m4pdr72ckRJgntKZHhMJRIBmrrQzN/4mhY8WTub+
YlGQ8Op2cqN6x0UZh5kMpYptcr2cp3ze10K7ssikg0rLnHEGP3rBBs1oaTyg4Hjw
HhMTaPT9V6NIl0aCw+f2nSMR32bWe6Af8WhCtHUMPdGPlpKQxWXkOTWLbaXm+iRb
UqnxUMasY24=
=YgAR
-----END PGP SIGNATURE-----
--- End Message ---