Source: fwupd-efi
Version: 1:1.8-3
Tags: ftbfs patch upstream
User: [email protected]
Usertags: ftcbfs
fwupd-efi fails to cross build from source, because it fails locating
gnu-efi using pkg-config. gnu-efi still installs to /usr/lib and that's
not a location pkg-config searches during cross compilation. The
solution here is to move its files to multiarch. Once doing that,
fwupd-efi fails to build from source natively, because it hard codes the
assumption that gnu-efi is installed to /usr/lib and some other
non-multiarch paths. I'm attaching a patch that makes it detect
gnu-efi's location from pkg-config. Doing so works both before and after
the move. Please consider applying it and forwarding it upstream.
Helmut
--- fwupd-efi-1.8.orig/efi/meson.build
+++ fwupd-efi-1.8/efi/meson.build
@@ -37,6 +37,9 @@
efi_libdir = get_option('efi-libdir')
if efi_libdir == ''
+ efi_libdir = gnuefi.get_pkgconfig_variable('libdir')
+endif
+if efi_libdir == ''
fs = import('fs')
multi = run_command(cc.cmd_array(), '-print-multi-os-directory', check: true).stdout().strip()
efi_libdir = join_paths('/usr/lib/', multi)