Relevant part of build log In file included from ../fwupd-1.7.4/plugins/uefi-capsule/fu-plugin-uefi-capsule.c:19: ../fwupd-1.7.4/plugins/uefi-capsule/fu-uefi-common.h:32:3: error: conflicting types for ‘efi_time_t’; have ‘struct <anonymous>’ 32 | } efi_time_t; | ^~~~~~~~~~ In file included from /usr/include/efivar/efivar.h:21, from ../fwupd-1.7.4/plugins/uefi-capsule/fu-uefi-bootmgr.h:12, from ../fwupd-1.7.4/plugins/uefi-capsule/fu-plugin-uefi-capsule.c:17: /usr/include/efivar/efivar-types.h:81:3: note: previous declaration of ‘efi_time_t’ with type ‘efi_time_t’ 81 | } efi_time_t __attribute__((__aligned__(1))); | ^~~~~~~~~~ Downgrade to sys-libs/efivar-37 let it being built.
This should be reported upstream to the fwupd developers. As a temporary workaround, we could add "-DEFIVAR_NO_EFI_TIME_T=1" to CFLAGS/CPPFLAGS to disable the new header in efivar. https://github.com/rhboot/efivar/commit/011f3e5212d4bde5f651795435ccf0f77bd2633d
To clarify, we could add "-DEFIVAR_NO_EFI_TIME_T=1" to CFLAGS/CPPFLAGS in the fwupd ebuild. This would disable the new functionality in efivar's headers.
(In reply to Mike Gilbert from comment #1) > This should be reported upstream to the fwupd developers. Thanks, done.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79dabb3646d62da12da567c70b2ca83f328b2574 commit 79dabb3646d62da12da567c70b2ca83f328b2574 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2022-01-17 16:07:24 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2022-01-17 16:08:07 +0000 sys-apps/fwupd: Fixed build against sys-libs/efivar-38 Closes: https://bugs.gentoo.org/831327 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-apps/fwupd/files/fwupd-1.7.4-efivar38.patch | 55 +++++++++++++++++++++++++ sys-apps/fwupd/fwupd-1.7.4.ebuild | 4 ++ 2 files changed, 59 insertions(+)