Source: fwupd-efi
Version: 1:1.2-3
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

fwupd-efi fails to cross build from source, because it uses the build
architecture compiler for building efi components. It actually has two
compiler variables and the efi-cc one is not default initialized to the
host compiler, so it happens to pick the build architecture one. Please
consider applying the attached patch to fix the cross build.

Helmut
diff --minimal -Nru fwupd-efi-1.2/debian/changelog 
fwupd-efi-1.2/debian/changelog
--- fwupd-efi-1.2/debian/changelog      2022-02-10 00:05:46.000000000 +0100
+++ fwupd-efi-1.2/debian/changelog      2022-03-20 10:46:47.000000000 +0100
@@ -1,3 +1,10 @@
+fwupd-efi (1:1.2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass a suitable efi-cc to meson. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 20 Mar 2022 10:46:47 +0100
+
 fwupd-efi (1:1.2-3) unstable; urgency=medium
 
   [ Mario Limonciello ]
diff --minimal -Nru fwupd-efi-1.2/debian/rules fwupd-efi-1.2/debian/rules
--- fwupd-efi-1.2/debian/rules  2022-02-10 00:02:52.000000000 +0100
+++ fwupd-efi-1.2/debian/rules  2022-03-20 10:46:45.000000000 +0100
@@ -5,7 +5,9 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions
 
-CONFARGS =
+-include /usr/share/dpkg/buildtools.mk
+
+CONFARGS = '-Defi-cc=$(CC)'
 
 ifneq ($(CI),)
        CONFARGS += --werror --wrap-mode=default

Reply via email to