Maybe this is be something trivial: Building fwupd-efi-1.0 fails here with > > PermissionError: [Errno 13] Permission denied: 'genpeimg' > Up in the build.log I also see > > Program genpeimg found: NO > FYI: I believe I had the same issue building fwupd-1.5.9 (when fwupd-efi was still bundled in fwupd). In fwupd-1.6.0 and 1.6.1 (but not from 1.6.1-r1 on) I did not receive this exact build error. See build.log. Reproducible: Always
Created attachment 716703 [details] build.log
You somehow entered _run_genpeimg() but there shouldn't be a genpeimg in Gentoo so you should exit at https://github.com/fwupd/fwupd-efi/blob/d74ab0fe15bc15999c81469537763cc1293bb86c/efi/generate_binary.py#L57 but you don't. Although meson logged "Program genpeimg found: NO" ...
Thanks a lot for the code anlysis. I've filed that issue here: https://github.com/fwupd/fwupd-efi/issues/9.
Okay, should be fixed upstream already. fwupd-efi-1.0 takes everything upt to 2021-04-23, the fix is from 2021-05-17 though. See new comments in the link of my previous comment.
The mentioned upstream commits solved this issue. Tested by fwupd-efi-9999.ebuild in my overlay. Thank you so much for the help! And I successfully applied some bios updates by fwupd-1.6.1-r1 right away, which were surely among those 100,000 ones that only arrived "yesterday": https://twitter.com/hughsient/status/1405435822204129283. ;-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36eb40e0d1be521917a2e4836ac4bbd89f9787a0 commit 36eb40e0d1be521917a2e4836ac4bbd89f9787a0 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2021-06-18 21:19:14 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2021-06-18 21:19:30 +0000 sys-apps/fwupd-efi: fix building Fixes PermissionError: [Errno 13] Permission denied: 'genpeimg' Closes: https://bugs.gentoo.org/796569 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> .../fwupd-efi-1.0-add-genpeimg-parameter.patch | 42 ++++++++++++++++++++++ .../files/fwupd-efi-1.0-pass-genpeimg.patch | 21 +++++++++++ sys-apps/fwupd-efi/fwupd-efi-1.0.ebuild | 5 +++ 3 files changed, 68 insertions(+)