Install this version:
emerge -a =app-emulation/virt-firmware-26.5.4
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-emulation/virt-firmware-26.5.4
Or alternatively:
emerge --autounmask-write -a =app-emulation/virt-firmware-26.5.4
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature pypi systemd
DESCRIPTION="Tools for ovmf/armvirt firmware volumes"
HOMEPAGE="
https://gitlab.com/kraxel/virt-firmware
https://pypi.org/project/virt-firmware/
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
RDEPEND="
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pefile[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
"
# Need systemd-detect-virt
BDEPEND="
test? (
sys-apps/systemd
)
"
distutils_enable_tests unittest
python_prepare_all() {
# Requires crypt module removed in py3.13
rm virt/qemutest/cloudinit.py || die
sed -e '/from virt.qemutest.cloudinit import CloudInitISO/d' \
-i tests/tests.py || die
distutils-r1_python_prepare_all
}
python_test() {
eunittest tests
}
python_install_all() {
distutils-r1_python_install_all
doman man/*.1
doinitd "${FILESDIR}/kernel-bootcfg-boot-successful"
systemd_dounit systemd/kernel-bootcfg-boot-successful.service
# Use our own provided by sys-kernel/installkernel[efistub,systemd]
#exeinto /usr/lib/kernel/install.d
#doexe systemd/99-uki-uefi-setup.install
}
pkg_postinst() {
optfeature "automatically updating UEFI configuration on each kernel installation or removal" \
"sys-kernel/installkernel[systemd,efistub]"
}
dev-python/cryptography[] dev-python/pefile[] dev-python/pyyaml[]
test? ( sys-apps/systemd )