Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796569 - =sys-apps/fwupd-efi-1.0: PermissionError: [Errno 13] Permission denied: 'genpeimg' (build fails)
Summary: =sys-apps/fwupd-efi-1.0: PermissionError: [Errno 13] Permission denied: 'genp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-18 08:13 UTC by m1027
Modified: 2021-06-18 21:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,11.28 KB, text/plain)
2021-06-18 08:14 UTC, m1027
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m1027 2021-06-18 08:13:56 UTC
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
Comment 1 m1027 2021-06-18 08:14:34 UTC
Created attachment 716703 [details]
build.log
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-18 13:36:10 UTC
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" ...
Comment 3 m1027 2021-06-18 16:23:13 UTC
Thanks a lot for the code anlysis.

I've filed that issue here: https://github.com/fwupd/fwupd-efi/issues/9.
Comment 4 m1027 2021-06-18 17:36:20 UTC
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.
Comment 5 m1027 2021-06-18 19:57:58 UTC
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. ;-)
Comment 6 Larry the Git Cow gentoo-dev 2021-06-18 21:19:34 UTC
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(+)