Install this version:
emerge -a =sys-apps/fwupd-efi-1.9
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-apps/fwupd-efi-1.9
Or alternatively:
emerge --autounmask-write -a =sys-apps/fwupd-efi-1.9
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
inherit meson python-any-r1 secureboot
DESCRIPTION="EFI executable for fwupd"
HOMEPAGE="https://fwupd.org"
if [[ ${PV} = *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/fwupd/fwupd-efi.git"
else
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/hughsie.asc
inherit verify-sig
SRC_URI="
https://github.com/fwupd/fwupd-efi/releases/download/${PV}/${P}.tar.xz
verify-sig? ( https://github.com/fwupd/fwupd-efi/releases/download/${PV}/${P}.tar.xz.asc )
"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-hughsie )"
fi
LICENSE="LGPL-2.1+"
SLOT="0"
# uswid is used as a CLI tool, hence no Pythonic stuff
BDEPEND+="
$(python_gen_any_dep '
dev-python/pefile[${PYTHON_USEDEP}]
')
sys-apps/uswid
virtual/pkgconfig
"
DEPEND=">=sys-boot/gnu-efi-3.0.18"
python_check_deps() {
python_has_version "dev-python/pefile[${PYTHON_USEDEP}]"
}
pkg_setup() {
python-any-r1_pkg_setup
secureboot_pkg_setup
}
src_prepare() {
default
python_fix_shebang "${S}/efi"
}
src_configure() {
local emesonargs=(
-Defi-libdir="${EPREFIX}"/usr/$(get_libdir)
-Defi_sbat_distro_id="gentoo"
-Defi_sbat_distro_summary="Gentoo GNU/Linux"
-Defi_sbat_distro_pkgname="${PN}"
-Defi_sbat_distro_version="${PVR}"
-Defi_sbat_distro_url="https://packages.gentoo.org/packages/${CATEGORY}/${PN}"
)
meson_src_configure
}
src_install() {
meson_src_install
secureboot_auto_sign
}
>=sys-boot/gnu-efi-3.0.18
verify-sig? ( sec-keys/openpgp-keys-hughsie ) $(python_gen_any_dep ' dev-python/pefile[${PYTHON_USEDEP}] ') sys-apps/uswid virtual/pkgconfig
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | fwupd-efi-1.9.tar.xz | 48464 bytes | https://github.com/fwupd/fwupd-efi/releases/download/1.9/fwupd-efi-1.9.tar.xz |
| DIST | fwupd-efi-1.9.tar.xz.asc | 488 bytes | https://github.com/fwupd/fwupd-efi/releases/download/1.9/fwupd-efi-1.9.tar.xz.asc |