summaryrefslogtreecommitdiff
path: root/app-emulation/virt-firmware
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-02 20:14:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-02 20:14:09 +0100
commitdd955a48d88d9b98d49a61f10ab4b52f53cf83a0 (patch)
treede2fa72b509cdf2371fc67b9ec231bdad7d03b5b /app-emulation/virt-firmware
parent29e3ef4590d6bee24c4a3798d12a3cfef750bd54 (diff)
gentoo auto-resync : 02:04:2024 - 20:14:09
Diffstat (limited to 'app-emulation/virt-firmware')
-rw-r--r--app-emulation/virt-firmware/Manifest3
-rw-r--r--app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch20
-rw-r--r--app-emulation/virt-firmware/virt-firmware-24.2_p20240402.ebuild60
3 files changed, 83 insertions, 0 deletions
diff --git a/app-emulation/virt-firmware/Manifest b/app-emulation/virt-firmware/Manifest
index 1495667b73e0..3dcc8919fc5b 100644
--- a/app-emulation/virt-firmware/Manifest
+++ b/app-emulation/virt-firmware/Manifest
@@ -1,7 +1,10 @@
AUX kernel-bootcfg-boot-successful 225 BLAKE2B 27c798393135049ca2d4d50f01e8c8a52773d137bcd695357e57038b28a8cfa3fa88602b01a28ab2c7521d53c7ec85edb1bd968ff544d8ec1eaf01f478b8d990 SHA512 101089f296cd04b84d6f5eade432d2de76688959a0dc24560ff4882fd99431142a4916ba8ede935bd7055d6e32d53dcd3cb9c7c6e556035f22942088e946411e
AUX virt-firmware-24.2-dont-force-shim.patch 1694 BLAKE2B 2777ab44ebedfbe24187ec760709ddda1600cc4cbe7f1f492c901e9f46b8bfc75edbabc6bfd9fab93b18f6957100bee2abc4a8261941eab7ef0c111678f81f33 SHA512 ee0eb319957ff9748fd9c20f72e2fdc34cee3bceff603324acb5a2bce7405b3ecc5ec2cba854730a33d7294b281976e245f9c854be076feaca7ff44623a71e13
+AUX virt-firmware-24.2_p20240402-expand-shim-search.patch 795 BLAKE2B da2ba3e1b4e10cb29aea34c968933ca13ac03f31d577c9962f6423c0fd041c0d81fc2cb882c7d00fd8f4fd865c32fbe7e53c829133345f4b12f722081936f319 SHA512 2efd501ee097a6438cd710a68606777e7f1f06043499ed97112a15c2031caf81835807337130458d64df086572d1afa9e9750f41d88cfbae4f41b985a7a69360
DIST virt-firmware-24.2.tar.gz 110844 BLAKE2B db7ad7663678a313bdd0e23de7e374547e5dbc1a04b37a65e366ae042410a3a6c21ccfef3747a2534cb76906868caaf1364ac1ecd1443c1c1053a5b7687da50b SHA512 8583420acb31fb32e4c195c0c1816b36248ec2e486ded0795e51180e2690b2bcdc10eb8707f4fc9fa36da5b24082737c5c3b2e3988f6c5455e08a5d2a0ff92e7
DIST virt-firmware-24.2_p20240325.tar.gz 107037 BLAKE2B d7fe7c760b769124ccc4192e3133563cf287b8a0cbe281fb758b66ae27a4c9461b6a5bdd7b97ec3e1c8e2a051b8a05fa45ded19eeb3bbbd5ff787443fed96a0d SHA512 4ea5d21bc57bda5fbfae79d70aa7805e1d4ca53aa5aeb40b555d5c03ff0fbd9780a92b3aaf9bc5b7cb8169205487309bff7031ded409e26d8d39b1fe3d937510
+DIST virt-firmware-24.2_p20240402.tar.gz 106875 BLAKE2B cdc6bde95a7db347e896c3d33e7ad0715c5a6cbb9a80dbcfb87379bb0f7693c0b96544cb3a1394ce115cfe98321d79339b682f02250930b85ff4bef35d038251 SHA512 50899655fe76e7ed71d3a607030a2067ae97f15f0d3698a54ec388ac6e27e2c2f39b2b4cb5552dad17e184124d62f70d045bc8b5b1f6c5931d477a911be11637
EBUILD virt-firmware-24.2-r1.ebuild 1030 BLAKE2B 2d8761f2044dd9a955383b6c029df69f304961e2bfb6256d72e780345c344d963e879527b68d5d238cd0fb1676bfd43f217e47432b5b3222ef903d28ac26e0c0 SHA512 d17324a840f805a3d94e15d163bf6dd66629523a441b8fe5e43793d37f374382135de806c4c87cc96adea4efc3b621ab2a552ce45fa619762274200163944d66
EBUILD virt-firmware-24.2_p20240325.ebuild 1438 BLAKE2B fa72b727dd5a58dc6690d90076c702dfaa7266e554326b3552d4c8d1017e03a8e24a3ade05f533e3c5d8930ac7881f1ee3ae1f95c12fdc734d604f1fd8fd2b57 SHA512 5d6aa931cdbcab073ed9d178b3627e2260cff049da07aae410d5b912e48f7deab7090b3d9fceb02fa59ccf78bf80b952fd6cd1402933e8a2873cec81fced5ccc
+EBUILD virt-firmware-24.2_p20240402.ebuild 1451 BLAKE2B c77b5c3474528945e70267ed1d6c1dc9d8417b1846948067d4a20c0225770bab1df3e7f1c9a231778e9430b074a70dd645dbd0830991fda4464539e534f7408a SHA512 d67e0de65b5a6ec2e0963f2ca9a4b947a8fb17c511268c072e5ce88ed22d4afcbcf56777b7f0d61e166ebde2d7bbe7a00f6eb3645acff52ee435af0d20f87848
MISC metadata.xml 726 BLAKE2B 809ef093c67bf4c03ae99efa7112b92c3d6d24058ba8ae444045ae52adf9accf60e42a84966f8fd7ab793dfb3238660f4f422fbae2c36f6fd35bf0b02b42a1f1 SHA512 af58f69792dadd71c66022fb08f0f878c3f140114287000a16e96fd8b30bf410e595d373a5cd92b56bd28d5f9996ab5cdecac91ba1b743f2e807feeeaf6e9cbd
diff --git a/app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch b/app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch
new file mode 100644
index 000000000000..9af50fb4b310
--- /dev/null
+++ b/app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch
@@ -0,0 +1,20 @@
+https://gitlab.com/kraxel/virt-firmware/-/merge_requests/11
+diff --git a/virt/firmware/bootcfg/linuxcfg.py b/virt/firmware/bootcfg/linuxcfg.py
+index 5682b15..121af73 100644
+--- a/virt/firmware/bootcfg/linuxcfg.py
++++ b/virt/firmware/bootcfg/linuxcfg.py
+@@ -188,9 +188,10 @@ class LinuxOsInfo(OsRelease):
+
+ def shim_path(self):
+ esp = self.esp_path()
+- subdir = self.esp_distro_dir()
++ distro_dir = self.esp_distro_dir()
+ arch = self.efi_arch()
+- shim = f'{esp}/EFI/{subdir}/shim{arch}.efi'
+- if os.path.exists(shim):
+- return shim
++ for subdir in distro_dir, 'shim', 'Linux':
++ shim = f'{esp}/EFI/{subdir}/shim{arch}.efi'
++ if os.path.exists(shim):
++ return shim
+ return None
diff --git a/app-emulation/virt-firmware/virt-firmware-24.2_p20240402.ebuild b/app-emulation/virt-firmware/virt-firmware-24.2_p20240402.ebuild
new file mode 100644
index 000000000000..aa8ad953dd10
--- /dev/null
+++ b/app-emulation/virt-firmware/virt-firmware-24.2_p20240402.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 systemd optfeature
+
+COMMIT="07a1e03c356766eda0188d033bad38b8d27d55ef"
+
+DESCRIPTION="Tools for ovmf/armvirt firmware volumes"
+HOMEPAGE="
+ https://gitlab.com/kraxel/virt-firmware
+ https://pypi.org/project/virt-firmware/
+"
+SRC_URI="https://gitlab.com/kraxel/virt-firmware/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+RDEPEND="
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/pefile[${PYTHON_USEDEP}]
+ || (
+ sys-apps/systemd[boot(-)]
+ sys-apps/systemd-utils[boot(-)]
+ )
+" # We need bootctl from systemd(-utils)
+
+PATCHES=(
+ "${FILESDIR}/${PN}-24.2_p20240402-expand-shim-search.patch"
+)
+
+distutils_enable_tests unittest
+
+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] instead
+ #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]"
+}