diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-27 06:30:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-27 06:30:35 +0000 |
commit | 721e451ec418e1712f6962404e111f0ebd487389 (patch) | |
tree | aab5b35236af464349c2522312c63b664273465c /app-emulation | |
parent | e80134587e8d959a88dba7dd3784895372e205c8 (diff) |
gentoo auto-resync : 27:12:2024 - 06:30:34
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/Manifest.gz | bin | 15501 -> 15494 bytes | |||
-rw-r--r-- | app-emulation/libvirt/Manifest | 3 | ||||
-rw-r--r-- | app-emulation/libvirt/files/libvirt-10.10.0-qemu-tpm-do-not-update-profile-name-for-transient-do.patch | 70 | ||||
-rw-r--r-- | app-emulation/libvirt/libvirt-10.10.0-r1.ebuild (renamed from app-emulation/libvirt/libvirt-10.10.0.ebuild) | 1 | ||||
-rw-r--r-- | app-emulation/virt-firmware/Manifest | 2 | ||||
-rw-r--r-- | app-emulation/virt-firmware/virt-firmware-24.11.ebuild | 55 |
6 files changed, 130 insertions, 1 deletions
diff --git a/app-emulation/Manifest.gz b/app-emulation/Manifest.gz Binary files differindex 0de44672e290..aaeab06b5c60 100644 --- a/app-emulation/Manifest.gz +++ b/app-emulation/Manifest.gz diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest index 3f41afd029f4..703d2f9e5faa 100644 --- a/app-emulation/libvirt/Manifest +++ b/app-emulation/libvirt/Manifest @@ -1,5 +1,6 @@ AUX README.gentoo-r3 2065 BLAKE2B f3677b916121126c431ba32e324bcc9f04b4dfeef1ee54517cae1118c67274592d890d6d919a48af6709e9220379797549277904a02fea740a69b1bf8f2397aa SHA512 77ede8a3e1a380b334595e65ae148acd2e52d594200253dc67d68dd256db5bf72ce7ce222d067c739ce53f84634421e74726f30c0ab7a1c76b86ccdc191c8a69 AUX libvirt-10.1.0-Fix-off-by-one-error-in-udevListInterfacesByStatus.patch 1665 BLAKE2B 25c162ca5d33c36e1b97185f3db8517e707a20d8ee2573dfd15f9540af1a2a1d39706ffbc1b6e55be0b7156ca0d146715c9f629add883ff0d89122dd7a9962e4 SHA512 dd5dc696412529a6d004ea03ef75c991fbe7c7be839467e9bf2e8a8b2119275b053b4549e9924907b146e841c4a81e8f1ee2744c7d275c5a4007d80b87e5b1af +AUX libvirt-10.10.0-qemu-tpm-do-not-update-profile-name-for-transient-do.patch 2762 BLAKE2B d6ac52810fc746e2317f21f5bfb512960ef5455c2e1960ca0db98157bfae1f747c57cd80eaa5bd3f853b92e0b319eeeb1124956344e6bde1e4e58c0b128084fe SHA512 7c1647de44b76d48a059b9e929360d44c02e8db3e0df7b6a27fa4f7370c696ef511fe8912683cf58ed2cb9df8622788ed99e668336276caa1e9d514684cce3ea AUX libvirt-10.2.0-remote-check-for-negative-array-lengths-before-alloc.patch 9364 BLAKE2B 05ac0aaea8741102a34657b4910569ae5601364bdfd419743900823537f982348ba68cbac37fe10b21c2869531a35d68de8fbeb462c1f66aa0c3af4a97630405 SHA512 72a40984e6de167af8de9aedabdecf79c0f99bb5e7152b6521e87268bf1a1050b9d0d9acbb86c54810029dbde671a518ebd8a3f11590594a3226d818b89188f1 AUX libvirt-10.3.0-vsh-Don-t-init-history-in-cmdComplete.patch 2935 BLAKE2B b3bb5f7f6c21b645f43c2de8c17fe821a12fcd656629bbb44d780f408c5e50f0ee00e0d6bd82a9aba68b4651b711b29170e6989c317bada28edf3aff36cf06ec SHA512 b3421b7972a226660e475616bfc23fffcba825516e14b5267e8410fd178031e848bd7a69128c04f1188c0b75de39e6155cd480649b87a21ab650c2874765ccc7 AUX libvirt-10.5.0-virt-aa-helper-Allow-RO-access-to-usr-share-edk2-ovm.patch 1439 BLAKE2B e5d837f6f7af00fa6b7d3ef94ba0cdcd6120a17c17f52986df451ff2a66a019526f480cdd71592ea89c0629277c751f84b6f79c898d20017d454eda790ce0c66 SHA512 106e029750ed185c823e1759ead99520f628a52a00926cb5a09ee941e4b51cbbdbc91d4b95294eb9225459cb47bbde402b017016ea4ab177b4ba15c2decea90a @@ -33,7 +34,7 @@ DIST libvirt-9.8.0.tar.xz.asc 833 BLAKE2B 3ecd0a925992eeadd50675f7ad8e815bde532c DIST libvirt-9.9.0.tar.xz 9321556 BLAKE2B 21eae5a95feaf7f5c6ba8dd48732c08212904882a11c48eccfa827d85ddc3df7e064503f21710dbe1b678670e02f003674de915a43a7403fbf85685c4832e21d SHA512 77cea28acf4f3e8c92fbd5bd72ad084be183c07f14e3a9ce35d6d9d62d36ee97a30cef55fb204b3e43f282890ecd7d5827a784a517e7f4ed8b22ee502c3f09d7 DIST libvirt-9.9.0.tar.xz.asc 833 BLAKE2B 3de3674d33c595692e71eeb9c312de76e865d3859d2482ec5b4d29d3cd7644cde080cba0001668efe7876b462f78c0233ab76076ef32943e118b34cca8c1ab4d SHA512 357fc2d1bdbbc26c6e0119a1b5c42e86a116f94bb714da855ab27ca83da0e50c7239d1b8abde3cee8a460ac537f63d518f43470d8329b727b39491771ad191e5 EBUILD libvirt-10.1.0-r4.ebuild 10208 BLAKE2B ba05957d24d5b4b92fe2eb074924c43788bd1ee2c6608a9c981c1773a8f233da5b6a7e0e023a72c6a0770ceee6381e9d921dd59998d0d5c7ff61e385040d0e8d SHA512 40cbf881868ca0a4459a77ed925c2ff2548c8a32710f20a950aa36a39b29a4cdec4c5064b76ce51993a1e265f3f6a0954f3d79674b63b646b995f263e4877a1d -EBUILD libvirt-10.10.0.ebuild 10072 BLAKE2B b3b6dd462d2c817a03a63ac2017b3d157ffc8334c20ac579a013bd59de99b0764358149d2853d421244eec5e6aa4e91ba40864f84c4d1afe4cba78c8aef55f77 SHA512 f1d8c447a8c4933be27e20260add44c66046743739f98fa3502ce3e942da61acb0258438c12d165bdd3e4783ab01bc40e9b86bf7ecc2c8aa7a6305390b4c51b2 +EBUILD libvirt-10.10.0-r1.ebuild 10160 BLAKE2B fe86d9ca0a31c6771cf72e1cbd4d51a2f3f18e133bb913e1be5d59c58d990e1aca4ac277a02c0769441b9387d07ae4a76ec01f1205425828104bd8311e8c2332 SHA512 3043ad9072e6fe6e1e3952f8724417a42a0647038d6b0609074e6ab95082238b28f91f04ac257566f718f176101e8e16e53112fcd036860d9693d0de57f77723 EBUILD libvirt-10.3.0-r4.ebuild 10193 BLAKE2B 01515dc6f7d77c235b2be818a8f27af6996282cf08d33d57bd84f9a2d3b12ff82082883123d88fc13d6cb8a249c2986ee888e11ab3a9be9de29c24940b6d8352 SHA512 a56a13ce5165a300849708ac6052fbf6703fe0d6db0f05101679f628f43f9e14289e7e3d303f8e0dd66b74160926e32624797df6048e137d88c8fe3b2abcee3f EBUILD libvirt-10.5.0-r2.ebuild 10075 BLAKE2B 2093b04c2cd3690694d250e9435fe7222e88320f4e21384a11e62bf015f3a0636fadb39e040b87d3e62b1cc343dd09abb3d661912fa0ff9188f8dfdb512ec887 SHA512 0e1c5927c420dcc26f2bdb165112bb7d559a7c4f045ce582e0ed001028b1bbe186646d8b1301abfaa06aeeed65773ed14654bd0277c3dd7cbeeb39ebde87c0d8 EBUILD libvirt-10.6.0-r1.ebuild 10075 BLAKE2B 2093b04c2cd3690694d250e9435fe7222e88320f4e21384a11e62bf015f3a0636fadb39e040b87d3e62b1cc343dd09abb3d661912fa0ff9188f8dfdb512ec887 SHA512 0e1c5927c420dcc26f2bdb165112bb7d559a7c4f045ce582e0ed001028b1bbe186646d8b1301abfaa06aeeed65773ed14654bd0277c3dd7cbeeb39ebde87c0d8 diff --git a/app-emulation/libvirt/files/libvirt-10.10.0-qemu-tpm-do-not-update-profile-name-for-transient-do.patch b/app-emulation/libvirt/files/libvirt-10.10.0-qemu-tpm-do-not-update-profile-name-for-transient-do.patch new file mode 100644 index 000000000000..e3289651f332 --- /dev/null +++ b/app-emulation/libvirt/files/libvirt-10.10.0-qemu-tpm-do-not-update-profile-name-for-transient-do.patch @@ -0,0 +1,70 @@ +From 81da7a2c2a2d490cddaaa77d3e3b36e210b38bd7 Mon Sep 17 00:00:00 2001 +Message-ID: <81da7a2c2a2d490cddaaa77d3e3b36e210b38bd7.1735210585.git.mprivozn@redhat.com> +From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com> +Date: Tue, 3 Dec 2024 12:00:08 +0100 +Subject: [PATCH] qemu: tpm: do not update profile name for transient domains +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +If we do not have a persistent definition, there's no point in +looking for it since we cannot store it. + +Also skip the update if the tpm device(s) in the persistent +definition are different. + +This fixes the crash when starting a transient domain. + +https://issues.redhat.com/browse/RHEL-69774 +https://gitlab.com/libvirt/libvirt/-/issues/715 + +Fixes: d79542eec669eb9c449bb8228179e7a87e768017 +Signed-off-by: Ján Tomko <jtomko@redhat.com> +Reviewed-by: Jiri Denemark <jdenemar@redhat.com> +Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> +Signed-off-by: Michal Privoznik <mprivozn@redhat.com> +--- + src/qemu/qemu_extdevice.c | 13 ++++++++++++- + src/qemu/qemu_tpm.c | 2 +- + 2 files changed, 13 insertions(+), 2 deletions(-) + +diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c +index a6f31f9773..954cb323a4 100644 +--- a/src/qemu/qemu_extdevice.c ++++ b/src/qemu/qemu_extdevice.c +@@ -190,7 +190,18 @@ qemuExtDevicesStart(virQEMUDriver *driver, + + for (i = 0; i < def->ntpms; i++) { + virDomainTPMDef *tpm = def->tpms[i]; +- virDomainTPMDef *persistentTPMDef = persistentDef->tpms[i]; ++ virDomainTPMDef *persistentTPMDef = NULL; ++ ++ if (persistentDef) { ++ /* do not try to update the profile in the persistent definition ++ * if the device does not match */ ++ if (persistentDef->ntpms == def->ntpms) ++ persistentTPMDef = persistentDef->tpms[i]; ++ if (persistentTPMDef && ++ (persistentTPMDef->type != tpm->type || ++ persistentTPMDef->model != tpm->model)) ++ persistentTPMDef = NULL; ++ } + + if (tpm->type == VIR_DOMAIN_TPM_TYPE_EMULATOR && + qemuExtTPMStart(driver, vm, tpm, persistentTPMDef, +diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c +index f223dcb9ae..f5e0184e54 100644 +--- a/src/qemu/qemu_tpm.c ++++ b/src/qemu/qemu_tpm.c +@@ -773,7 +773,7 @@ qemuTPMEmulatorBuildCommand(virDomainTPMDef *tpm, + incomingMigration) < 0) + goto error; + +- if (run_setup && !incomingMigration && ++ if (run_setup && !incomingMigration && persistentTPMDef && + qemuTPMEmulatorUpdateProfileName(&tpm->data.emulator, persistentTPMDef, + cfg, saveDef) < 0) + goto error; +-- +2.45.2 + diff --git a/app-emulation/libvirt/libvirt-10.10.0.ebuild b/app-emulation/libvirt/libvirt-10.10.0-r1.ebuild index d87fbdaace17..39ba18558c54 100644 --- a/app-emulation/libvirt/libvirt-10.10.0.ebuild +++ b/app-emulation/libvirt/libvirt-10.10.0-r1.ebuild @@ -159,6 +159,7 @@ PATCHES=( "${FILESDIR}"/${PN}-9.4.0-fix_paths_in_libvirt-guests_sh.patch "${FILESDIR}"/${PN}-9.9.0-do-not-use-sysconfig.patch "${FILESDIR}"/${PN}-10.7.0-fix-paths-for-apparmor.patch + "${FILESDIR}"/${PN}-10.10.0-qemu-tpm-do-not-update-profile-name-for-transient-do.patch ) python_check_deps() { diff --git a/app-emulation/virt-firmware/Manifest b/app-emulation/virt-firmware/Manifest index 184ef38e96b8..b9d21ada14a8 100644 --- a/app-emulation/virt-firmware/Manifest +++ b/app-emulation/virt-firmware/Manifest @@ -1,6 +1,8 @@ AUX kernel-bootcfg-boot-successful 225 BLAKE2B 27c798393135049ca2d4d50f01e8c8a52773d137bcd695357e57038b28a8cfa3fa88602b01a28ab2c7521d53c7ec85edb1bd968ff544d8ec1eaf01f478b8d990 SHA512 101089f296cd04b84d6f5eade432d2de76688959a0dc24560ff4882fd99431142a4916ba8ede935bd7055d6e32d53dcd3cb9c7c6e556035f22942088e946411e DIST virt-firmware-24.4.tar.gz 111964 BLAKE2B 16005a6f911abf227988abaedd45237d44d403f367abd3c2d413f899a6c3e7db2a62edcd36b7408263f101a0f0a20bbea83bf51f7f798077311b478dfc6c9fc1 SHA512 3b13df25177fe5c20e460e2d82453e23ae96cb657f1228ff1c061db4c4197eba719a4d7f51a90fec60a4de2da9a0e9d3f056d53011bd4f61df7f40b706911a1d +DIST virt_firmware-24.11.tar.gz 115385 BLAKE2B 2edfe718fd60dcd8a13b143f9fcf5f6beb604737ef4855cb0f16376e625f5bf2965bb08b7ddd037a6b8b6420c928abceefe1034135ab66763695fa8c359786b5 SHA512 0c6b4d34d518835b4489404c784b263cd6ac8348834ba654d27ae3741d3d229ea5f6036870399390fa4fa33e01c8113d64faba0c6068e4b2fb5bbdd9429bf72f DIST virt_firmware-24.7.tar.gz 114229 BLAKE2B a5b6bf39a72ce68622bbc4f75505633b92c322e4a02ab0384bb3b618abfbeeb19cfb057b5333ae53042732b131dcaa475c2c920922c920b0d0c21ef4185ad5b9 SHA512 1cd209b500e0ec1a5b8284b72b499bd16e998fd9489db6c8f8e3b49befb6186c5c09c95b2761254696b479daff1afaf2bdccb6ca7e115b11eb9a5df847f43628 +EBUILD virt-firmware-24.11.ebuild 1169 BLAKE2B 0deb04adfe02793d3708d4a4381e0fc7a981a8d96d19d5b2cbd42fcc2002c38b1631425591df717520f16c65b5f84119ec610ff6e4d08e307247a298efdb825a SHA512 49ffe60e6b051ea3d230ab85cf4042e29d005c488d59b22c8d46674edbcde64f50e7f61ca19886fbf1df660b3445cb4dccd28ed7de3029941d401dd8bda302d7 EBUILD virt-firmware-24.4.ebuild 1197 BLAKE2B 30bb2a1a196afd35d8d4bd716b1936529b9f05e20fd60b9d1d85e368088971e2243da144c4c6c5bd1ecd419438ca9488a182e026529fdd716b1b34e5d072b2c9 SHA512 58086985f77f451a1b8be3826e34b3efb7190ea8593cd6060733b3a943bbaa0accd0d4c4cc45e564e1e8143f8331ca4a040240d6ee0084c47a9bfaf8a21fb99e EBUILD virt-firmware-24.7.ebuild 1169 BLAKE2B 0deb04adfe02793d3708d4a4381e0fc7a981a8d96d19d5b2cbd42fcc2002c38b1631425591df717520f16c65b5f84119ec610ff6e4d08e307247a298efdb825a SHA512 49ffe60e6b051ea3d230ab85cf4042e29d005c488d59b22c8d46674edbcde64f50e7f61ca19886fbf1df660b3445cb4dccd28ed7de3029941d401dd8bda302d7 MISC metadata.xml 713 BLAKE2B 76bcfddfb45427c166d17b6235ba9241a91bf8cb7671683d8b89efbfdead868c001a959ba1a0bc732e1f746b5c2d7f68747a633ee49933d4eb6bf6aa4c0eff06 SHA512 88a26c43cec552dffeab242392f224a94213410dc5f6489421c97e49d27870b53823fd058ecb3696018a3debfd40b29ceb8eb35629f9188d847130ba359e3a22 diff --git a/app-emulation/virt-firmware/virt-firmware-24.11.ebuild b/app-emulation/virt-firmware/virt-firmware-24.11.ebuild new file mode 100644 index 000000000000..33bca1b06d18 --- /dev/null +++ b/app-emulation/virt-firmware/virt-firmware-24.11.ebuild @@ -0,0 +1,55 @@ +# 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 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 ~x86" + +RDEPEND=" + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/pefile[${PYTHON_USEDEP}] +" + +# Need systemd-detect-virt +BDEPEND=" + test? ( + sys-apps/systemd + ) +" + +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,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]" +} |