Bug#1008025:

2023-01-28 Thread Limonciello, Mario
[AMD Official Use Only - General]

I believe this should be fixed in the latest version which drops the efi-cc and 
uses CC variable directly.

Can you confirm it?


Bug#1008025: fwupd-efi FTCBFS: uses the build architecture compiler for efi components

2022-03-20 Thread Helmut Grohne
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.0 +0100
+++ fwupd-efi-1.2/debian/changelog  2022-03-20 10:46:47.0 +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   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.0 +0100
+++ fwupd-efi-1.2/debian/rules  2022-03-20 10:46:45.0 +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