Source: sbsigntool
Version: 0.9.4-4
Tags: ftbfs patch upstream
User: [email protected]
Usertags: ftcbfs
Control: affects -1 + src:fwupd-efi

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,
sbsigntool fails to build from source, 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
--- sbsigntool-0.9.4.orig/configure.ac
+++ sbsigntool-0.9.4/configure.ac
@@ -71,7 +71,8 @@
 ##
 # no consistent view of where gnu-efi should dump the efi stuff, so find it
 ##
-for path in /lib /lib64 /usr/lib /usr/lib64 /usr/lib32 /lib/efi /lib64/efi /usr/lib/efi /usr/lib64/efi /usr/lib/gnuefi /usr/lib64/gnuefi ; do
+GNU_EFI_LIDDIR=$($PKG_CONFIG --variable libdir gnu-efi)
+for path in /lib /lib64 /usr/lib /usr/lib64 /usr/lib32 /lib/efi /lib64/efi /usr/lib/efi /usr/lib64/efi /usr/lib/gnuefi /usr/lib64/gnuefi $GNU_EFI_LIDDIR; do
     if test -e $path/crt0-efi-$EFI_ARCH.o; then
        CRTPATH=$path
     fi

Reply via email to