diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-16 10:53:11 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-16 10:53:11 -0500 |
| commit | 8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b (patch) | |
| tree | bb1e83c18d1cc77cdebfc5aeb9b12ad39c9787b5 /app-emulation | |
| parent | f997c3ee588099e4f43e9ec845935868e3e60b8e (diff) | |
| download | baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.gz baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.xz baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.zip | |
Adding metadata
Diffstat (limited to 'app-emulation')
41 files changed, 499 insertions, 2459 deletions
diff --git a/app-emulation/86Box/86Box-5.3.ebuild b/app-emulation/86Box/86Box-6.0.ebuild index 5c9495e0ba93..7342ca18e79b 100644 --- a/app-emulation/86Box/86Box-5.3.ebuild +++ b/app-emulation/86Box/86Box-6.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -47,8 +47,6 @@ BDEPEND=" qt6? ( kde-frameworks/extra-cmake-modules ) " -PATCHES=( "${FILESDIR}/${PN}-5.3-fallthrough-define-available-in-C-code.patch" ) - src_configure() { # LTO needs to be filtered # See https://bugs.gentoo.org/854507 diff --git a/app-emulation/86Box/Manifest b/app-emulation/86Box/Manifest index 70e22d3b6637..8f2999d071cf 100644 --- a/app-emulation/86Box/Manifest +++ b/app-emulation/86Box/Manifest @@ -1 +1 @@ -DIST 86Box-5.3.tar.gz 14001417 BLAKE2B a70679787fc7a601afa7ac3b69f4bb58afa2939d7a876048c6b944bdcb3affbc58ac8bfbe1e95088eaa93bf872172068bc0421602465d2a352d9674fcc255c41 SHA512 120fbf7544cc91dd9f7b75027cd6219084aa71e97e8ef2ad105ac8ccc7bea2a9290c2d124461da0192c3000c0459fe65c1fd361342de33b06c80616592f52f84 +DIST 86Box-6.0.tar.gz 17170254 BLAKE2B 68eca4509c09de991977eb1305b38c897e3cb2dca148fae231909d5cad0726f7bd56f697d95bdba931b63afda3a2817d8756238adeada4bebbf20c6c5238f7f3 SHA512 7c85d3713b73e818b89252474400a6470890648c2b89e8a03309dd2b654b0b25e02664776bc0ccfe821539ee832f0816ec8b222df7a8d137c4f44692aa3b4ca0 diff --git a/app-emulation/86Box/files/86Box-5.3-fallthrough-define-available-in-C-code.patch b/app-emulation/86Box/files/86Box-5.3-fallthrough-define-available-in-C-code.patch deleted file mode 100644 index c08c02882418..000000000000 --- a/app-emulation/86Box/files/86Box-5.3-fallthrough-define-available-in-C-code.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 0092ce15de3efac108b961882f870a8c05e8c38f Mon Sep 17 00:00:00 2001 -From: OBattler <oubattler@gmail.com> -Date: Mon, 22 Dec 2025 22:56:10 +0100 -Subject: [PATCH] Only make the fallthrough define available in C code, fixes - #6607. - ---- - src/include/86box/plat.h | 12 +++++++----- - 1 file changed, 7 insertions(+), 5 deletions(-) - -diff --git a/src/include/86box/plat.h b/src/include/86box/plat.h -index dcf7e4d5306..cbc348709ec 100644 ---- a/src/include/86box/plat.h -+++ b/src/include/86box/plat.h -@@ -90,16 +90,12 @@ extern int strnicmp(const char *s1, const char *s2, size_t n); - # include <atomic> - # define atomic_flag_t std::atomic_flag - # define atomic_bool_t std::atomic_bool -+ - extern "C" { - #else - # include <stdatomic.h> - # define atomic_flag_t atomic_flag - # define atomic_bool_t atomic_bool --#endif -- --#if defined(_MSC_VER) --# define ssize_t intptr_t --#endif - - #ifdef _MSC_VER - # define fallthrough do {} while (0) /* fallthrough */ -@@ -114,6 +110,12 @@ extern "C" { - # endif - #endif - -+#endif -+ -+#if defined(_MSC_VER) -+# define ssize_t intptr_t -+#endif -+ - /* Global variables residing in the platform module. */ - extern int dopause; /* system is paused */ - extern int mouse_capture; /* mouse is captured in app */ diff --git a/app-emulation/faudio/Manifest b/app-emulation/faudio/Manifest index 12a4f0d9f8e0..6ce9be27642d 100644 --- a/app-emulation/faudio/Manifest +++ b/app-emulation/faudio/Manifest @@ -1,2 +1,2 @@ -DIST faudio-26.04.tar.gz 1133894 BLAKE2B af7bfe5bc6473152a123925070a7500981e84cc67e26582251b7c1ab50a4ed34ecae8a128702f2d8519613783452000d5092c5ffc0786bef443ec1a12d6fbd06 SHA512 4d24a750f3222aad36bf93e74f82726c2904bad7aa4254833dfa40c68bf6161442660bc7ba04de90fd98f2799ac6f0ebfb40fc9694ef79e8db79417403769876 DIST faudio-26.05.tar.gz 1136187 BLAKE2B da56b50f0dcced9c16b74b56b82f37c70c9695390ef3b45cbc8b7453f0eb1526c775d2922d62fb7e2b333f2c4fa9d352da8f43c61d8caf1e04c4e15c227fe883 SHA512 523298017bfbcea2739a18406ed6860e45713049b503558e91f5e6de98993c6e6654c7358bc861a9337d74a12a0cd89f5ecac49ae9734b4856384062a64c79d0 +DIST faudio-26.06.tar.gz 1136204 BLAKE2B 6b1039085d5b1a357ea47cccb966b51a98314d4f4f14cdcbde7ab6aad9e534533cbf91faca8c7a659d4d4e984474b72e079d7cff562920a725dc7dbba2786b2b SHA512 e2efecf88bf62232da7b3ac04e21c19ae801ebe05c185c4b1775e2deae7dc9d95de7140ef5759439ca94b6cb4cf3a03cc08cf84c781d0d8a906964ee36876cbc diff --git a/app-emulation/faudio/faudio-26.05.ebuild b/app-emulation/faudio/faudio-26.05.ebuild index 70f5ae591a4b..b29949c0a633 100644 --- a/app-emulation/faudio/faudio-26.05.ebuild +++ b/app-emulation/faudio/faudio-26.05.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}/FAudio-${PV}" LICENSE="ZLIB" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 x86" IUSE="debug dumpvoices sdl3 test" RESTRICT="!test? ( test )" diff --git a/app-emulation/faudio/faudio-26.04.ebuild b/app-emulation/faudio/faudio-26.06.ebuild index b29949c0a633..70f5ae591a4b 100644 --- a/app-emulation/faudio/faudio-26.04.ebuild +++ b/app-emulation/faudio/faudio-26.06.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}/FAudio-${PV}" LICENSE="ZLIB" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="~amd64 ~x86" IUSE="debug dumpvoices sdl3 test" RESTRICT="!test? ( test )" diff --git a/app-emulation/lsfg-vk/lsfg-vk-1.0.0-r1.ebuild b/app-emulation/lsfg-vk/lsfg-vk-1.0.0-r2.ebuild index 9906f6604db4..5dfebf8adaec 100644 --- a/app-emulation/lsfg-vk/lsfg-vk-1.0.0-r1.ebuild +++ b/app-emulation/lsfg-vk/lsfg-vk-1.0.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -155,7 +155,7 @@ CRATES=" winnow@0.7.12 " -inherit cargo cmake desktop flag-o-matic toolchain-funcs +inherit cargo cmake desktop flag-o-matic toolchain-funcs xdg DESCRIPTION="Lossless Scaling Frame Generation on Linux via DXVK/Vulkan" HOMEPAGE="https://github.com/PancakeTAS/lsfg-vk" diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-10.2.2.ebuild b/app-emulation/qemu-guest-agent/qemu-guest-agent-10.2.2.ebuild index 626d4e2c3158..688db3a31de4 100644 --- a/app-emulation/qemu-guest-agent/qemu-guest-agent-10.2.2.ebuild +++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-10.2.2.ebuild @@ -18,7 +18,7 @@ S="${WORKDIR}/${MY_P}" LICENSE="GPL-2 BSD-2" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86" +KEYWORDS="amd64 ~arm64 ~ppc ~ppc64 x86" RDEPEND="dev-libs/glib" DEPEND="${RDEPEND}" diff --git a/app-emulation/virt-firmware/Manifest b/app-emulation/virt-firmware/Manifest index 78c1d9c880fb..65f512fc443a 100644 --- a/app-emulation/virt-firmware/Manifest +++ b/app-emulation/virt-firmware/Manifest @@ -1,4 +1,2 @@ -DIST virt_firmware-25.10.tar.gz 137685 BLAKE2B d1ab74eae907048549e2129aa256597752c5219110606bd623e0e6f0b90f88dd38226d8b7a992fe05ef49ab8c4ddf3a917184051715ebd6224cdbda4303754a5 SHA512 2fdf609f0ba335d6064cb595c5e4b465b0a148f258f87292f0b82d1aa653f5bfd1f9b851d36f1c46a94fb8be36d6cd6c5c3f5d633e86d34b8f6159186f872908 -DIST virt_firmware-25.12.tar.gz 143352 BLAKE2B f456a444e529ed7abf9fbba4491b56b1b1f76bf9c9d76c3a82e1c3a716b88c952bd494330680a4b21576a792a516e69b74203126dc4bac688e083185f1589924 SHA512 faa2f8abd0f8f633f2c620a2b7fd6ff91809e2a546b01088154e48d5151426f5b7b6134de0325664028419fe50376214b575f9da25095d2522edb814024ff8dc DIST virt_firmware-26.2.tar.gz 143457 BLAKE2B fd0b977539af0cde4059e67e86ddf97c6dcffc3f7b1cf5975d181dd51b698334c8b22b2c6a951da2e39327a0dd43b44d03a05d0ff56be6defb4a48f872ac4e80 SHA512 6e7fa94009da095e15880b6be850b130ea3097394572c01fe0404b6d4bc11117b9ae730ca43408cb02b5ae9dc2671ef5635520dd2c8776bb2b6b68c8246d06c7 DIST virt_firmware-26.5.4.tar.gz 151249 BLAKE2B 05724cb57e33ef4d30cf987bdc7cf71b49be0b32437b27cec5fb43d39fe9fd0456f104da3ecac05e251f8249a974f18286f162f041247de2267436c993864be9 SHA512 5a61d4cf9e4aa025a12eab17f5f61ada197a7fc5c18d1ecdf0a6282d26cec8d261112a88ea24fbcdfd4ef69421667225ad8df1645cd30a1c1c374c8475e5c532 diff --git a/app-emulation/virt-firmware/virt-firmware-25.10.ebuild b/app-emulation/virt-firmware/virt-firmware-25.10.ebuild deleted file mode 100644 index e849d1fe4aab..000000000000 --- a/app-emulation/virt-firmware/virt-firmware-25.10.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..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}] -" - -# 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]" -} diff --git a/app-emulation/virt-firmware/virt-firmware-25.12.ebuild b/app-emulation/virt-firmware/virt-firmware-25.12.ebuild deleted file mode 100644 index 6dc08c1149c8..000000000000 --- a/app-emulation/virt-firmware/virt-firmware-25.12.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..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}] -" - -# 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]" -} diff --git a/app-emulation/virt-firmware/virt-firmware-26.2.ebuild b/app-emulation/virt-firmware/virt-firmware-26.2-r1.ebuild index cb805df341de..d5f8b35c2522 100644 --- a/app-emulation/virt-firmware/virt-firmware-26.2.ebuild +++ b/app-emulation/virt-firmware/virt-firmware-26.2-r1.ebuild @@ -21,6 +21,7 @@ KEYWORDS="amd64 arm arm64 ~loong ~riscv x86" RDEPEND=" dev-python/cryptography[${PYTHON_USEDEP}] dev-python/pefile[${PYTHON_USEDEP}] + dev-python/pkg-resources[${PYTHON_USEDEP}] " # Need systemd-detect-virt diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest index 197e7bea3d14..e7d3f2a1ba74 100644 --- a/app-emulation/virtualbox-additions/Manifest +++ b/app-emulation/virtualbox-additions/Manifest @@ -1,4 +1,3 @@ DIST VBoxGuestAdditions_7.0.26.iso 54992896 BLAKE2B a52bcf234232723e3c04e7de5fda518a745b3128f2fd3d1213a97d69e3f010647056d407b05e9f7f1debb966e32b0189c4fc4176e096e7b5ac3ba27e1adad57e SHA512 636328e8ccdbbefbcccce1750dcb984bbb52d886e3f6f94f119212e9d9258d6d37029f65a8ce6b86d677014d45f48d255ed9346de4edbd53f609b64ba9b5b1e9 DIST VBoxGuestAdditions_7.1.18.iso 61454336 BLAKE2B 7e863fad6c3d6ab65947a36cc7579c577a7a391215c92a435e6760e766145c71fe600b193da010e7996b91c7221a678e2fae723bb1a223f2488ca9294ce0ec3e SHA512 d196ad3a73d47785a5784bfecb9e1e08acd1ec6155f9e86ca2b95ceba7f0815332b5e4931ff5c2f60c0526614912c4fcf7280cf1a48a60b919185e31e02825ff -DIST VBoxGuestAdditions_7.2.6.iso 53391360 BLAKE2B 5086951316215d476b503238a16233ae6119fcdebb47c1356286bc84ab98c867c85c68b4aa7f3eec43ae4b66cbf1c81dbc297509c7f523496a96c72d27706bda SHA512 1d1c1e18390e5e4906207d85923204faa4a85e496906eb26ef49c00c845b359cda4ec305a374273f00535dd43eb5776ceef86aa59738e21ac3a242cc38e3590c DIST VBoxGuestAdditions_7.2.8.iso 53442560 BLAKE2B 2573b283839d42e7fa3b3e6b37d0c7dfca0bbd223d1a7af3b5452c9b7ee364e465b19e0d1cf70524991579a7b16e134483fef58169bf45ad72b2e176f9696881 SHA512 265a58341b842278c3e2500f605636b3d69af376456c2366abb72e93daf95d419de23f20e8528d6550084253c5b1e953014f20ad53535d716dadff96e01a5ef2 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-7.2.6.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-7.2.6.ebuild deleted file mode 100644 index fdec5d1d5717..000000000000 --- a/app-emulation/virtualbox-additions/virtualbox-additions-7.2.6.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PN=VBoxGuestAdditions -MY_PV=${PV^^} -MY_P=${MY_PN}_${MY_PV} - -DESCRIPTION="CD image containing guest additions for VirtualBox" -HOMEPAGE="https://www.virtualbox.org/" -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso" -S="${WORKDIR}" - -LICENSE="GPL-3 || ( GPL-3 CDDL )" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64" - -src_unpack() { - return 0 -} - -src_install() { - insinto /usr/share/${PN/-additions} - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso -} diff --git a/app-emulation/virtualbox-extpack-oracle/Manifest b/app-emulation/virtualbox-extpack-oracle/Manifest index 7836647048e6..9b42f28d733f 100644 --- a/app-emulation/virtualbox-extpack-oracle/Manifest +++ b/app-emulation/virtualbox-extpack-oracle/Manifest @@ -1,4 +1,3 @@ DIST Oracle_VM_VirtualBox_Extension_Pack-7.0.26.tar.gz 18268793 BLAKE2B 26b53bb022dab26a02fb450252ad07d58b3e9f7fb103752396652e1950b6c77f4f2ff8eff1a1e6d4a0c38de331110b26f26f1750d211aaebb71198513e2fad74 SHA512 bae8dfeea7048a1d7057b27f9815fa626b87beafa182d801b650048dd95cfae7cf87ed7dbf2dc87678748b5f4e46d7d284da1d1aaa0be9b3e214ccb16dd76630 DIST Oracle_VirtualBox_Extension_Pack-7.1.18.tar.gz 22971432 BLAKE2B eff180e2c1f112698184d863a3f7907af6f87dd34dd60baed09d29a2c7799d5079ab743d59e7b0421716cf9c5674b2caeb28626e46bf6ca790b893427473e722 SHA512 cc86ece4fa818c5f2459513eb53eabe581bc76dddaca8d155c4824f2c838ec8356c63dcb3fe951ad43fa29be49ce34774fadc1eeca519cafdbe1ce368e18166f -DIST Oracle_VirtualBox_Extension_Pack-7.2.6.tar.gz 20040709 BLAKE2B 759afd7b8b1b55faf7723d5658f2a42c8e4d10b18c0144bb408dbe955bd24f165da095302394e2a2439b414f799d3e801fa00d8ac4791d727ddb8b2bc91d22f2 SHA512 4878a961333b488195713315c726f132f36d943e9b4a2def7d94f751595f9b3b1ab52dd38b574dc9b896cf9c73e0670fa3d5f2a2c28ba0d6ac1ef97fb346aa49 DIST Oracle_VirtualBox_Extension_Pack-7.2.8.tar.gz 20069022 BLAKE2B db3176fecee6382cb015c00f708ffad88d5cf4139c165bc453525ec5c059fa2c4f007bafd1ec493bfe3882aad6449b737afa66f9bf4079ffa7ab0998b5af89df SHA512 abef46967131ef0d37ab63a5c0b2d0b843e7c723a31b3f2daae8d9dd05fbef4feb33bd039ff0b7da2b1222e16809fa767736432d3bf533915b786dfaa89e70e0 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-7.2.6.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-7.2.6.ebuild deleted file mode 100644 index 61f505038ea8..000000000000 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-7.2.6.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PV="${PV^^}" -MY_PN="Oracle_VirtualBox_Extension_Pack" -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="PUEL extensions for VirtualBox" -HOMEPAGE="https://www.virtualbox.org/" -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz" -S="${WORKDIR}" - -LICENSE="PUEL-12" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64" -RESTRICT="bindist mirror strip" - -RDEPEND=" - || ( - =app-emulation/virtualbox-${PV}* - =app-emulation/virtualbox-kvm-${PV}* - ) -" - -QA_PREBUILT="usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/*" - -src_install() { - insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN} - doins -r linux.${ARCH} - doins ExtPack* PXE-Intel.rom -} diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest index 25da1ff42a9b..0c96bff89e8b 100644 --- a/app-emulation/virtualbox-guest-additions/Manifest +++ b/app-emulation/virtualbox-guest-additions/Manifest @@ -1,6 +1,5 @@ DIST VirtualBox-7.0.26.tar.bz2 174650718 BLAKE2B ba13a940b9566a5ac5b228bf29d49d4b9bf16a72da3212c305538711d363f1e6fddaa8717d4c46394ce488d2c1670874fece356740f421f44f6f40bd655f5551 SHA512 337f62438679f98b342213dbafdd3e07f7d7092a4205bfe388d64d1cc8224499621addea56b70d806c93290bb82e6150c07516e69250460a276e3b7a4484a9b6 DIST VirtualBox-7.1.18.tar.bz2 222872511 BLAKE2B 1c692a6bd86185035e379feefddd3e98c18a49f231a2fd57702ca95c887ffe9ec435a90ebad457d07054bcd88bd31d84db61ed21ae8a99ae6d6ca39e18b1879c SHA512 bb0eae83af0ca94e502fc713a5fdf90e2760eb90e548ad102259b57edcda98f04adf6e9cb83b52bee3c1b341f1c2823fec05a0c60a2403e70be6159dd4a21c34 -DIST VirtualBox-7.2.6.tar.bz2 211192590 BLAKE2B 4871e52d8ebc6eb05c6c7dc08a7a38010bb536e7db4617023235ce8104a984e267341a502e3c385abe1a2fd4e0bb1e054f55794b994a5dba79e368f5ef4c3f9a SHA512 77b83b9fd086f89313eb73ecf98f3b2484985ddf6bb89d514b350e55f44c37a001f842d966173d0eed5071db08e1b0e66e0cbab4365ec99b7904143a7d162a55 DIST VirtualBox-7.2.8.tar.bz2 207408458 BLAKE2B f57d2cbf02cb6b4b78a203737d1e12916b396e188a58d075b2b6414e83e526f0adecab7e317b33a639de51d30b8351d74dc4beb48e57e5a0feb1bf68d2523339 SHA512 a67256506c870b7fcecb0ec8b1d5e75490ee02379b5e967aead44ed09e2b15c0a2c3fd2d1e021281609d8d1f98b161cd3aa0265938490a999a700a1e01a9013b DIST virtualbox-patches-7.0.16.tar.bz2 6808 BLAKE2B d15fa2ca306375142c3e25d4759d2790b2bb9eb69e333a8773ad500b29dd127b401943abf59ca59d01858a3ed5551fb3a6c93c4c893c8de971a714ce5306d577 SHA512 a488cbc6660fe8637c44cd79d87156609af089988239a7e76fea8a3c7e6319512c574bef2e942b354b14ce671a8e75ab8b2160abf7c40963795ee8a545ecd992 DIST virtualbox-patches-7.1.16.tar.bz2 6001 BLAKE2B 0e8bd42b9556321841e94827df500cbed40ecffc47e2e82fbcc7a98e00a069322e7e549f6ceb250359735d3602467fa55c81aa2534c05502b1854e8a11b839c5 SHA512 aea93103e5122568b7c0bb70566872935326675c7f9dda00563a83e0cb59c92020501e780e30b2b58c1c0b0f2cb97a6d72379702c913c14fd4c7546f7e033361 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-7.2.6.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-7.2.6.ebuild deleted file mode 100644 index c25fe5958d64..000000000000 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-7.2.6.ebuild +++ /dev/null @@ -1,256 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit edo readme.gentoo-r1 systemd toolchain-funcs udev - -MY_PN="VirtualBox" -MY_PV=${PV^^} -MY_P=${MY_PN}-${MY_PV} -PATCHES_PV="7.2.6" - -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests" -HOMEPAGE="https://www.virtualbox.org/" -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2 - https://gitweb.gentoo.org/proj/virtualbox-patches.git/snapshot/virtualbox-patches-${PATCHES_PV}.tar.bz2" -S="${WORKDIR}/${MY_PN}-${MY_PV}" - -LICENSE="GPL-3 LGPL-2.1+ MIT || ( GPL-3 CDDL )" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64 ~arm64 x86" -IUSE="+dbus gui" - -RDEPEND=" - acct-group/vboxguest - acct-group/vboxsf - acct-user/vboxguest - sys-libs/pam - virtual/zlib:= - ~app-emulation/virtualbox-guest-modules-${PV} - dbus? ( sys-apps/dbus ) - gui? ( - x11-apps/xrandr - x11-apps/xrefresh - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXmu - x11-libs/libXt - ) -" -# some libs here are indirect dependencies, and also needed at compile time. -# keeping them in DEPEND to avoid warnings from qa-vdb. -DEPEND=" - ${RDEPEND} - gui? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libXau - x11-libs/libXdmcp - x11-base/xorg-proto - ) -" -BDEPEND=" - >=dev-lang/yasm-0.6.2 - >=dev-build/kbuild-0.1.9998.3660 - sys-devel/bin86 - sys-power/iasl -" - -PATCHES=( - "${FILESDIR}"/${PN}-7.1.6-disable-vboxvideo-module.patch - "${FILESDIR}"/${PN}-7.1-arm64.patch - "${WORKDIR}/virtualbox-patches-${PATCHES_PV}/patches" -) - -DOCS=() # Don't install the default README file during einstalldocs - -DOC_CONTENTS="\n -Please add users to the \"vboxguest\" group so they can\n -benefit from seamless mode, auto-resize and clipboard.\n -\n -The vboxsf group has been added to make automount services work.\n -These services are part of the shared folders support.\n -\n -Please add:\n - /etc/init.d/virtualbox-guest-additions\n -to the default runlevel in order to start\n -needed services.\n -\n -An autostart .desktop file has been installed to start\n -VBoxClient in desktop sessions.\n -\n -You can mount shared folders with:\n - mount -t vboxsf <shared_folder_name> <mount_point>\n -\n -Warning:\n - this ebuild is only needed if you are running gentoo\n - inside a VirtualBox Virtual Machine, you don't need\n - it to run VirtualBox itself.\n -\n" - -src_prepare() { - # Remove shipped binaries (kBuild,yasm), see bug #232775 - rm -r kBuild/bin tools || die - - # Disable things unused or splitted into separate ebuilds - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die - if use gui; then - echo "VBOX_NO_LEGACY_XORG_X11 := 1" >> LocalConfig.kmk || die - else - echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk || die - fi - - # Remove pointless GCC version check - sed -e '/ check_gcc$/d' -i configure || die - - # Respect LDFLAGS (bug #759100) - sed -i -e '/TEMPLATE_VBoxR3Exe_LDFLAGS.linux[ ]*=/ s/$/ $(CCLDFLAGS)/' Config.kmk || die - - eapply "${PATCHES[@]}" - eapply_user -} - -src_configure() { - tc-export AR CC CXX LD RANLIB - - # Build the user-space tools, warnings are harmless - local myconf=( - --with-gcc="$(tc-getCC)" - --with-g++="$(tc-getCXX)" - - --nofatal - --disable-xpcom - --disable-sdl-ttf - --disable-pulse - --disable-alsa - $(usev !dbus --disable-dbus) - --target-arch=${ARCH} - --disable-kmods - --build-headless - ) - - # bug #843437 - # Respect LDFLAGS (bug #759100) - # Cannot use LDFLAGS here because they also get passed to $(LD) - cat >> LocalConfig.kmk <<-EOF || die - CFLAGS=${CFLAGS} - CXXFLAGS=${CXXFLAGS} - CCLDFLAGS=${LDFLAGS} - EOF - - edo ./configure "${myconf[@]}" -} - -src_compile() { - source ./env.sh || die - - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) - MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) - MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}" - - local myemakeargs=( - VBOX_BUILD_PUBLISHER=_Gentoo - VBOX_ONLY_ADDITIONS=1 - - KBUILD_VERBOSE=2 - - AS="$(tc-getCC)" - CC="$(tc-getCC)" - CXX="$(tc-getCXX)" - LD="$(tc-getCC)" - - TOOL_GCC3_CC="$(tc-getCC)" - TOOL_GCC3_CXX="$(tc-getCXX)" - TOOL_GCC3_LD="$(tc-getCC)" - TOOL_GCC3_AS="$(tc-getCC)" - TOOL_GCC3_AR="$(tc-getAR)" - TOOL_GCC3_OBJCOPY="$(tc-getOBJCOPY)" - #TOOL_GCC3_LD_SYSMOD="$(tc-getCC)" - - TOOL_GXX3_CC="$(tc-getCC)" - TOOL_GXX3_CXX="$(tc-getCXX)" - TOOL_GXX3_LD="$(tc-getCXX)" - TOOL_GXX3_AS="$(tc-getCXX)" - TOOL_GXX3_AR="$(tc-getAR)" - TOOL_GXX3_OBJCOPY="$(tc-getOBJCOPY)" - #TOOL_GXX3_LD_SYSMOD="$(tc-getCXX)" - - TOOL_GCC3_CFLAGS="${CFLAGS}" - TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" - VBOX_GCC_OPT="${CXXFLAGS}" - VBOX_NM="$(tc-getNM)" - TOOL_YASM_AS=yasm - ) - - MAKE="kmk" emake "${myemakeargs[@]}" -} - -src_install() { - cd out/linux.${ARCH}/release/bin/additions || die - - insinto /sbin - newins mount.vboxsf mount.vboxsf - fperms 4755 /sbin/mount.vboxsf - - if use dbus; then - newinitd "${FILESDIR}"/${PN}-8.initd-r1 ${PN} - else - newinitd <(sed 's/ dbus\>//' "${FILESDIR}"/${PN}-8.initd-r1) ${PN} - fi - - insinto /usr/sbin/ - newins VBoxService vboxguest-service - fperms 0755 /usr/sbin/vboxguest-service - - insinto /usr/bin - doins VBoxControl - fperms 0755 /usr/bin/VBoxControl - - # VBoxClient user service and xrandr wrapper - if use gui ; then - doins VBoxClient - fperms 0755 /usr/bin/VBoxClient - doins VBoxDRMClient - fperms 4755 /usr/bin/VBoxDRMClient - - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null || die - newins 98vboxadd-xclient VBoxClient-all - fperms 0755 /usr/bin/VBoxClient-all - popd &>/dev/null || die - fi - - # udev rule for vboxdrv - local udev_rules_dir="/lib/udev/rules.d" - dodir ${udev_rules_dir} - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ - >> "${ED}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \ - || die - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ - >> "${ED}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \ - || die - - # VBoxClient autostart file - insinto /etc/xdg/autostart - doins "${FILESDIR}"/vboxclient.desktop - - systemd_dounit "${FILESDIR}/${PN}.service" - - readme.gentoo_create_doc -} - -pkg_postinst() { - udev_reload - - if ! use gui ; then - elog "The use flag \"gui\" is off, enable it to install the" - elog "X Window System drivers and integration." - fi - - readme.gentoo_print_elog -} - -pkg_postrm() { - udev_reload -} diff --git a/app-emulation/virtualbox-guest-modules/Manifest b/app-emulation/virtualbox-guest-modules/Manifest index a3558f024caa..fb907027ae5f 100644 --- a/app-emulation/virtualbox-guest-modules/Manifest +++ b/app-emulation/virtualbox-guest-modules/Manifest @@ -1,4 +1,3 @@ DIST vbox-guest-kernel-module-src-7.0.26.tar.xz 691328 BLAKE2B 8bbe434bb34e2046227713ce9d8508754621b6210e29dbfffa18129c8156ee6da265280db0a2d0485abd9f6299bc56ac2490b3a35057b594456ea3ba31445cf2 SHA512 fbdf7bd9fa23e71d1421006424379893d078edc7bb1d9720f941289a754dba9cedbb0eb741beecab2da312b4230effca6ccd2e570923d4c2242be3557e330fd5 DIST vbox-guest-kernel-module-src-7.1.18.tar.xz 751300 BLAKE2B 691ef51f62f9d8c908c57b8da25b3803e5f1b9f1e5d172564acf0d71ce227e066e4780acc96dd13851045ff4cef668c2d3647fc2e570f8a19504be3a19a9c60f SHA512 5196577d2af2ce5f64bd9a2ac590f920e9cdecfd8ed56ea79699e211b958f4614fbd508f152e05f95ce31cdb824efd465420da8eb5b52b877f1f0fd3623467b1 -DIST vbox-guest-kernel-module-src-7.2.6.tar.xz 751008 BLAKE2B 2733c22535f3fa5597580d0da495b8166c20c96e0e10bae5894e099bb24c9516ec28303129787c8c9d2dcf95c37fadcacacc30dbbe15e9ec49947344ea20c213 SHA512 08e503de4b90f4c3fa76f5a3b0670611e7463cf4c5fc5c317043663207fb0c87fc8da5c2bcdd8912a916a3284adba00ba2c1de4a7517cefb2eed9ce1ca082f56 DIST vbox-guest-kernel-module-src-7.2.8.tar.xz 754192 BLAKE2B ecccd02a83a675e870f362c0ea44d0a7b52d1db9a55fc5ddb24f6a8c1161a2370dbb82adf251de6c80e9e7dfaf4503e0e96f956bd4f756bceb60bbb9cb8d578f SHA512 ea18bdf93aa382a9b81d20f7fbf0c0c4ccbbffe892b3ca4ebd46bd95c5ab7460140dedf9b657ac48bc9cbc13388ae2d0bdf1a8ecab7a8f0dfa180b6394d155cf diff --git a/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-kernel-6.19-1.patch b/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-kernel-6.19-1.patch deleted file mode 100644 index b3f6b0345c2c..000000000000 --- a/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-kernel-6.19-1.patch +++ /dev/null @@ -1,117 +0,0 @@ -https://github.com/VirtualBox/virtualbox/commit/280303b3f03d7087b9c955088a3cf499414f6ec1 - -From 280303b3f03d7087b9c955088a3cf499414f6ec1 Mon Sep 17 00:00:00 2001 -From: Vadim Galitsyn <vadim.galitsyn@oracle.com> -Date: Tue, 17 Feb 2026 15:00:09 +0000 -Subject: [PATCH] Linux host: Introduce initial support for kernel 6.19 - bugref:11038. - -svn:sync-xref-src-repo-rev: r172809 ---- a/vboxguest/r0drv/linux/initterm-r0drv-linux.c -+++ b/vboxguest/r0drv/linux/initterm-r0drv-linux.c -@@ -60,6 +60,11 @@ static DECLARE_TASK_QUEUE(g_rtR0LnxWorkQueue); - * This is a special mm structure used to manage the kernel address space. */ - struct mm_struct *g_pLnxInitMm = NULL; - -+#if RTLNX_VER_MIN(6,19,0) -+/** Pointer to __flush_tlb_all kernel symbol. */ -+void (*g_pfnLinuxFlushTlbAll)(void); -+#endif -+ - - /** - * Pushes an item onto the IPRT work queue. -@@ -136,6 +141,11 @@ DECLHIDDEN(int) rtR0InitNative(void) - printk("rtR0InitNative: g_pLnxInitMm=%p\n", g_pLnxInitMm); - - RTR0DbgKrnlInfoRelease(hKrnlInfo); -+# if RTLNX_VER_MIN(6,19,0) -+ g_pfnLinuxFlushTlbAll = __symbol_get("__flush_tlb_all"); -+ if (!RT_VALID_PTR(g_pfnLinuxFlushTlbAll)) -+ printk("rtR0InitNative: can't load __flush_tlb_all\n"); -+# endif - } - else - printk("rtR0InitNative: RTR0DbgKrnlInfoOpen failed: %d\n", rc); -@@ -151,6 +161,12 @@ DECLHIDDEN(void) rtR0TermNative(void) - { - IPRT_LINUX_SAVE_EFL_AC(); - -+# if RTLNX_VER_MIN(6,19,0) -+ if (RT_VALID_PTR(g_pfnLinuxFlushTlbAll)) -+ symbol_put_addr(g_pfnLinuxFlushTlbAll); -+ g_pfnLinuxFlushTlbAll = NULL; -+#endif -+ - rtR0LnxWorkqueueFlush(); - #if RTLNX_VER_MIN(2,5,41) - destroy_workqueue(g_prtR0LnxWorkQueue); ---- a/vboxguest/r0drv/linux/memobj-r0drv-linux.c -+++ b/vboxguest/r0drv/linux/memobj-r0drv-linux.c -@@ -181,7 +181,7 @@ static const struct - * Internal Functions * - *********************************************************************************************************************************/ - static void rtR0MemObjLinuxFreePages(PRTR0MEMOBJLNX pMemLnx); -- -+static void rtR0MemObjLinuxFlushTlbAll(void); - - - /** -@@ -2245,6 +2245,15 @@ DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ p - return rc; - } - -+static void rtR0MemObjLinuxFlushTlbAll(void) -+{ -+#if RTLNX_VER_MIN(6,19,0) -+ if (RT_LIKELY(RT_VALID_PTR(g_pfnLinuxFlushTlbAll))) -+ g_pfnLinuxFlushTlbAll(); -+#else -+ __flush_tlb_all(); -+#endif -+} - - DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt) - { -@@ -2265,7 +2274,7 @@ DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, - set_pte(papPtes[i], mk_pte(pMemLnx->apPages[i], fPg)); - } - preempt_disable(); -- __flush_tlb_all(); -+ rtR0MemObjLinuxFlushTlbAll(); - preempt_enable(); - return VINF_SUCCESS; - } -@@ -2311,7 +2320,7 @@ DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, - flush_icache_range((uintptr_t)pMemLnx->Core.pv + offSub, cbSub); - # if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) /* flush_tlb_kernel_range is not exported, but __flush_tlb_all is. */ - preempt_disable(); -- __flush_tlb_all(); -+ rtR0MemObjLinuxFlushTlbAll(); - preempt_enable(); - # else - flush_tlb_kernel_range((uintptr_t)pMemLnx->Core.pv + offSub, cbSub); ---- a/vboxsf/r0drv/linux/the-linux-kernel.h -+++ b/vboxsf/r0drv/linux/the-linux-kernel.h -@@ -512,6 +512,9 @@ RTDECL(struct page *) rtR0MemObjLinuxVirtToPage(void *pv); - - - extern struct mm_struct *g_pLnxInitMm; -+#if RTLNX_VER_MIN(6,19,0) -+extern void (*g_pfnLinuxFlushTlbAll)(void); -+#endif - - - #endif /* !IPRT_INCLUDED_SRC_r0drv_linux_the_linux_kernel_h */ ---- a/vboxguest/r0drv/linux/the-linux-kernel.h -+++ b/vboxguest/r0drv/linux/the-linux-kernel.h -@@ -512,6 +512,9 @@ RTDECL(struct page *) rtR0MemObjLinuxVirtToPage(void *pv); - - - extern struct mm_struct *g_pLnxInitMm; -+#if RTLNX_VER_MIN(6,19,0) -+extern void (*g_pfnLinuxFlushTlbAll)(void); -+#endif - - - #endif /* !IPRT_INCLUDED_SRC_r0drv_linux_the_linux_kernel_h */ diff --git a/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-kernel-6.19-3.patch b/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-kernel-6.19-3.patch deleted file mode 100644 index ddf670fed21e..000000000000 --- a/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-kernel-6.19-3.patch +++ /dev/null @@ -1,40 +0,0 @@ -https://github.com/VirtualBox/virtualbox/commit/33992f0e56b8a9bb565e0beecad91e87362ab390 - -From 33992f0e56b8a9bb565e0beecad91e87362ab390 Mon Sep 17 00:00:00 2001 -From: Vadim Galitsyn <vadim.galitsyn@oracle.com> -Date: Tue, 17 Feb 2026 15:37:37 +0000 -Subject: [PATCH] Linux host: Introduce initial support for kernel 6.19 (build - fix for old kernels),bugref:11038. - -svn:sync-xref-src-repo-rev: r172811 ---- a/vboxguest/r0drv/linux/memobj-r0drv-linux.c -+++ b/vboxguest/r0drv/linux/memobj-r0drv-linux.c -@@ -181,7 +181,6 @@ static const struct - * Internal Functions * - *********************************************************************************************************************************/ - static void rtR0MemObjLinuxFreePages(PRTR0MEMOBJLNX pMemLnx); --static void rtR0MemObjLinuxFlushTlbAll(void); - - - /** -@@ -2245,15 +2244,17 @@ DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ p - return rc; - } - -+#if defined(IPRT_USE_ALLOC_VM_AREA_FOR_EXEC) || defined(IPRT_USE_APPLY_TO_PAGE_RANGE_FOR_EXEC) - static void rtR0MemObjLinuxFlushTlbAll(void) - { --#if RTLNX_VER_MIN(6,19,0) -+# if RTLNX_VER_MIN(6,19,0) - if (RT_LIKELY(RT_VALID_PTR(g_pfnLinuxFlushTlbAll))) - g_pfnLinuxFlushTlbAll(); --#else -+# else - __flush_tlb_all(); --#endif -+# endif - } -+#endif - - DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt) - { diff --git a/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-no-vboxvideo.patch b/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-no-vboxvideo.patch deleted file mode 100644 index aadac7938f9e..000000000000 --- a/app-emulation/virtualbox-guest-modules/files/virtualbox-guest-modules-7.2.6-no-vboxvideo.patch +++ /dev/null @@ -1,15 +0,0 @@ -https://bugs.gentoo.org/972754 - -We do not use vboxvideo but the default Makefile builds it anyway. - ---- a/Makefile -+++ b/Makefile -@@ -42,7 +42,7 @@ - VBOX_QUIET_SH := set -x; - endif - --all: vboxguest vboxsf vboxvideo -+all: vboxguest vboxsf - - vboxguest: - @echo "=== Building 'vboxguest' module ===" diff --git a/app-emulation/virtualbox-guest-modules/virtualbox-guest-modules-7.2.6-r1.ebuild b/app-emulation/virtualbox-guest-modules/virtualbox-guest-modules-7.2.6-r1.ebuild deleted file mode 100644 index fa46c8239daf..000000000000 --- a/app-emulation/virtualbox-guest-modules/virtualbox-guest-modules-7.2.6-r1.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# XXX: the tarball here is just the kernel modules split out of the binary -# package that comes from VirtualBox-*.run -# XXX: update: now it is split from virtualbox-*-Debian~bullseye_amd64.deb - -EAPI=8 - -inherit linux-mod-r1 - -MY_P="vbox-guest-kernel-module-src-${PV^^}" -DESCRIPTION="Kernel Modules for Virtualbox Guest Additions" -HOMEPAGE="https://www.virtualbox.org/" -SRC_URI="https://distfiles.gentoo.org/pub/dev/ceamac@gentoo.org/${CATEGORY}/${PN}/${MY_P}.tar.xz" -S="${WORKDIR}" - -LICENSE="GPL-3" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64 ~arm64 x86" - -PATCHES=( - "${FILESDIR}"/${PN}-7.2.6-log-use-c99.patch - "${FILESDIR}"/${P}-kernel-6.19-{1,3}.patch - "${FILESDIR}"/${P}-no-vboxvideo.patch -) - -CONFIG_CHECK="~DRM_TTM ~DRM_VMWGFX" -WARNING_DRM_TTM="DRM_TTM is needed for running the vboxvideo driver." -WARNING_DRM_VMWGFX="DRM_VMWGFX is the recommended driver for VMSVGA." - -src_compile() { - local modlist=( {vboxguest,vboxsf}=misc ) - local modargs=( KERN_DIR="${KV_OUT_DIR}" KERN_VER="${KV_FULL}" ) - linux-mod-r1_src_compile -} - -src_install() { - linux-mod-r1_src_install - - insinto /etc/modprobe.d # 485996 - newins - vboxsf.conf <<-EOF - # modprobe.d configuration file for VBOXSF - - # Internal Aliases - Do not edit - # ------------------------------ - alias fs-vboxsf vboxsf - EOF -} diff --git a/app-emulation/virtualbox-kvm/Manifest b/app-emulation/virtualbox-kvm/Manifest index c02bbbb11384..9c5473280e66 100644 --- a/app-emulation/virtualbox-kvm/Manifest +++ b/app-emulation/virtualbox-kvm/Manifest @@ -1,6 +1,4 @@ -DIST VirtualBox-7.2.6.tar.bz2 211192590 BLAKE2B 4871e52d8ebc6eb05c6c7dc08a7a38010bb536e7db4617023235ce8104a984e267341a502e3c385abe1a2fd4e0bb1e054f55794b994a5dba79e368f5ef4c3f9a SHA512 77b83b9fd086f89313eb73ecf98f3b2484985ddf6bb89d514b350e55f44c37a001f842d966173d0eed5071db08e1b0e66e0cbab4365ec99b7904143a7d162a55 DIST VirtualBox-7.2.8.tar.bz2 207408458 BLAKE2B f57d2cbf02cb6b4b78a203737d1e12916b396e188a58d075b2b6414e83e526f0adecab7e317b33a639de51d30b8351d74dc4beb48e57e5a0feb1bf68d2523339 SHA512 a67256506c870b7fcecb0ec8b1d5e75490ee02379b5e967aead44ed09e2b15c0a2c3fd2d1e021281609d8d1f98b161cd3aa0265938490a999a700a1e01a9013b -DIST virtualbox-help-7.2.6.tar.xz 8343068 BLAKE2B f383da784fe46cb0c21b0e6a67cec706883f91a73c6e1f6a6b942df73910219966c48bea8783f455bfb370931f53037742fcfb7c09be11be3a9930babc71bc6e SHA512 91b6b51c1879b031530540b3ed78fed3fc7bda1b28a89d94d46c77d6a78e4019d21c65445d6dbedf485195f53401758d4661e5b99bdbf5d0beb7cf625698e3ad DIST virtualbox-help-7.2.8.tar.xz 8378772 BLAKE2B 6941831bcdabe0017f3b03c4741ac5df5feef8aa376f0686878eb70e8ae7e9bdf878a34db86b4756ac65476ea08e3e0f1417db7870d35619bb4065bd271264dd SHA512 476d9e3ca3c338ec0c54a91204c24b5033af75c60d55e66693093bef30262157437f36a66c5c8184e9eb95b0a243cd6ec5c59f2c5b9c6dc31f94ab5cea393e5f DIST virtualbox-kvm-20260201.tar.gz 273470 BLAKE2B 2379d031fdb0c5301bdd947d22817d5cb12067a63c288fa650db9ee940fd88639ff499a0226cfb297494d4a8c46da169d26646671d24229d68bca7966f175439 SHA512 55c5222c82b2854a9a3c7aaa46edcb598ba1272032bb33dd0783ea14d2c2696b85a0aaeb2440fea2da59dd36bba06650c00526d7ca659dce246f9f8678aa8a46 DIST virtualbox-patches-7.2.6.tar.bz2 6041 BLAKE2B 6bd791a24acccc7ab923f09b5a1a88f557c59f2526b1055c7a877e3ca25ca002c58cc5fb67737e2f53c322bae5c716dba4472da8c977006d6297793fae55fafc SHA512 94a49da99d6affa0c89e0fb349bb09fd1dc7f05ced9c828d52d30455fb8c76a245db1f572491801fa381e7521bc8f4e094ddb3d8fd2d341835f3bd238a24cc25 diff --git a/app-emulation/virtualbox-kvm/virtualbox-kvm-7.2.6_pre20260201-r1.ebuild b/app-emulation/virtualbox-kvm/virtualbox-kvm-7.2.6_pre20260201-r1.ebuild deleted file mode 100644 index 1f726b715b3a..000000000000 --- a/app-emulation/virtualbox-kvm/virtualbox-kvm-7.2.6_pre20260201-r1.ebuild +++ /dev/null @@ -1,788 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# To add a new Python here: -# 1. Patch src/libs/xpcom18a4/python/Makefile.kmk (copy the previous impl's logic) -# Do NOT skip this part. It'll end up silently not-building the Python extension -# or otherwise misbehaving if you do. -# -# 2. Then update PYTHON_COMPAT & set PYTHON_SINGLE_TARGET for testing w/ USE=python. -# -# May need to look at other distros (e.g. Arch Linux) to find patches for newer -# Python versions as upstream tends to lag. Upstream may have patches on their -# trunk branch but not release branch. -# -# See bug #785835, bug #856121. -PYTHON_COMPAT=( python3_{13..14} ) - -inherit desktop edo flag-o-matic java-pkg-opt-2 linux-info multilib optfeature pax-utils \ - python-single-r1 tmpfiles toolchain-funcs udev xdg - -PATCHES_PV="7.2.6" -ORIGIN_PN="VirtualBox" -ORIGIN_PV=${PV%_pre*} - -MY_PN=virtualbox -MY_PV=${PV#*_pre} -MY_P=${ORIGIN_PN}-${ORIGIN_PV} - -PATCHES_DIR="${WORKDIR}"/${PN}-dev-${MY_PV} - -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use" -HOMEPAGE="https://www.virtualbox.org/ https://github.com/cyberus-technology/virtualbox-kvm" -SRC_URI=" - https://gitweb.gentoo.org/proj/virtualbox-patches.git/snapshot/virtualbox-patches-${PATCHES_PV}.tar.bz2 - https://github.com/cyberus-technology/virtualbox-kvm/archive/dev-${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz - https://download.virtualbox.org/virtualbox/${ORIGIN_PV%*a}/${MY_P}.tar.bz2 - gui? ( !doc? ( https://dev.gentoo.org/~ceamac/${CATEGORY}/${MY_PN}/${MY_PN}-help-${ORIGIN_PV}.tar.xz ) ) -" -S="${WORKDIR}/${ORIGIN_PN}-${ORIGIN_PV%*a}" - -LICENSE="GPL-2+ GPL-3 LGPL-2.1 MIT dtrace? ( CDDL )" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="alsa dbus debug doc dtrace +gui +hardened java lvm nls pam pch pulseaudio +opengl python +sdk +sdl test +udev vboxwebsrv vde +vmmraw vnc" -RESTRICT="!test? ( test )" - -unset WATCOM #856769 - -COMMON_DEPEND=" - acct-group/vboxusers - app-arch/xz-utils - dev-libs/libtpms - dev-libs/libxml2:= - dev-libs/openssl:0= - media-libs/libogg - media-libs/libpng:0= - media-libs/libvorbis - media-libs/libvpx:0= - net-misc/curl - virtual/zlib:= - dbus? ( sys-apps/dbus ) - gui? ( - dev-qt/qtbase:6[X,wayland,widgets] - dev-qt/qtscxml:6 - dev-qt/qttools:6[assistant] - x11-libs/libX11 - x11-libs/libXt - ) - lvm? ( sys-fs/lvm2 ) - opengl? ( - media-libs/libglvnd[X] - media-libs/vulkan-loader - x11-libs/libX11 - x11-libs/libXt - ) - pam? ( sys-libs/pam ) - python? ( ${PYTHON_DEPS} ) - sdl? ( - media-libs/libsdl2[X,video] - x11-libs/libX11 - x11-libs/libXt - ) - vboxwebsrv? ( net-libs/gsoap[-gnutls(-),debug?] ) - vde? ( net-misc/vde ) - vnc? ( >=net-libs/libvncserver-0.9.9 ) -" -# We're stuck on JDK (and JRE, I guess?) 1.8 because of need for wsimport -# with USE="vboxwebsrv java". Note that we have to put things in DEPEND, -# not (only, anyway) BDEPEND, as the eclass magic to set the environment variables -# based on *DEPEND doesn't work for BDEPEND at least right now. -# -# There's a comment in Config.kmk about it -# ("With Java 11 wsimport was removed, usually part of a separate install now.") -# but it needs more investigation. -# -# See bug #878299 to track this issue. -DEPEND=" - ${COMMON_DEPEND} - >=dev-libs/libxslt-1.1.19 - virtual/libcrypt:= - x11-libs/libXt - alsa? ( >=media-libs/alsa-lib-1.0.13 ) - gui? ( - x11-base/xorg-proto - x11-libs/libxcb:= - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXinerama - x11-libs/libXmu - x11-libs/libXrandr - ) - java? ( virtual/jdk:1.8 ) - opengl? ( - x11-base/xorg-proto - x11-libs/libXcursor - x11-libs/libXinerama - x11-libs/libXmu - x11-libs/libXrandr - virtual/glu - ) - sdl? ( - x11-libs/libXcursor - x11-libs/libXinerama - ) - pulseaudio? ( media-libs/libpulse ) - udev? ( >=virtual/udev-171 ) -" -RDEPEND=" - !app-emulation/virtualbox - ${COMMON_DEPEND} - gui? ( x11-libs/libxcb:= ) - java? ( virtual/jre:1.8 ) -" -BDEPEND=" - >=app-arch/tar-1.34-r2 - >=dev-lang/yasm-0.6.2 - dev-util/glslang - >=dev-build/kbuild-0.1.9998.3660 - sys-apps/which - sys-devel/bin86 - sys-libs/libcap - sys-power/iasl - virtual/pkgconfig - doc? ( - app-doc/dita-ot-bin - app-text/docbook-sgml-dtd:4.4 - app-text/docbook-xsl-ns-stylesheets - dev-texlive/texlive-basic - dev-texlive/texlive-latex - dev-texlive/texlive-latexrecommended - dev-texlive/texlive-latexextra - dev-texlive/texlive-fontsrecommended - dev-texlive/texlive-fontsextra - dev-qt/qttools:6[assistant] - sys-libs/nss_wrapper - ) - gui? ( dev-qt/qttools:6[linguist] ) - nls? ( dev-qt/qttools:6[linguist] ) - java? ( virtual/jdk:1.8 ) - python? ( - ${PYTHON_DEPS} - test? ( - $(python_gen_cond_dep ' - dev-python/pytest[${PYTHON_USEDEP}] - ') - ) - ) -" - -QA_FLAGS_IGNORED=" - usr/lib64/virtualbox/VBoxDDR0.r0 - usr/lib64/virtualbox/VMMR0.r0 - usr/lib64/virtualbox/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.r0 - usr/lib64/virtualbox/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.debug -" - -QA_TEXTRELS=" - usr/lib64/virtualbox/VMMR0.r0 - usr/lib64/virtualbox/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.r0 -" - -QA_EXECSTACK=" - usr/lib64/virtualbox/iPxeBaseBin - usr/lib64/virtualbox/VMMR0.r0 - usr/lib64/virtualbox/VBoxDDR0.r0 - usr/lib64/virtualbox/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.r0 - usr/lib64/virtualbox/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.debug -" - -QA_WX_LOAD=" - usr/lib64/virtualbox/iPxeBaseBin -" - -QA_PRESTRIPPED=" - usr/lib64/virtualbox/VMMR0.r0 - usr/lib64/virtualbox/VBoxDDR0.r0 - usr/lib64/virtualbox/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.r0 -" - -REQUIRED_USE=" - java? ( sdk ) - python? ( sdk ${PYTHON_REQUIRED_USE} ) - vboxwebsrv? ( java ) -" - -PATCHES=( - # Downloaded patchset - "${WORKDIR}"/virtualbox-patches-${PATCHES_PV}/patches - "${PATCHES_DIR}"/patches -) - -pkg_pretend() { - if ! use gui; then - einfo "No USE=\"gui\" selected, this build will not include any Qt frontend." - fi - - if ! use opengl; then - einfo "No USE=\"opengl\" selected, this build will lack" - einfo "the OpenGL feature." - fi - if ! use nls && use gui; then - einfo "USE=\"gui\" also selects USE=\"nls\". This build" - einfo "will have NLS support." - fi - - # 749273 - local d=${ROOT} - for i in usr "$(get_libdir)"; do - d="${d}/$i" - if [[ "$(stat -L -c "%g %u" "${d}")" != "0 0" ]]; then - die "${d} should be owned by root, VirtualBox will not start otherwise" - fi - done -} - -pkg_setup() { - java-pkg-opt-2_pkg_setup - use python && python-single-r1_pkg_setup -} - -src_prepare() { - default - - if use python; then - mkdir test - cp "${FILESDIR}"/test_python.py test/ - python_fix_shebang test/test_python.py - fi - - # Only add nopie patch when we're on hardened - if gcc-specs-pie; then - eapply "${FILESDIR}"/050_virtualbox-5.2.8-nopie.patch - fi - - # Remove shipped binaries (kBuild, yasm) and tools, see bug #232775 - rm -r kBuild/bin || die - # Remove everything in tools except kBuildUnits - find tools -mindepth 1 -maxdepth 1 -name kBuildUnits -prune -o -exec rm -r {} \+ || die - - # Disable things unused or split into separate ebuilds - sed -e "s@MY_LIBDIR@$(get_libdir)@" \ - "${FILESDIR}"/${MY_PN}-5-localconfig > LocalConfig.kmk || die - - if ! use pch; then - # bug #753323 - printf '\n%s\n' "VBOX_WITHOUT_PRECOMPILED_HEADERS=1" \ - >> LocalConfig.kmk || die - fi - - # bug #916002, #488176, #925347 - tc-ld-is-mold || tc-ld-force-bfd - - # Respect LDFLAGS - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \ - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die - - # Do not use hard-coded ld (related to bug #488176) - sed -e '/QUIET)ld /s@ld @$(LD) @' \ - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die - - # Use PAM only when pam USE flag is enbaled (bug #376531) - if ! use pam; then - einfo "Disabling PAM removes the possibility to use the VRDP features." - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \ - src/VBox/HostServices/Makefile.kmk || die - echo -e "\nIPRT_WITHOUT_PAM=1" >> LocalConfig.kmk || die - fi - - # add correct java path - if use java; then - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \ - -i "${S}"/Config.kmk || die - java-pkg-opt-2_src_prepare - fi - - # bug #940482 - filter-flags -fno-plt - - # bug #908814 - filter-lto - - # bug #843437 - cat >> LocalConfig.kmk <<-EOF || die - CXXFLAGS=${CXXFLAGS} - CFLAGS=${CFLAGS} - EOF - - if use sdl; then - sed -i 's/sdl-config/sdl2-config/' configure || die - echo -e "\nVBOX_WITH_VBOXSDL=1" >> LocalConfig.kmk || die - fi - - #443830 - echo -e "\nVBOX_WITH_VBOX_IMG=1" >> LocalConfig.kmk || die - - if tc-is-clang; then - # clang does not support this extension - eapply "${FILESDIR}"/${PN}-7.1.0-disable-rebuild-iPxeBiosBin.patch - fi - - # fix doc generation - echo -e "\nVBOX_PATH_DOCBOOK=/usr/share/sgml/docbook/xsl-ns-stylesheets" >> LocalConfig.kmk || die - # replace xhtml names with numeric equivalents - find doc/manual -name \*.xml -exec sed -i \ - -e 's/ /\ /g' \ - -e 's/–/\–/g' \ - -e 's/←/\←/g' \ - -e 's/→/\→/g' \ - -e 's/↔/\↔/g' {} \+ || die - - # fix help path #891879 - echo -e "\nVBOX_PATH_PACKAGE_DOCS=/usr/share/doc/${PF}" >> LocalConfig.kmk || die - - # 489208 - # Cannot patch the whole text, many translations. Use sed instead to replace the command - find src/VBox/Frontends/VirtualBox/nls -name \*.ts -exec sed -i \ - 's/'[^&]*\(vboxdrv setup\|vboxconfig\)'/\'emerge -1 virtualbox-modules\'/' {} \+ || die - sed -i "s:'/sbin/vboxconfig':'emerge -1 virtualbox-modules':" \ - src/VBox/Frontends/VirtualBox/src/main.cpp \ - src/VBox/VMM/VMMR3/VMR3.cpp || die - - # 890561 - echo -e "\nVBOX_GTAR=gtar" >> LocalConfig.kmk || die - - if ! use nls && ! use gui; then - cat >> LocalConfig.kmk <<-EOF || die - VBOX_WITH_NLS := - VBOX_WITH_MAIN_NLS := - VBOX_WITH_PUEL_NLS := - VBOX_WITH_VBOXMANAGE_NLS := - EOF - fi -} - -src_configure() { - tc-export AR CC CXX LD RANLIB - export HOST_CC="$(tc-getBUILD_CC)" - - # --enable-webservice is a no-op - # webservice is automagically enabled if gsoap is found - local myconf=( - --with-gcc="$(tc-getCC)" - --with-g++="$(tc-getCXX)" - - --disable-kmods - --with-kvm - - $(usev !alsa --disable-alsa) - $(usev !dbus --disable-dbus) - $(usev debug --build-debug) - $(usev !doc --disable-docs) - $(usev !hardened --disable-hardening) - $(usev !java --disable-java) - $(usev !lvm --disable-devmapper) - $(usev !pulseaudio --disable-pulse) - $(usev !python --disable-python) - $(usev !vboxwebsrv --with-gsoap-dir=/dev/null) - $(usev vde --enable-vde) - $(usev vnc --enable-vnc) - ) - - if use gui || use sdl || use opengl; then - myconf+=( - $(usev !opengl --disable-opengl) - $(usev !gui --disable-qt) - $(usev !sdl --disable-sdl) - ) - else - myconf+=( - --build-headless - ) - # disable shared clipboard when headless, it crashes when connecting with RDP: bug #955867 - echo -e "\nVBOX_WITH_SHARED_CLIPBOARD :=" >> LocalConfig.kmk || die - fi - - # not an autoconf script - edo ./configure "${myconf[@]}" - - # Force usage of chosen Python implementation - # bug #856121, bug #785835 - sed -i \ - -e '/VBOX_WITH_PYTHON.*=/d' \ - -e '/VBOX_PATH_PYTHON_INC.*=/d' \ - -e '/VBOX_LIB_PYTHON.*=/d' \ - AutoConfig.kmk || die - - if use python; then - cat >> AutoConfig.kmk <<-EOF || die - VBOX_WITH_PYTHON=$(usev python 1) - VBOX_PATH_PYTHON_INC=$(python_get_includedir) - VBOX_LIB_PYTHON=$(python_get_library_path) - EOF - - local mangled_python="${EPYTHON#python}" - mangled_python="${mangled_python/.}" - - # Stub out the script which defines what the Makefile ends up - # building for. gen_python_deps.py gets called by the Makefile - # with some args and it spits out a bunch of paths for a hardcoded - # list of Pythons. We just override it with what we're actually using. - # This minimises the amount of patching we have to do for new Pythons. - cat > src/libs/xpcom18a4/python/gen_python_deps.py <<-EOF || die - print("VBOX_PYTHON${mangled_python}_INC=$(python_get_includedir)") - print("VBOX_PYTHON${mangled_python}_LIB=$(python_get_library_path)") - print("VBOX_PYTHONDEF_INC=$(python_get_includedir)") - print("VBOX_PYTHONDEF_LIB=$(python_get_library_path)") - EOF - - chmod +x src/libs/xpcom18a4/python/gen_python_deps.py || die - else - cat >> AutoConfig.kmk <<-EOF || die - VBOX_WITH_PYTHON:= - EOF - fi -} - -src_compile() { - source ./env.sh || die - - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) - MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) - MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}" - - local myemakeargs=( - VBOX_BUILD_PUBLISHER=_Gentoo - VBOX_WITH_VBOXIMGMOUNT=1 - - KBUILD_VERBOSE=2 - - AS="$(tc-getCC)" - CC="$(tc-getCC)" - CXX="$(tc-getCXX)" - - TOOL_GCC3_CC="$(tc-getCC)" - TOOL_GCC3_LD="$(tc-getCC)" - TOOL_GCC3_AS="$(tc-getCC)" - TOOL_GCC3_AR="$(tc-getAR)" - TOOL_GCC3_OBJCOPY="$(tc-getOBJCOPY)" - - TOOL_GXX3_CC="$(tc-getCC)" - TOOL_GXX3_CXX="$(tc-getCXX)" - TOOL_GXX3_LD="$(tc-getCXX)" - TOOL_GXX3_AS="$(tc-getCXX)" - TOOL_GXX3_AR="$(tc-getAR)" - TOOL_GXX3_OBJCOPY="$(tc-getOBJCOPY)" - - TOOL_GCC3_CFLAGS="${CFLAGS}" - TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" - VBOX_GCC_OPT="${CXXFLAGS}" - VBOX_NM="$(tc-getNM)" - - TOOL_YASM_AS=yasm - ) - - if use amd64 && has_multilib_profile; then - myemakeargs+=( - CC32="$(tc-getCC) -m32" - CXX32="$(tc-getCXX) -m32" - - TOOL_GCC32_CC="$(tc-getCC) -m32" - TOOL_GCC32_CXX="$(tc-getCXX) -m32" - TOOL_GCC32_LD="$(tc-getCC) -m32" - TOOL_GCC32_AS="$(tc-getCC) -m32" - TOOL_GCC32_AR="$(tc-getAR)" - TOOL_GCC32_OBJCOPY="$(tc-getOBJCOPY)" - - TOOL_GXX32_CC="$(tc-getCC) -m32" - TOOL_GXX32_CXX="$(tc-getCXX) -m32" - TOOL_GXX32_LD="$(tc-getCXX) -m32" - TOOL_GXX32_AS="$(tc-getCXX) -m32" - TOOL_GXX32_AR="$(tc-getAR)" - TOOL_GXX32_OBJCOPY="$(tc-getOBJCOPY)" - ) - fi - - if use doc; then - # dita needs to write to ~/.fop and ~/.java - # but it ignores ${HOME} and tries to write to the real home of user portage - # resulting in a sandbox violation - # -Duser.home= does not work - # force using the temporary homedir with nss_wrapper - echo "${LOGNAME}::$(id -u):$(id -g):${USER}:${HOME}:/bin/bash" >> ~/passwd - echo "${LOGNAME}::$(id -g):" >> ~/group - - local -x LD_PRELOAD=libnss_wrapper.so - local -x NSS_WRAPPER_PASSWD="${HOME}"/passwd - local -x NSS_WRAPPER_GROUP="${HOME}"/group - fi - - MAKE="kmk" emake "${myemakeargs[@]}" all -} - -src_test() { - if use python; then - local -x VBOX_APP_HOME="${S}"/out/linux.${ARCH}/$(usex debug debug release) - local -x VBOX_INSTALL_PATH="${VBOX_APP_HOME}" - local -x VBOX_PROGRAM_PATH="${VBOX_APP_HOME}"/bin - local -x VBOX_SDK_PATH="${VBOX_PROGRAM_PATH}"/sdk - local -x PYTHONPATH="${VBOX_SDK_PATH}"/installer/python/vboxapi/src - einfo "VBOX_APP_HOME ${VBOX_APP_HOME}" - einfo "VBOX_PROGRAM_PATH ${VBOX_PROGRAM_PATH}" - einfo "VBOX_SDK_PATH ${VBOX_SDK_PATH}" - einfo "PYTHONPATH ${PYTHONPATH}" - LD_LIBRARY_PATH="${VBOX_PROGRAM_PATH}" epytest test/ - fi -} - -src_install() { - cd "${S}"/out/linux.${ARCH}/$(usex debug debug release)/bin || die - - local vbox_inst_path="/usr/$(get_libdir)/${MY_PN}" each size ico icofile - - vbox_inst() { - local binary="${1}" - local perms="${2:-0750}" - local path="${3:-${vbox_inst_path}}" - - [[ -n "${binary}" ]] || die "vbox_inst: No binary given!" - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits." - - insinto ${path} - doins ${binary} - fowners root:vboxusers ${path}/${binary} - fperms ${perms} ${path}/${binary} - } - - # Create configuration files - insinto /etc/vbox - newins "${FILESDIR}/${MY_PN}-4-config" vbox.cfg - - # Set the correct libdir - sed \ - -e "s@MY_LIBDIR@$(get_libdir)@" \ - -i "${ED}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" - - # Install the wrapper script - exeinto ${vbox_inst_path} - newexe "${FILESDIR}/${MY_PN}-ose-6-wrapper" "VBox" - fowners root:vboxusers ${vbox_inst_path}/VBox - fperms 0750 ${vbox_inst_path}/VBox - - # Install binaries and libraries - insinto ${vbox_inst_path} - doins -r components - - for each in VBox{Autostart,BalloonCtrl,BugReport,CpuReport,ExtPackHelperApp,Manage,SVC,VMMPreload} \ - vboximg-mount vbox-img *so *r0; do - vbox_inst ${each} - done - - # These binaries need to be suid root with USE=hardened. - local mode=$(usex hardened 4750 0750) - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do - vbox_inst ${each} ${mode} - done - - # Install EFI Firmware files (bug #320757) - for each in VBoxEFI{-x86,-amd64}.fd ; do - vbox_inst ${each} 0644 - done - - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453) - # VBoxXPCOMIPCD (bug #524202) - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do - pax-mark -m "${ED}"${vbox_inst_path}/${each} - done - - # Symlink binaries to the shipped wrapper - for each in vbox{autostart,balloonctrl,bugreport,headless,manage} \ - VBox{Autostart,BalloonCtrl,BugReport,Headless,Manage,VRDP} ; do - dosym ${vbox_inst_path}/VBox /usr/bin/${each} - done - dosym ${vbox_inst_path}/vboximg-mount /usr/bin/vboximg-mount - dosym ${vbox_inst_path}/vbox-img /usr/bin/vbox-img - - if use pam; then - # VRDPAuth only works with this (bug #351949) - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so - fi - - # set an env-variable for 3rd party tools - echo "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox" - # environment variables used during SDK binding installation - echo "VBOX_SDK_PATH=${vbox_inst_path}/sdk" >> "${T}/90virtualbox" - echo "VBOX_INSTALL_PATH=${vbox_inst_path}" >> "${T}/90virtualbox" - doenvd "${T}/90virtualbox" - - if use sdl; then - vbox_inst VBoxSDL ${mode} - pax-mark -m "${ED}"${vbox_inst_path}/VBoxSDL - - for each in vboxsdl VBoxSDL ; do - dosym ${vbox_inst_path}/VBox /usr/bin/${each} - done - fi - - if use gui; then - vbox_inst VirtualBox - vbox_inst VirtualBoxVM ${mode} - for each in VirtualBox{,VM} ; do - pax-mark -m "${ED}"${vbox_inst_path}/${each} - done - - for each in virtualbox{,vm} VirtualBox{,VM} ; do - dosym ${vbox_inst_path}/VBox /usr/bin/${each} - done - - insinto /usr/share/${PN} - doins -r nls - doins -r UnattendedTemplates - - newmenu ${MY_PN}.desktop ${PN}.desktop - - pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die - for size in 16 32 48 64 128 ; do - newicon -s ${size} ${MY_PN}-${size}px.png ${PN}.png - done - newicon ${MY_PN}-48px.png ${PN}.png - newicon -s scalable ${MY_PN}.svg ${PN}.png - popd &>/dev/null || die - pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die - for size in 16 24 32 48 64 72 96 128 256 512 ; do - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do - icofile="${MY_PN}-${ico}-${size}px.png" - if [[ -f "${icofile}" ]]; then - newicon -s ${size} ${icofile} ${MY_PN}-${ico}.png - fi - done - done - popd &>/dev/null || die - fi - - if use lvm; then - vbox_inst VBoxVolInfo ${mode} - dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo - fi - - if use sdk; then - insinto ${vbox_inst_path} - doins -r sdk - - if use java; then - java-pkg_regjar "${ED}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar" - java-pkg_regso "${ED}/${vbox_inst_path}/libvboxjxpcom.so" - fi - fi - - if use udev; then - local udevdir="$(get_udevdir)" - local udev_file="VBoxCreateUSBNode.sh" - local rules_file="10-virtualbox.rules" - - insinto ${udevdir} - doins ${udev_file} - fowners root:vboxusers ${udevdir}/${udev_file} - fperms 0750 ${udevdir}/${udev_file} - - insinto ${udevdir}/rules.d - sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/${rules_file} \ - > "${T}"/${rules_file} || die - doins "${T}"/${rules_file} - fi - - if use vboxwebsrv; then - vbox_inst vboxwebsrv - dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv - fi - - # Remove dead symlinks (bug #715338) - find "${ED}"/usr/$(get_libdir)/${MY_PN} -xtype l -delete || die - - # Fix version string in extensions or else they don't get accepted - # by the virtualbox host process (see bug #438930) - find ExtensionPacks -type f -name "ExtPack.xml" -exec sed -i '/Version/s@_Gentoo@@' {} \+ || die - - local extensions_dir="${vbox_inst_path}/ExtensionPacks" - - if use vnc; then - insinto ${extensions_dir} - doins -r ExtensionPacks/VNC - fi - - if use dtrace; then - insinto ${extensions_dir} - doins -r ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack - fi - - if use doc; then - dodoc UserManual.pdf UserManual.q{ch,hc} - docompress -x /usr/share/doc/${PF}/UserManual.q{ch,hc} - elif use gui; then - dodoc "${WORKDIR}"/${MY_PN}-help-${ORIGIN_PV}/UserManual.q{ch,hc} - docompress -x /usr/share/doc/${PF}/UserManual.q{ch,hc} - fi - dodoc ${PATCHES_DIR}/README.* - - if use python; then - local python_path_ext="${ED}/usr/$(get_libdir)/virtualbox/VBoxPython3.so" - if [[ ! -x "${python_path_ext}" ]]; then - eerror "Couldn't find ${python_path_ext}! Bindings were requested with USE=python" - eerror "but none were installed. This may happen if support for a Python target" - eerror "(listed in PYTHON_COMPAT in the ebuild) is incomplete within the Makefiles." - die "Incomplete installation of Python bindings! File a bug with Gentoo!" - fi - - # 378871 - local installer_dir="${ED}/usr/$(get_libdir)/virtualbox/sdk/installer/python/vboxapi/src" - pushd "${installer_dir}" &> /dev/null || die - sed -e "s;%VBOX_INSTALL_PATH%;${vbox_inst_path};" \ - -e "s;%VBOX_SDK_PATH%;${vbox_inst_path}/sdk;" \ - -i vboxapi/__init__.py || die - # insert shebang, the files come without one - find vboxapi -name \*.py -exec sed -e "1 i\#! ${PYTHON}" -i {} \+ || die - python_domodule vboxapi - popd &> /dev/null || die - - # upstream added a /bin/sh stub here - # use /usr/bin/python3, python_doscript will take care of it - sed -e '1 i #! /usr/bin/python3' -i vboxshell.py - python_doscript vboxshell.py - - # do not install the installer - rm -r "${installer_dir%vboxapi*}" || die - fi - - newtmpfiles "${FILESDIR}"/${MY_PN}-vboxusb_tmpfilesd virtualbox-vboxusb.conf -} - -pkg_postinst() { - xdg_pkg_postinst - - if use udev; then - udev_reload - udevadm trigger --subsystem-match=usb - fi - - tmpfiles_process virtualbox-vboxusb.conf - - if use gui; then - elog "To launch VirtualBox just type: \"virtualbox\"." - fi - - elog "You must be in the vboxusers group to use VirtualBox." - elog "" - elog "The latest user manual is available for download at:" - elog "https://download.virtualbox.org/virtualbox/${ORIGIN_PV}/UserManual.pdf" - elog "" - - optfeature "Advanced networking setups" net-misc/bridge-utils sys-apps/usermode-utilities - optfeature "USB2, USB3, PXE boot, and VRDP support" app-emulation/virtualbox-extpack-oracle - optfeature "Guest additions ISO" app-emulation/virtualbox-additions - - if ! use udev; then - ewarn "Without USE=udev, USB devices will likely not work in ${MY_PN}." - fi -} - -pkg_postrm() { - xdg_pkg_postrm - - use udev && udev_reload -} diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest index 5c45142c26e2..13d04418c7c1 100644 --- a/app-emulation/virtualbox-modules/Manifest +++ b/app-emulation/virtualbox-modules/Manifest @@ -1,4 +1,3 @@ DIST vbox-host-kernel-module-src-7.1.18.tar.xz 815796 BLAKE2B 2769287ec164931d9a0b7c463911b5d9998f627c4db890a7ca2fd8218732debcd7ad56e87b15401b475f63a299f5b3e9ce98f550426e0fa6945fbd083803bfa5 SHA512 20c1d27bf6db05a5d4f5096db9870e9f98af6ddf3b7dfb9c531cfdd0e28058a8f9db51d505a16d758d4bc603193911b739cfad7241992703502e0b3e4dcce5bf -DIST vbox-host-kernel-module-src-7.2.6.tar.xz 854948 BLAKE2B bf6dbaa2ba60eee2e204e08ad5dc4c76788e7e7cae2470c5ffc6355cd91c362a850dc06bdddbec38989df1b3cfeaea03d5f71db101d86b0b93bfa2c523d83003 SHA512 b1c710a6f2d339eb1be56d02794c8ed96f79976e4be8b424924788ffe906eea3c0e01f8289a400727a95123388a228210e70ea3e2c75b72cbb409536c2e899d9 DIST vbox-host-kernel-module-src-7.2.8.tar.xz 861596 BLAKE2B d04b6bc042738cf4997ff152f1ba92620b32ef99e1b8296e2e1994e0d5b333ce132a0d75e5ee094813b4e2fa96f628b5dcc20e41a013950eefcf066455028989 SHA512 8240a37fe5d673db5b3d865f8a8cf77340b141dabfb70936961ff9364b4b9303d5f727ac90dd60c3cbeaa9e01d9e1ff6c00e80c6fcf72e6d5a72f1e9e61cc4c8 DIST vbox-kernel-module-src-7.0.26.tar.xz 721876 BLAKE2B 355ac80cc96f4ad259a0fdbb909803bbec884c1d25fc9061f45f7039a0857b4f6cc93d4739cf85a82b9544aae06bf7b689d5d530ffc2fe97a874ef57d123423f SHA512 5980721197b908d5d991b258be395a8b542b8183eac7b146b147e4dbea9ff0b0408de5733b12d02a159b689bde29966a55fa7b64c953b9abe4180dbf6e0ebcb6 diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-1.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-1.patch deleted file mode 100644 index ff31366604c8..000000000000 --- a/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-1.patch +++ /dev/null @@ -1,243 +0,0 @@ -https://github.com/VirtualBox/virtualbox/commit/280303b3f03d7087b9c955088a3cf499414f6ec1 - -From 280303b3f03d7087b9c955088a3cf499414f6ec1 Mon Sep 17 00:00:00 2001 -From: Vadim Galitsyn <vadim.galitsyn@oracle.com> -Date: Tue, 17 Feb 2026 15:00:09 +0000 -Subject: [PATCH] Linux host: Introduce initial support for kernel 6.19 - bugref:11038. - -svn:sync-xref-src-repo-rev: r172809 ---- a/vboxdrv/linux/SUPDrv-linux.c -+++ b/vboxdrv/linux/SUPDrv-linux.c -@@ -190,6 +190,12 @@ static bool g_fEnabledHwvirtUsingKvm; - static int (*g_pfnKvmEnableVirtualization)(void); - /** Function pointer to kvm_disable_virtualization(). */ - static void (*g_pfnKvmDisableVirtualization)(void); -+# if RTLNX_VER_MIN(6,19,0) -+/** Function pointer to cr4_update_irqsoff(). */ -+static void (*g_pfnCr4UpdateIrqsoff)(unsigned long set, unsigned long clear); -+/** Function pointer to cr4_read_shadow(). */ -+static unsigned long (*g_pfnCr4ReadShadow)(void); -+# endif - /** Pointer to the KVM hardware specific module. */ - struct module *g_pKvmHwvirtModule; - #endif -@@ -395,6 +401,28 @@ static int supdrvLinuxInitKvmSymbols(void) - void *pfnDisable = __symbol_get("kvm_disable_virtualization"); - if (pfnDisable) - { -+# if RTLNX_VER_MIN(6,19,0) -+ void *pfnCr4UpdateIrqsoff = __symbol_get("cr4_update_irqsoff"); -+ void *pfnRr4ReadShadow = __symbol_get("cr4_read_shadow"); -+ -+ if ( pfnCr4UpdateIrqsoff -+ && pfnRr4ReadShadow) -+ { -+ g_pfnCr4UpdateIrqsoff = pfnCr4UpdateIrqsoff; -+ g_pfnCr4ReadShadow = pfnRr4ReadShadow; -+ -+ printk(KERN_INFO "vboxdrv: Found extra KVM hardware-virtualization symbols\n"); -+ } -+ else -+ { -+ printk(KERN_WARNING "vboxdrv: Failed to find extra KVM hardware-virtualization symbols\n"); -+ -+ if (pfnCr4UpdateIrqsoff) -+ symbol_put_addr(pfnCr4UpdateIrqsoff); -+ if (pfnRr4ReadShadow) -+ symbol_put_addr(pfnRr4ReadShadow); -+ } -+#endif - /* - * Try to obtain a reference to kvm_intel/kvm_amd module in addition to the - * reference to the kvm module. If we fail, we will not try to use KVM for -@@ -479,6 +507,18 @@ static void supdrvLinuxTermKvmSymbols(void) - symbol_put_addr(g_pfnKvmDisableVirtualization); - g_pfnKvmDisableVirtualization = NULL; - } -+# if RTLNX_VER_MIN(6,19,0) -+ if (g_pfnCr4UpdateIrqsoff) -+ { -+ symbol_put_addr(g_pfnCr4UpdateIrqsoff); -+ g_pfnCr4UpdateIrqsoff = NULL; -+ } -+ if (g_pfnCr4ReadShadow) -+ { -+ symbol_put_addr(g_pfnCr4ReadShadow); -+ g_pfnCr4ReadShadow = NULL; -+ } -+#endif - if (g_pKvmHwvirtModule) - { - module_put(g_pKvmHwvirtModule); -@@ -1159,6 +1199,35 @@ SUPR0DECL(int) SUPDrvLinuxLdrDeregisterWrappedModule(PCSUPLDRWRAPPEDMODULE pWrap - } - EXPORT_SYMBOL(SUPDrvLinuxLdrDeregisterWrappedModule); - -+/** -+ * Wrapper function for cr4_update_irqsoff() which was -+ * exported only for KVM starting from kernel 6.19. -+ */ -+static void supdrvLinux_cr4_update_irqsoff(unsigned long set, unsigned long clear) -+{ -+#if RTLNX_VER_MIN(6,19,0) && defined(SUPDRV_LINUX_HAS_KVM_HWVIRT_API) -+ if (g_pfnCr4UpdateIrqsoff) -+ g_pfnCr4UpdateIrqsoff(set, clear); -+#else -+ cr4_update_irqsoff(set, clear); -+#endif -+} -+ -+/** -+ * Wrapper function for supdrvLinux_cr4_read_shadow() which was -+ * exported only for KVM starting from kernel 6.19. -+ */ -+static unsigned long supdrvLinux_cr4_read_shadow(void) -+{ -+ unsigned long cr4 = 0; -+#if RTLNX_VER_MIN(6,19,0) && defined(SUPDRV_LINUX_HAS_KVM_HWVIRT_API) -+ if (g_pfnCr4ReadShadow) -+ cr4 = g_pfnCr4ReadShadow(); -+#else -+ cr4 = cr4_read_shadow(); -+#endif -+ return cr4; -+} - - #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) - RTCCUINTREG VBOXCALL supdrvOSChangeCR4(RTCCUINTREG fOrMask, RTCCUINTREG fAndMask) -@@ -1166,10 +1235,10 @@ RTCCUINTREG VBOXCALL supdrvOSChangeCR4(RTCCUINTREG fOrMask, RTCCUINTREG fAndMask - # if RTLNX_VER_MIN(5,8,0) - unsigned long fSavedFlags; - local_irq_save(fSavedFlags); -- RTCCUINTREG const uOld = cr4_read_shadow(); -- cr4_update_irqsoff(fOrMask, ~fAndMask); /* Same as this function, only it is not returning the old value. */ -- AssertMsg(cr4_read_shadow() == ((uOld & fAndMask) | fOrMask), -- ("fOrMask=%#RTreg fAndMask=%#RTreg uOld=%#RTreg; new cr4=%#llx\n", fOrMask, fAndMask, uOld, cr4_read_shadow())); -+ RTCCUINTREG const uOld = supdrvLinux_cr4_read_shadow(); -+ supdrvLinux_cr4_update_irqsoff(fOrMask, ~fAndMask); /* Same as this function, only it is not returning the old value. */ -+ AssertMsg(supdrvLinux_cr4_read_shadow() == ((uOld & fAndMask) | fOrMask), -+ ("fOrMask=%#RTreg fAndMask=%#RTreg uOld=%#RTreg; new cr4=%#llx\n", fOrMask, fAndMask, uOld, supdrvLinux_cr4_read_shadow())); - local_irq_restore(fSavedFlags); - # else - # if RTLNX_VER_MIN(3,20,0) ---- a/vboxdrv/r0drv/linux/initterm-r0drv-linux.c -+++ b/vboxdrv/r0drv/linux/initterm-r0drv-linux.c -@@ -60,6 +60,11 @@ static DECLARE_TASK_QUEUE(g_rtR0LnxWorkQueue); - * This is a special mm structure used to manage the kernel address space. */ - struct mm_struct *g_pLnxInitMm = NULL; - -+#if RTLNX_VER_MIN(6,19,0) -+/** Pointer to __flush_tlb_all kernel symbol. */ -+void (*g_pfnLinuxFlushTlbAll)(void); -+#endif -+ - - /** - * Pushes an item onto the IPRT work queue. -@@ -136,6 +141,11 @@ DECLHIDDEN(int) rtR0InitNative(void) - printk("rtR0InitNative: g_pLnxInitMm=%p\n", g_pLnxInitMm); - - RTR0DbgKrnlInfoRelease(hKrnlInfo); -+# if RTLNX_VER_MIN(6,19,0) -+ g_pfnLinuxFlushTlbAll = __symbol_get("__flush_tlb_all"); -+ if (!RT_VALID_PTR(g_pfnLinuxFlushTlbAll)) -+ printk("rtR0InitNative: can't load __flush_tlb_all\n"); -+# endif - } - else - printk("rtR0InitNative: RTR0DbgKrnlInfoOpen failed: %d\n", rc); -@@ -151,6 +161,12 @@ DECLHIDDEN(void) rtR0TermNative(void) - { - IPRT_LINUX_SAVE_EFL_AC(); - -+# if RTLNX_VER_MIN(6,19,0) -+ if (RT_VALID_PTR(g_pfnLinuxFlushTlbAll)) -+ symbol_put_addr(g_pfnLinuxFlushTlbAll); -+ g_pfnLinuxFlushTlbAll = NULL; -+#endif -+ - rtR0LnxWorkqueueFlush(); - #if RTLNX_VER_MIN(2,5,41) - destroy_workqueue(g_prtR0LnxWorkQueue); ---- a/vboxdrv/r0drv/linux/memobj-r0drv-linux.c -+++ b/vboxdrv/r0drv/linux/memobj-r0drv-linux.c -@@ -181,7 +181,7 @@ static const struct - * Internal Functions * - *********************************************************************************************************************************/ - static void rtR0MemObjLinuxFreePages(PRTR0MEMOBJLNX pMemLnx); -- -+static void rtR0MemObjLinuxFlushTlbAll(void); - - - /** -@@ -2245,6 +2245,15 @@ DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ p - return rc; - } - -+static void rtR0MemObjLinuxFlushTlbAll(void) -+{ -+#if RTLNX_VER_MIN(6,19,0) -+ if (RT_LIKELY(RT_VALID_PTR(g_pfnLinuxFlushTlbAll))) -+ g_pfnLinuxFlushTlbAll(); -+#else -+ __flush_tlb_all(); -+#endif -+} - - DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt) - { -@@ -2265,7 +2274,7 @@ DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, - set_pte(papPtes[i], mk_pte(pMemLnx->apPages[i], fPg)); - } - preempt_disable(); -- __flush_tlb_all(); -+ rtR0MemObjLinuxFlushTlbAll(); - preempt_enable(); - return VINF_SUCCESS; - } -@@ -2311,7 +2320,7 @@ DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, - flush_icache_range((uintptr_t)pMemLnx->Core.pv + offSub, cbSub); - # if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) /* flush_tlb_kernel_range is not exported, but __flush_tlb_all is. */ - preempt_disable(); -- __flush_tlb_all(); -+ rtR0MemObjLinuxFlushTlbAll(); - preempt_enable(); - # else - flush_tlb_kernel_range((uintptr_t)pMemLnx->Core.pv + offSub, cbSub); ---- a/vboxdrv/r0drv/linux/the-linux-kernel.h -+++ b/vboxdrv/r0drv/linux/the-linux-kernel.h -@@ -512,6 +512,9 @@ RTDECL(struct page *) rtR0MemObjLinuxVirtToPage(void *pv); - - - extern struct mm_struct *g_pLnxInitMm; -+#if RTLNX_VER_MIN(6,19,0) -+extern void (*g_pfnLinuxFlushTlbAll)(void); -+#endif - - - #endif /* !IPRT_INCLUDED_SRC_r0drv_linux_the_linux_kernel_h */ ---- a/vboxnetflt/r0drv/linux/the-linux-kernel.h -+++ b/vboxnetflt/r0drv/linux/the-linux-kernel.h -@@ -512,6 +512,9 @@ RTDECL(struct page *) rtR0MemObjLinuxVirtToPage(void *pv); - - - extern struct mm_struct *g_pLnxInitMm; -+#if RTLNX_VER_MIN(6,19,0) -+extern void (*g_pfnLinuxFlushTlbAll)(void); -+#endif - - - #endif /* !IPRT_INCLUDED_SRC_r0drv_linux_the_linux_kernel_h */ ---- a/vboxnetadp/r0drv/linux/the-linux-kernel.h -+++ b/vboxnetadp/r0drv/linux/the-linux-kernel.h -@@ -512,6 +512,9 @@ RTDECL(struct page *) rtR0MemObjLinuxVirtToPage(void *pv); - - - extern struct mm_struct *g_pLnxInitMm; -+#if RTLNX_VER_MIN(6,19,0) -+extern void (*g_pfnLinuxFlushTlbAll)(void); -+#endif - - - #endif /* !IPRT_INCLUDED_SRC_r0drv_linux_the_linux_kernel_h */ diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-2.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-2.patch deleted file mode 100644 index f5e727bf1024..000000000000 --- a/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-2.patch +++ /dev/null @@ -1,53 +0,0 @@ -https://github.com/VirtualBox/virtualbox/commit/8902311a0d88a2d14a1b8ee224008a4c7061854b - -From 8902311a0d88a2d14a1b8ee224008a4c7061854b Mon Sep 17 00:00:00 2001 -From: Vadim Galitsyn <vadim.galitsyn@oracle.com> -Date: Tue, 17 Feb 2026 15:20:09 +0000 -Subject: [PATCH] Linux host: Introduce initial support for kernel 6.19 (build - fix), bugref:11038. - -svn:sync-xref-src-repo-rev: r172810 ---- a/vboxdrv/linux/SUPDrv-linux.c -+++ b/vboxdrv/linux/SUPDrv-linux.c -@@ -1199,18 +1199,19 @@ SUPR0DECL(int) SUPDrvLinuxLdrDeregisterWrappedModule(PCSUPLDRWRAPPEDMODULE pWrap - } - EXPORT_SYMBOL(SUPDrvLinuxLdrDeregisterWrappedModule); - -+#if RTLNX_VER_MIN(5,8,0) - /** - * Wrapper function for cr4_update_irqsoff() which was - * exported only for KVM starting from kernel 6.19. - */ - static void supdrvLinux_cr4_update_irqsoff(unsigned long set, unsigned long clear) - { --#if RTLNX_VER_MIN(6,19,0) && defined(SUPDRV_LINUX_HAS_KVM_HWVIRT_API) -+# if RTLNX_VER_MIN(6,19,0) && defined(SUPDRV_LINUX_HAS_KVM_HWVIRT_API) - if (g_pfnCr4UpdateIrqsoff) - g_pfnCr4UpdateIrqsoff(set, clear); --#else -+# else - cr4_update_irqsoff(set, clear); --#endif -+# endif - } - - /** -@@ -1220,14 +1221,15 @@ static void supdrvLinux_cr4_update_irqsoff(unsigned long set, unsigned long clea - static unsigned long supdrvLinux_cr4_read_shadow(void) - { - unsigned long cr4 = 0; --#if RTLNX_VER_MIN(6,19,0) && defined(SUPDRV_LINUX_HAS_KVM_HWVIRT_API) -+# if RTLNX_VER_MIN(6,19,0) && defined(SUPDRV_LINUX_HAS_KVM_HWVIRT_API) - if (g_pfnCr4ReadShadow) - cr4 = g_pfnCr4ReadShadow(); --#else -+# else - cr4 = cr4_read_shadow(); --#endif -+# endif - return cr4; - } -+#endif /* 5.8.0 */ - - #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) - RTCCUINTREG VBOXCALL supdrvOSChangeCR4(RTCCUINTREG fOrMask, RTCCUINTREG fAndMask) diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-3.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-3.patch deleted file mode 100644 index 7a3d2a89b0b8..000000000000 --- a/app-emulation/virtualbox-modules/files/virtualbox-modules-7.2.6-kernel-6.19-3.patch +++ /dev/null @@ -1,40 +0,0 @@ -https://github.com/VirtualBox/virtualbox/commit/33992f0e56b8a9bb565e0beecad91e87362ab390 - -From 33992f0e56b8a9bb565e0beecad91e87362ab390 Mon Sep 17 00:00:00 2001 -From: Vadim Galitsyn <vadim.galitsyn@oracle.com> -Date: Tue, 17 Feb 2026 15:37:37 +0000 -Subject: [PATCH] Linux host: Introduce initial support for kernel 6.19 (build - fix for old kernels),bugref:11038. - -svn:sync-xref-src-repo-rev: r172811 ---- a/vboxdrv/r0drv/linux/memobj-r0drv-linux.c -+++ b/vboxdrv/r0drv/linux/memobj-r0drv-linux.c -@@ -181,7 +181,6 @@ static const struct - * Internal Functions * - *********************************************************************************************************************************/ - static void rtR0MemObjLinuxFreePages(PRTR0MEMOBJLNX pMemLnx); --static void rtR0MemObjLinuxFlushTlbAll(void); - - - /** -@@ -2245,15 +2244,17 @@ DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ p - return rc; - } - -+#if defined(IPRT_USE_ALLOC_VM_AREA_FOR_EXEC) || defined(IPRT_USE_APPLY_TO_PAGE_RANGE_FOR_EXEC) - static void rtR0MemObjLinuxFlushTlbAll(void) - { --#if RTLNX_VER_MIN(6,19,0) -+# if RTLNX_VER_MIN(6,19,0) - if (RT_LIKELY(RT_VALID_PTR(g_pfnLinuxFlushTlbAll))) - g_pfnLinuxFlushTlbAll(); --#else -+# else - __flush_tlb_all(); --#endif -+# endif - } -+#endif - - DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt) - { diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-7.2.6-r2.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-7.2.6-r2.ebuild deleted file mode 100644 index 67d1c0c2f063..000000000000 --- a/app-emulation/virtualbox-modules/virtualbox-modules-7.2.6-r2.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# XXX: the tarball here is just the kernel modules split out of the binary -# package that comes from VirtualBox-*.run -# XXX: update: now it is split from virtualbox-*-Debian~bullseye_amd64.deb - -EAPI=8 - -inherit linux-mod-r1 - -MY_P="vbox-host-kernel-module-src-${PV^^}" -DESCRIPTION="Kernel Modules for Virtualbox" -HOMEPAGE="https://www.virtualbox.org/" -SRC_URI="https://distfiles.gentoo.org/pub/dev/ceamac@gentoo.org/${CATEGORY}/${PN}/${MY_P}.tar.xz" -S="${WORKDIR}" - -LICENSE="GPL-3" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="amd64" - -PATCHES=( - "${FILESDIR}"/${P}-kernel-6.19-{1..3}.patch -) - -CONFIG_CHECK="~!SPINLOCK JUMP_LABEL ~PREEMPT_NOTIFIERS ~KPROBES" -KPROBES_ERROR="CONFIG_KPROBES is required for kernel 6.16+; modules fail to build with kernel 6.19+" - -src_compile() { - local modlist=( {vboxdrv,vboxnetflt,vboxnetadp}=misc ) - local modargs=( KERN_DIR="${KV_OUT_DIR}" KERN_VER="${KV_FULL}" ) - linux-mod-r1_src_compile -} - -src_install() { - linux-mod-r1_src_install - insinto /usr/lib/modules-load.d/ - newins "${FILESDIR}"/virtualbox.conf-r1 virtualbox.conf - - insinto /etc/modprobe.d # bug #945135 - newins - virtualbox.conf <<-EOF - # modprobe.d configuration file for VBOXSF - - # Starting with kernel 6.12, - # KVM initializes virtualization on module loading by default. - # This prevents VirtualBox VMs from starting. - # See also: - # https://bugs.gentoo.org/945135 - # https://www.virtualbox.org/wiki/Changelog-7.1 - # ------------------------------ - options kvm enable_virt_at_load=0 - EOF -} diff --git a/app-emulation/wine-proton/Manifest b/app-emulation/wine-proton/Manifest index ea32e6a846ca..ae6df0f3c000 100644 --- a/app-emulation/wine-proton/Manifest +++ b/app-emulation/wine-proton/Manifest @@ -1,7 +1,5 @@ DIST proton-wine-10.0-3.tar.gz 52629264 BLAKE2B 14edd27b736e3c980d8b92ed8e9c1f3c07084431ffbc9253ddf3b800fa47ac0b21ef22e402decb6e3ad505574b9b37aa4ac1fe8e210f9df2d2f0ca7762326571 SHA512 0140fcb4a145542d4163ad2a25fb0da8d361b202e4d77bad852e533487524d0abe772e38feec91ca0b14bad7c6ac8e44282d776adf31b9bcba1d95d31b5551b8 DIST proton-wine-10.0-4.tar.gz 52736432 BLAKE2B 71986c2362934879d5d9a74ea13e29593240a9e7a5dc6b9a9ffdfdaf528be4dec2ac34500afcd525fa256d2fed2efc1e3cb6bd7c5f51b4e4249d714ca9bbc3ef SHA512 e74aece7dad25fd1e8041d370718bfd0dd695469c7b74d95209ac6030d0fb30221d1ccce7c8483dddb097c0f1b2df768452de79fd4041c46dd3695934816dd2a -DIST proton-wine-11.0-1-beta1.tar.gz 53902344 BLAKE2B 759d53ac8936ff237d6e232a9f2a37603cebd7fc4932a615c16dea14a8b90d25788fc73f897fa28371390d01ba1995df5d1f47d201213300a478f8e4eb746113 SHA512 e63df1fce8cae09e82c626a172cc58625e027da1247eab571eebd8798fece028ae606573ab73720ca087078d67c0403e27b91e94cddd62710affda4b3de4265d -DIST proton-wine-11.0-1-beta2.tar.gz 53908987 BLAKE2B 9ce53b6fc0a4cb9f09e1e1e5db8a7109ddf400cfa229d1af0884f901a42260fc7e9916056c99e6e8cb784ef052838a3bf73a83465811a893568a044ae936d114 SHA512 94d4a6b0a8c709619f3653ca50a393c2f84bd91fa7deaaab8ec6391bf10c71657db460058ca83974e8eb571e2acb968b2a130134bffa736897b42f1c92524066 DIST proton-wine-11.0-1-beta5.tar.gz 53906737 BLAKE2B ddaae0ab842eb46b3b9f2d482a3a6d447c23d48edc89262ea9b4457f9c0ad5f67cdf08c8dc90323a02766ff6260ede5d3ed4ee743825a8d292f0dcfd68814ec6 SHA512 e5849b3b8a22d010fd11f34902d882a5bab2b6eceb5c59d9c0972dc3367c24b8b1da1fd2ee024b46808163f0b8e33930e55ca675a9e08fd9d2e6c405e8d496f3 DIST proton-wine-8.0-5c.tar.gz 48710071 BLAKE2B 99627baea6fb3d51231aa1e75a2734c3c1baba88326baf15b3d421d57a00472d25ba51c2140b51152c8aeae7dd240d3d77bb0d8835aa7eb3b745a51be120f8bb SHA512 0cf98d4e67866e55cc8cd5ea8da0d76aee8e37b130b3cbca604083c913e98ddf9038ecd6f9761d2e11443e282b372977400e251456c6d40e1365210c7578234d DIST proton-wine-9.0-4.tar.gz 49339922 BLAKE2B 914ca093ac288c26400e4eeb2ea33943fc8ad89052aa7c97b5c44286dc175745720455d65163baa90b0d0271eb8028549315a3e8095b91947db2bd96c6fc4852 SHA512 e061f0a55b25493f67ca3add8c7e41020bb57cb15e8fb4fdf3c23f0cab2d00b703c90fbcf0dc1ca8b67e1726a76cee910e9ea6f567c88bc6c520dd6c9dbb75e9 diff --git a/app-emulation/wine-proton/wine-proton-11.0.1_beta1.ebuild b/app-emulation/wine-proton/wine-proton-11.0.1_beta1.ebuild deleted file mode 100644 index 3a1217305ed3..000000000000 --- a/app-emulation/wine-proton/wine-proton-11.0.1_beta1.ebuild +++ /dev/null @@ -1,269 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -inherit eapi9-ver optfeature python-any-r1 readme.gentoo-r1 toolchain-funcs wine - -WINE_GECKO=2.47.4 -WINE_MONO=10.4.1 -WINE_PV=$(ver_rs 2-3 -) - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/ValveSoftware/wine.git" - EGIT_BRANCH="bleeding-edge" -else - SRC_URI="https://github.com/ValveSoftware/wine/archive/refs/tags/proton-wine-${WINE_PV}.tar.gz" - S=${WORKDIR}/${PN}-wine-${WINE_PV} - KEYWORDS="-* ~amd64 ~x86" -fi - -DESCRIPTION="Valve Software's fork of Wine" -HOMEPAGE="https://github.com/ValveSoftware/wine/" - -LICENSE=" - LGPL-2.1+ - BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff - || ( WTFPL-2 public-domain ) -" -SLOT="${PV}" -IUSE=" - +X +alsa crossdev-mingw +dbus ffmpeg +fontconfig +gecko +gstreamer - llvm-libunwind +mono nls perl pulseaudio +sdl selinux +ssl udev - +unwind usb v4l wayland video_cards_amdgpu xinerama -" -# headless is not really supported here, and udev needs sdl due to Valve's -# changes (bug #959263), use normal wine instead if need to avoid these -REQUIRED_USE=" - || ( X wayland ) - udev? ( sdl ) -" - -# tests are non-trivial to run, can hang easily, don't play well with -# sandbox, and several need real opengl/vulkan or network access -RESTRICT="test" - -# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked -WINE_DLOPEN_DEPEND=" - dev-libs/libgcrypt:=[${WINE_USEDEP}] - media-libs/freetype[${WINE_USEDEP}] - media-libs/libglvnd[X?,${WINE_USEDEP}] - media-libs/vulkan-loader[X?,wayland?,${WINE_USEDEP}] - X? ( - x11-libs/libXcomposite[${WINE_USEDEP}] - x11-libs/libXcursor[${WINE_USEDEP}] - x11-libs/libXfixes[${WINE_USEDEP}] - x11-libs/libXi[${WINE_USEDEP}] - x11-libs/libXrandr[${WINE_USEDEP}] - x11-libs/libXrender[${WINE_USEDEP}] - x11-libs/libXxf86vm[${WINE_USEDEP}] - xinerama? ( x11-libs/libXinerama[${WINE_USEDEP}] ) - ) - dbus? ( sys-apps/dbus[${WINE_USEDEP}] ) - fontconfig? ( media-libs/fontconfig[${WINE_USEDEP}] ) - sdl? ( media-libs/libsdl2[haptic,joystick,${WINE_USEDEP}] ) - ssl? ( - dev-libs/gmp:=[${WINE_USEDEP}] - net-libs/gnutls:=[${WINE_USEDEP}] - ) - v4l? ( media-libs/libv4l[${WINE_USEDEP}] ) -" -WINE_COMMON_DEPEND=" - ${WINE_DLOPEN_DEPEND} - X? ( - x11-libs/libX11[${WINE_USEDEP}] - x11-libs/libXext[${WINE_USEDEP}] - ) - alsa? ( media-libs/alsa-lib[${WINE_USEDEP}] ) - ffmpeg? ( media-video/ffmpeg:=[${WINE_USEDEP}] ) - gstreamer? ( - dev-libs/glib:2[${WINE_USEDEP}] - media-libs/gst-plugins-base:1.0[opengl,${WINE_USEDEP}] - media-libs/gstreamer:1.0[${WINE_USEDEP}] - ) - pulseaudio? ( media-libs/libpulse[${WINE_USEDEP}] ) - udev? ( virtual/libudev:=[${WINE_USEDEP}] ) - unwind? ( - llvm-libunwind? ( llvm-runtimes/libunwind[${WINE_USEDEP}] ) - !llvm-libunwind? ( sys-libs/libunwind:=[${WINE_USEDEP}] ) - ) - usb? ( dev-libs/libusb:1[${WINE_USEDEP}] ) - video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu,${WINE_USEDEP}] ) - wayland? ( - dev-libs/wayland[${WINE_USEDEP}] - x11-libs/libxkbcommon[${WINE_USEDEP}] - ) -" -RDEPEND=" - ${WINE_COMMON_DEPEND} - app-emulation/wine-desktop-common - gecko? ( - app-emulation/wine-gecko:${WINE_GECKO}[${WINE_USEDEP}] - wow64? ( app-emulation/wine-gecko[abi_x86_32] ) - ) - gstreamer? ( - media-libs/gst-plugins-bad:1.0[${WINE_USEDEP}] - media-plugins/gst-plugins-libav:1.0[${WINE_USEDEP}] - media-plugins/gst-plugins-meta:1.0[${WINE_USEDEP}] - ) - mono? ( app-emulation/wine-mono:${WINE_MONO} ) - perl? ( - dev-lang/perl - dev-perl/XML-LibXML - ) - selinux? ( sec-policy/selinux-wine ) -" -DEPEND=" - ${WINE_COMMON_DEPEND} - || ( - sys-devel/gcc:* - llvm-runtimes/compiler-rt:*[atomic-builtins(-)] - ) - >=sys-kernel/linux-headers-6.14 - X? ( x11-base/xorg-proto ) -" -BDEPEND=" - ${PYTHON_DEPS} - dev-lang/perl - sys-devel/bison - sys-devel/flex - virtual/pkgconfig - nls? ( sys-devel/gettext ) - wayland? ( dev-util/wayland-scanner ) -" - -QA_CONFIG_IMPL_DECL_SKIP=( - __clear_cache # unused on amd64+x86 (bug #900332) - res_getservers # false positive -) -QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext -# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06 -QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine.*-preloader" - -PATCHES=( - "${FILESDIR}"/${PN}-7.0.4-musl.patch - "${FILESDIR}"/${PN}-7.0.4-noexecstack.patch - "${FILESDIR}"/${PN}-8.0.1c-unwind.patch - "${FILESDIR}"/${PN}-9.0-rpath.patch - "${FILESDIR}"/${PN}-11.0.1-restore-menubuilder.patch -) - -src_prepare() { - # similarly to staging, append to `wine --version` for identification - sed -i "s/wine_build[^1]*1/& (Proton-${WINE_PV})/" configure.ac || die - - wine_src_prepare - - # this is kind-of best effort and ignores llvm slots, ideally - # atomic-builtins should be package.use.force then could drop this - if tc-is-clang && [[ $(tc-get-c-rtlib) == compiler-rt ]] && - has_version -d 'llvm-runtimes/compiler-rt[-atomic-builtins(-)]' - then - # needed by Valve's fsync patches if using compiler-rt w/o atomics - sed -e '/^UNIX_LIBS.*=/s/$/ -latomic/' \ - -i dlls/{ntdll,winevulkan}/Makefile.in || die - fi - - # proton variant also needs specfiles and vulkan - tools/make_specfiles || die # perl - dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python -} - -src_configure() { - local wineconfargs=( - # upstream (Valve) doesn't really support misc configurations (e.g. - # adds vulkan code not always guarded by --with-vulkan), so force - # some options that are typically needed by games either way - --with-freetype - --with-opengl - --with-vulkan - - # ...and disable most options unimportant for games and unused by - # Proton rather than expose as volatile USEs with little support - --without-capi - --without-cups - --without-gphoto - --without-gssapi - --without-hwloc - --without-krb5 - --without-netapi - --without-opencl - --without-pcap - --without-pcsclite - --without-sane - ac_cv_header_bluetooth_bluetooth_h=no - ac_cv_header_bluetooth_rfcomm_h=no - ac_cv_lib_soname_odbc= - - $(use_enable gecko mshtml) - $(use_enable mono mscoree) - $(use_enable video_cards_amdgpu amd_ags_x64) - --disable-tests - - $(use_with X x) - $(use_with alsa) - $(use_with dbus) - $(use_with ffmpeg) - $(use_with fontconfig) - $(use_with gstreamer) - $(use_with nls gettext) - --without-oss # media-sound/oss is not packaged (OSSv4) - $(use_with pulseaudio pulse) - $(use_with sdl) - $(use_with ssl gnutls) - $(use_with udev) - $(use_with unwind) - $(use_with usb) - $(use_with v4l v4l2) - $(use_with wayland) - $(use_with xinerama) - - --without-piper # unpackaged, for tts but unusable without steam - --without-vosk # unpackaged, file a bug if you need this - ) - - wine_src_configure -} - -src_install() { - use perl || local WINE_SKIP_INSTALL=( - ${WINE_DATADIR}/man/man1/wine{dump,maker}.1 - ${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} - ) - - wine_src_install - - dodoc ANNOUNCE* AUTHORS README* documentation/README* - readme.gentoo_create_doc -} - -pkg_preinst() { - has_version ${CATEGORY}/${PN} && WINE_HAD_ANY_SLOT= -} - -pkg_postinst() { - wine_pkg_postinst - - [[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog - - optfeature "/dev/hidraw* access used for *some* controllers (e.g. DualShock4)" \ - games-util/game-device-udev-rules - - ewarn - ewarn "Warning: please consider ${PN} provided as-is without real" - ewarn "support. Upstream does not want bug reports unless can reproduce" - ewarn "with real Steam+Proton, and Gentoo is largely unable to help" - ewarn "unless it is a build/packaging issue. So, if need support, try" - ewarn "normal Wine or Proton instead." - - if ver_replacing -lt 11; then - elog - elog "Note that >=${PN}-11 now has ntsync support that can be used" - elog "rather than setting WINEFSYNC=1. It is used by default if /dev/ntsync" - elog "exists unless PROTON_NO_NTSYNC=1 is set. Requires CONFIG_NTSYNC in" - elog "the kernel and, if built as a module, will need a file containing" - elog "ntsync in ${EROOT}/etc/modules-load.d/ to be auto-loaded." - fi -} diff --git a/app-emulation/wine-proton/wine-proton-11.0.1_beta2.ebuild b/app-emulation/wine-proton/wine-proton-11.0.1_beta2.ebuild deleted file mode 100644 index 3a1217305ed3..000000000000 --- a/app-emulation/wine-proton/wine-proton-11.0.1_beta2.ebuild +++ /dev/null @@ -1,269 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -inherit eapi9-ver optfeature python-any-r1 readme.gentoo-r1 toolchain-funcs wine - -WINE_GECKO=2.47.4 -WINE_MONO=10.4.1 -WINE_PV=$(ver_rs 2-3 -) - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/ValveSoftware/wine.git" - EGIT_BRANCH="bleeding-edge" -else - SRC_URI="https://github.com/ValveSoftware/wine/archive/refs/tags/proton-wine-${WINE_PV}.tar.gz" - S=${WORKDIR}/${PN}-wine-${WINE_PV} - KEYWORDS="-* ~amd64 ~x86" -fi - -DESCRIPTION="Valve Software's fork of Wine" -HOMEPAGE="https://github.com/ValveSoftware/wine/" - -LICENSE=" - LGPL-2.1+ - BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff - || ( WTFPL-2 public-domain ) -" -SLOT="${PV}" -IUSE=" - +X +alsa crossdev-mingw +dbus ffmpeg +fontconfig +gecko +gstreamer - llvm-libunwind +mono nls perl pulseaudio +sdl selinux +ssl udev - +unwind usb v4l wayland video_cards_amdgpu xinerama -" -# headless is not really supported here, and udev needs sdl due to Valve's -# changes (bug #959263), use normal wine instead if need to avoid these -REQUIRED_USE=" - || ( X wayland ) - udev? ( sdl ) -" - -# tests are non-trivial to run, can hang easily, don't play well with -# sandbox, and several need real opengl/vulkan or network access -RESTRICT="test" - -# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked -WINE_DLOPEN_DEPEND=" - dev-libs/libgcrypt:=[${WINE_USEDEP}] - media-libs/freetype[${WINE_USEDEP}] - media-libs/libglvnd[X?,${WINE_USEDEP}] - media-libs/vulkan-loader[X?,wayland?,${WINE_USEDEP}] - X? ( - x11-libs/libXcomposite[${WINE_USEDEP}] - x11-libs/libXcursor[${WINE_USEDEP}] - x11-libs/libXfixes[${WINE_USEDEP}] - x11-libs/libXi[${WINE_USEDEP}] - x11-libs/libXrandr[${WINE_USEDEP}] - x11-libs/libXrender[${WINE_USEDEP}] - x11-libs/libXxf86vm[${WINE_USEDEP}] - xinerama? ( x11-libs/libXinerama[${WINE_USEDEP}] ) - ) - dbus? ( sys-apps/dbus[${WINE_USEDEP}] ) - fontconfig? ( media-libs/fontconfig[${WINE_USEDEP}] ) - sdl? ( media-libs/libsdl2[haptic,joystick,${WINE_USEDEP}] ) - ssl? ( - dev-libs/gmp:=[${WINE_USEDEP}] - net-libs/gnutls:=[${WINE_USEDEP}] - ) - v4l? ( media-libs/libv4l[${WINE_USEDEP}] ) -" -WINE_COMMON_DEPEND=" - ${WINE_DLOPEN_DEPEND} - X? ( - x11-libs/libX11[${WINE_USEDEP}] - x11-libs/libXext[${WINE_USEDEP}] - ) - alsa? ( media-libs/alsa-lib[${WINE_USEDEP}] ) - ffmpeg? ( media-video/ffmpeg:=[${WINE_USEDEP}] ) - gstreamer? ( - dev-libs/glib:2[${WINE_USEDEP}] - media-libs/gst-plugins-base:1.0[opengl,${WINE_USEDEP}] - media-libs/gstreamer:1.0[${WINE_USEDEP}] - ) - pulseaudio? ( media-libs/libpulse[${WINE_USEDEP}] ) - udev? ( virtual/libudev:=[${WINE_USEDEP}] ) - unwind? ( - llvm-libunwind? ( llvm-runtimes/libunwind[${WINE_USEDEP}] ) - !llvm-libunwind? ( sys-libs/libunwind:=[${WINE_USEDEP}] ) - ) - usb? ( dev-libs/libusb:1[${WINE_USEDEP}] ) - video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu,${WINE_USEDEP}] ) - wayland? ( - dev-libs/wayland[${WINE_USEDEP}] - x11-libs/libxkbcommon[${WINE_USEDEP}] - ) -" -RDEPEND=" - ${WINE_COMMON_DEPEND} - app-emulation/wine-desktop-common - gecko? ( - app-emulation/wine-gecko:${WINE_GECKO}[${WINE_USEDEP}] - wow64? ( app-emulation/wine-gecko[abi_x86_32] ) - ) - gstreamer? ( - media-libs/gst-plugins-bad:1.0[${WINE_USEDEP}] - media-plugins/gst-plugins-libav:1.0[${WINE_USEDEP}] - media-plugins/gst-plugins-meta:1.0[${WINE_USEDEP}] - ) - mono? ( app-emulation/wine-mono:${WINE_MONO} ) - perl? ( - dev-lang/perl - dev-perl/XML-LibXML - ) - selinux? ( sec-policy/selinux-wine ) -" -DEPEND=" - ${WINE_COMMON_DEPEND} - || ( - sys-devel/gcc:* - llvm-runtimes/compiler-rt:*[atomic-builtins(-)] - ) - >=sys-kernel/linux-headers-6.14 - X? ( x11-base/xorg-proto ) -" -BDEPEND=" - ${PYTHON_DEPS} - dev-lang/perl - sys-devel/bison - sys-devel/flex - virtual/pkgconfig - nls? ( sys-devel/gettext ) - wayland? ( dev-util/wayland-scanner ) -" - -QA_CONFIG_IMPL_DECL_SKIP=( - __clear_cache # unused on amd64+x86 (bug #900332) - res_getservers # false positive -) -QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext -# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06 -QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine.*-preloader" - -PATCHES=( - "${FILESDIR}"/${PN}-7.0.4-musl.patch - "${FILESDIR}"/${PN}-7.0.4-noexecstack.patch - "${FILESDIR}"/${PN}-8.0.1c-unwind.patch - "${FILESDIR}"/${PN}-9.0-rpath.patch - "${FILESDIR}"/${PN}-11.0.1-restore-menubuilder.patch -) - -src_prepare() { - # similarly to staging, append to `wine --version` for identification - sed -i "s/wine_build[^1]*1/& (Proton-${WINE_PV})/" configure.ac || die - - wine_src_prepare - - # this is kind-of best effort and ignores llvm slots, ideally - # atomic-builtins should be package.use.force then could drop this - if tc-is-clang && [[ $(tc-get-c-rtlib) == compiler-rt ]] && - has_version -d 'llvm-runtimes/compiler-rt[-atomic-builtins(-)]' - then - # needed by Valve's fsync patches if using compiler-rt w/o atomics - sed -e '/^UNIX_LIBS.*=/s/$/ -latomic/' \ - -i dlls/{ntdll,winevulkan}/Makefile.in || die - fi - - # proton variant also needs specfiles and vulkan - tools/make_specfiles || die # perl - dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python -} - -src_configure() { - local wineconfargs=( - # upstream (Valve) doesn't really support misc configurations (e.g. - # adds vulkan code not always guarded by --with-vulkan), so force - # some options that are typically needed by games either way - --with-freetype - --with-opengl - --with-vulkan - - # ...and disable most options unimportant for games and unused by - # Proton rather than expose as volatile USEs with little support - --without-capi - --without-cups - --without-gphoto - --without-gssapi - --without-hwloc - --without-krb5 - --without-netapi - --without-opencl - --without-pcap - --without-pcsclite - --without-sane - ac_cv_header_bluetooth_bluetooth_h=no - ac_cv_header_bluetooth_rfcomm_h=no - ac_cv_lib_soname_odbc= - - $(use_enable gecko mshtml) - $(use_enable mono mscoree) - $(use_enable video_cards_amdgpu amd_ags_x64) - --disable-tests - - $(use_with X x) - $(use_with alsa) - $(use_with dbus) - $(use_with ffmpeg) - $(use_with fontconfig) - $(use_with gstreamer) - $(use_with nls gettext) - --without-oss # media-sound/oss is not packaged (OSSv4) - $(use_with pulseaudio pulse) - $(use_with sdl) - $(use_with ssl gnutls) - $(use_with udev) - $(use_with unwind) - $(use_with usb) - $(use_with v4l v4l2) - $(use_with wayland) - $(use_with xinerama) - - --without-piper # unpackaged, for tts but unusable without steam - --without-vosk # unpackaged, file a bug if you need this - ) - - wine_src_configure -} - -src_install() { - use perl || local WINE_SKIP_INSTALL=( - ${WINE_DATADIR}/man/man1/wine{dump,maker}.1 - ${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} - ) - - wine_src_install - - dodoc ANNOUNCE* AUTHORS README* documentation/README* - readme.gentoo_create_doc -} - -pkg_preinst() { - has_version ${CATEGORY}/${PN} && WINE_HAD_ANY_SLOT= -} - -pkg_postinst() { - wine_pkg_postinst - - [[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog - - optfeature "/dev/hidraw* access used for *some* controllers (e.g. DualShock4)" \ - games-util/game-device-udev-rules - - ewarn - ewarn "Warning: please consider ${PN} provided as-is without real" - ewarn "support. Upstream does not want bug reports unless can reproduce" - ewarn "with real Steam+Proton, and Gentoo is largely unable to help" - ewarn "unless it is a build/packaging issue. So, if need support, try" - ewarn "normal Wine or Proton instead." - - if ver_replacing -lt 11; then - elog - elog "Note that >=${PN}-11 now has ntsync support that can be used" - elog "rather than setting WINEFSYNC=1. It is used by default if /dev/ntsync" - elog "exists unless PROTON_NO_NTSYNC=1 is set. Requires CONFIG_NTSYNC in" - elog "the kernel and, if built as a module, will need a file containing" - elog "ntsync in ${EROOT}/etc/modules-load.d/ to be auto-loaded." - fi -} diff --git a/app-emulation/wine-proton/wine-proton-11.0.1_beta5.ebuild b/app-emulation/wine-proton/wine-proton-11.0.1_beta5.ebuild index 3a1217305ed3..1735048d6db6 100644 --- a/app-emulation/wine-proton/wine-proton-11.0.1_beta5.ebuild +++ b/app-emulation/wine-proton/wine-proton-11.0.1_beta5.ebuild @@ -4,7 +4,8 @@ EAPI=8 PYTHON_COMPAT=( python3_{13..14} ) -inherit eapi9-ver optfeature python-any-r1 readme.gentoo-r1 toolchain-funcs wine +inherit eapi9-ver flag-o-matic optfeature python-any-r1 +inherit readme.gentoo-r1 toolchain-funcs wine WINE_GECKO=2.47.4 WINE_MONO=10.4.1 @@ -117,18 +118,16 @@ RDEPEND=" " DEPEND=" ${WINE_COMMON_DEPEND} - || ( - sys-devel/gcc:* - llvm-runtimes/compiler-rt:*[atomic-builtins(-)] - ) >=sys-kernel/linux-headers-6.14 X? ( x11-base/xorg-proto ) " BDEPEND=" ${PYTHON_DEPS} dev-lang/perl + sys-devel/binutils:* sys-devel/bison sys-devel/flex + sys-devel/gcc:* virtual/pkgconfig nls? ( sys-devel/gettext ) wayland? ( dev-util/wayland-scanner ) @@ -156,22 +155,19 @@ src_prepare() { wine_src_prepare - # this is kind-of best effort and ignores llvm slots, ideally - # atomic-builtins should be package.use.force then could drop this - if tc-is-clang && [[ $(tc-get-c-rtlib) == compiler-rt ]] && - has_version -d 'llvm-runtimes/compiler-rt[-atomic-builtins(-)]' - then - # needed by Valve's fsync patches if using compiler-rt w/o atomics - sed -e '/^UNIX_LIBS.*=/s/$/ -latomic/' \ - -i dlls/{ntdll,winevulkan}/Makefile.in || die - fi - # proton variant also needs specfiles and vulkan tools/make_specfiles || die # perl dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python } src_configure() { + # Valve does not really support anything but gcc+bfd, and some of + # their modifications to Wine have been fragile and accumulating + # issues that they have no interest in fixing (bug #977021) + tc-is-gcc || unset AR AS CC CPP CXX LD NM OBJ{COPY,DUMP} RANLIB READELF STRIP + tc-ld-is-bfd || append-ldflags -fuse-ld=bfd + strip-unsupported-flags + local wineconfargs=( # upstream (Valve) doesn't really support misc configurations (e.g. # adds vulkan code not always guarded by --with-vulkan), so force diff --git a/app-emulation/wine-proton/wine-proton-9999.ebuild b/app-emulation/wine-proton/wine-proton-9999.ebuild index 7f80f5085ff5..836a60ef899e 100644 --- a/app-emulation/wine-proton/wine-proton-9999.ebuild +++ b/app-emulation/wine-proton/wine-proton-9999.ebuild @@ -4,7 +4,8 @@ EAPI=8 PYTHON_COMPAT=( python3_{13..14} ) -inherit eapi9-ver optfeature python-any-r1 readme.gentoo-r1 toolchain-funcs wine +inherit eapi9-ver flag-o-matic optfeature python-any-r1 +inherit readme.gentoo-r1 toolchain-funcs wine WINE_GECKO=2.47.4 WINE_MONO=10.4.1 @@ -117,18 +118,16 @@ RDEPEND=" " DEPEND=" ${WINE_COMMON_DEPEND} - || ( - sys-devel/gcc:* - llvm-runtimes/compiler-rt:*[atomic-builtins(-)] - ) >=sys-kernel/linux-headers-6.14 X? ( x11-base/xorg-proto ) " BDEPEND=" ${PYTHON_DEPS} dev-lang/perl + sys-devel/binutils:* sys-devel/bison sys-devel/flex + sys-devel/gcc:* virtual/pkgconfig nls? ( sys-devel/gettext ) wayland? ( dev-util/wayland-scanner ) @@ -156,22 +155,19 @@ src_prepare() { wine_src_prepare - # this is kind-of best effort and ignores llvm slots, ideally - # atomic-builtins should be package.use.force then could drop this - if tc-is-clang && [[ $(tc-get-c-rtlib) == compiler-rt ]] && - has_version -d 'llvm-runtimes/compiler-rt[-atomic-builtins(-)]' - then - # needed by Valve's fsync patches if using compiler-rt w/o atomics - sed -e '/^UNIX_LIBS.*=/s/$/ -latomic/' \ - -i dlls/{ntdll,winevulkan}/Makefile.in || die - fi - # proton variant also needs specfiles and vulkan tools/make_specfiles || die # perl dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python } src_configure() { + # Valve does not really support anything but gcc+bfd, and some of + # their modifications have been fragile and accumulating issues + # that they seemingly have no interest in fixing (bug #977021) + tc-is-gcc || unset AR AS CC CPP CXX LD NM OBJ{COPY,DUMP} RANLIB READELF STRIP + tc-ld-is-bfd || append-ldflags -fuse-ld=bfd + strip-unsupported-flags + local wineconfargs=( # upstream (Valve) doesn't really support misc configurations (e.g. # adds vulkan code not always guarded by --with-vulkan), so force diff --git a/app-emulation/wine-staging/Manifest b/app-emulation/wine-staging/Manifest index 5827b1d583aa..7e865ea8fe3d 100644 --- a/app-emulation/wine-staging/Manifest +++ b/app-emulation/wine-staging/Manifest @@ -1,8 +1,10 @@ DIST wine-11.0.tar.xz 33172240 BLAKE2B 2e4ef52f53e80c04bf8fc69345632db05e2ade00b8b5e485505e0790717e42f5e2568279565d6bf4edc2767b7a4eed3116914e54026fc4f06067bbf73b97a101 SHA512 a2c3db14f8cf0d19927466805c8f17c68ee7e93d1196d1162dd2279af497c21ec611a63f7a9de59953bbdfdb44c87d7bf55373c6533224a5d54e434c29428d1b DIST wine-11.10.tar.xz 45603064 BLAKE2B 3885760203ff937823e599ec0ffc25484ac39f2dd1169c47e09051df7db9329e5009bc6c3b9d040a05d0f21911cb2da73e54bd2d9e16218aeaba758be807cc75 SHA512 fd1eeac9b2f2fb14edc1d21795ebb29c49be0333493357481db5eca8de9681de3f07fbf4a6876a73ab2ab5369f545d9cf59a6f51f0ee29373ce4c12f76c24679 +DIST wine-11.11.tar.xz 45860328 BLAKE2B 56471a25dfd80ea5b6d7c6b0b4f456243444c888da332da25941e29bca376655356538ba727dfbf1d77af6458de647bf5a51f1216434ed166c76686f0f54b5d1 SHA512 ece93e53a81bd43663c5ad553acb2335c656ac2c4367dfd8c6e0df72fda406da69af3d00c9f5d3d83cf53841baee3da45c20fa5159e93852927c833eacaa6e8e DIST wine-11.8.tar.xz 43789212 BLAKE2B e83e6571bdb09ca46d4de99fd32e5a913deb4c19b9fea0f9c1f318ad14f7718d1bee8490183e405c70fd5303e8df1738e204832b524076e1d0cd44bba1f4a24f SHA512 ca657cf23d0c7a10f07d9eca0938ab182e85b012a38f151c9a7fb6681dd2e93aea77bb14320e99b17c58d30b848dc56a757f5dd0124782d3610589bc365d3ad4 DIST wine-11.9.tar.xz 45515640 BLAKE2B b808587d57554faad6c5d61a9b5560ed2223c217a18b7135e4c44b018b826c147ed9403758b7690f5a92f35658232068b3f289ec63ae608e522a6f9722fb4d90 SHA512 b76d8eb53a5145180b3ec4b25958dc4b7dcf7ef9918decfafb3afadb38a71919c1a1fdf2fc54a883830bb6aefd9da9e0e223fd3d0874c794c53d4bf739632e38 DIST wine-staging-11.0.tar.gz 9323019 BLAKE2B 2d1073205f1f9b5cef5f05445b57f4865dc2290302375f7295855b3200b3039f4eeee49f4c2e4b4e4c85ea6603548d9d4de9825d0f6db62913545e5fc3d7f587 SHA512 27eecce0cc1974e97d2aaffc0bf5a5d114f5fd8d3d6a349d9f984058a316b6654dd07bc2223c38df16fd2862f59aa79518d2d109ea0ac41c957144377ddd39a7 DIST wine-staging-11.10.tar.gz 9259352 BLAKE2B 3b2bd846c23c533c5113c11fbfcf63faa79c707b2b0319e8af796f7cf7094df06265f1beacf0697e8422f5b3092790d678b1d094a859fbc3b416752f048cb754 SHA512 c25d246223511c6be30a199dccf35125236612910f52607ca32090c74c69c5f4c6e7c2500fdfa90a2a063b6556602641c10805edd594bc3a4e993084c0f6c788 +DIST wine-staging-11.11.tar.gz 9262020 BLAKE2B 5731c00c46ba3b6638daa26de4812b9b97a967c8d63addc4e01e9ac08932188fa8112a5af261bcc929e89ffbc33d1a714ddd564f43afb731e3741e204af4fdc7 SHA512 ff577a9c984f21699ad067edd42d595fb9f565382c151a4df00e8a123e78707e52bd7347fb8fb18ab815642f7ba267217893c9fc0b8bc80d4f488d643eb2b4fd DIST wine-staging-11.8.tar.gz 9321144 BLAKE2B d0bc34a60713921ca2f97818fa4044cc430ca600f8fca7bc277955be43eb9e948924a7386be10e3e4d4fa318a57390c135200862ccd16ffc592f89f9884786ab SHA512 86c3a4c2767c78e000e493cc4dcee97851995193c4bea26f2e59f38ad2b4e4f73897d90e7d5f13493f881b5965803aebc62ea9b8baf87d8c200998fb636a6c3c DIST wine-staging-11.9.tar.gz 9323349 BLAKE2B 8f803206cea94e7dffd6f51f32d4176a06a36a75f1d9e34c08be7924a1555ba7b93bc74489f172ebbfffd0ecf66be83275e3291d22de6b7abc6d92e09168f0f5 SHA512 a2c61ef9068b5f736df8df09639edea4579bbd2da12e03b8d4b7259037c814f7101dc13867c9973d9648747b14ff3126894a87bcda3774e2ec7a7c9f03c005fd diff --git a/app-emulation/wine-staging/wine-staging-11.11.ebuild b/app-emulation/wine-staging/wine-staging-11.11.ebuild new file mode 100644 index 000000000000..dc6c47261ec1 --- /dev/null +++ b/app-emulation/wine-staging/wine-staging-11.11.ebuild @@ -0,0 +1,252 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +inherit edo optfeature python-any-r1 wine + +WINE_GECKO=2.47.4 +WINE_MONO=11.1.0 +WINE_P=wine-$(ver_cut 1-2) + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine-staging.git" + WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git" +else + (( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0 + SRC_URI=" + https://dl.winehq.org/wine/source/${WINE_SDIR}/${WINE_P}.tar.xz + https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz + " + KEYWORDS="-* ~amd64 ~arm64 ~x86" +fi + +DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset" +HOMEPAGE=" + https://wiki.winehq.org/Wine-Staging + https://gitlab.winehq.org/wine/wine-staging/ +" +S=${WORKDIR}/${WINE_P} + +LICENSE=" + LGPL-2.1+ + BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain +" +SLOT="${PV}" +IUSE=" + +X +alsa bluetooth capi cups +dbus dos ffmpeg +fontconfig +gecko + gphoto2 +gstreamer kerberos +mono netapi nls odbc opencl +opengl + pcap perl pulseaudio samba scanner +sdl selinux smartcard +ssl + +truetype udev usb v4l +vulkan wayland xinerama +" +REQUIRED_USE=" + X? ( truetype ) + bluetooth? ( dbus ) + opengl? ( || ( X wayland ) ) +" + +# tests are non-trivial to run, can hang easily, don't play well with +# sandbox, and several need real opengl/vulkan or network access +RESTRICT="test" + +# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked +WINE_DLOPEN_DEPEND=" + X? ( + x11-libs/libXcomposite[${WINE_USEDEP}] + x11-libs/libXcursor[${WINE_USEDEP}] + x11-libs/libXfixes[${WINE_USEDEP}] + x11-libs/libXi[${WINE_USEDEP}] + x11-libs/libXrandr[${WINE_USEDEP}] + x11-libs/libXrender[${WINE_USEDEP}] + x11-libs/libXxf86vm[${WINE_USEDEP}] + xinerama? ( x11-libs/libXinerama[${WINE_USEDEP}] ) + ) + cups? ( net-print/cups[${WINE_USEDEP}] ) + dbus? ( sys-apps/dbus[${WINE_USEDEP}] ) + fontconfig? ( media-libs/fontconfig[${WINE_USEDEP}] ) + kerberos? ( virtual/krb5[${WINE_USEDEP}] ) + netapi? ( net-fs/samba[${WINE_USEDEP}] ) + odbc? ( dev-db/unixODBC[${WINE_USEDEP}] ) + opengl? ( media-libs/libglvnd[X?,${WINE_USEDEP}] ) + sdl? ( media-libs/libsdl2[haptic,joystick,${WINE_USEDEP}] ) + ssl? ( net-libs/gnutls:=[${WINE_USEDEP}] ) + truetype? ( media-libs/freetype[${WINE_USEDEP}] ) + v4l? ( media-libs/libv4l[${WINE_USEDEP}] ) + vulkan? ( media-libs/vulkan-loader[X?,wayland?,${WINE_USEDEP}] ) +" +WINE_COMMON_DEPEND=" + ${WINE_DLOPEN_DEPEND} + X? ( + x11-libs/libX11[${WINE_USEDEP}] + x11-libs/libXext[${WINE_USEDEP}] + ) + alsa? ( media-libs/alsa-lib[${WINE_USEDEP}] ) + capi? ( net-libs/libcapi:=[${WINE_USEDEP}] ) + ffmpeg? ( media-video/ffmpeg:=[${WINE_USEDEP}] ) + gphoto2? ( media-libs/libgphoto2:=[${WINE_USEDEP}] ) + gstreamer? ( + dev-libs/glib:2[${WINE_USEDEP}] + media-libs/gst-plugins-base:1.0[${WINE_USEDEP}] + media-libs/gstreamer:1.0[${WINE_USEDEP}] + ) + opencl? ( virtual/opencl[${WINE_USEDEP}] ) + pcap? ( net-libs/libpcap[${WINE_USEDEP}] ) + pulseaudio? ( media-libs/libpulse[${WINE_USEDEP}] ) + scanner? ( media-gfx/sane-backends[${WINE_USEDEP}] ) + smartcard? ( sys-apps/pcsc-lite[${WINE_USEDEP}] ) + udev? ( virtual/libudev:=[${WINE_USEDEP}] ) + usb? ( dev-libs/libusb:1[${WINE_USEDEP}] ) + wayland? ( + dev-libs/wayland[${WINE_USEDEP}] + x11-libs/libxkbcommon[${WINE_USEDEP}] + ) +" +RDEPEND=" + ${WINE_COMMON_DEPEND} + app-emulation/wine-desktop-common + dos? ( + || ( + games-emulation/dosbox + games-emulation/dosbox-staging + ) + ) + gecko? ( + app-emulation/wine-gecko:${WINE_GECKO}[${WINE_USEDEP}] + wow64? ( app-emulation/wine-gecko[abi_x86_32] ) + ) + gstreamer? ( media-plugins/gst-plugins-meta:1.0[${WINE_USEDEP}] ) + mono? ( app-emulation/wine-mono:${WINE_MONO} ) + perl? ( + dev-lang/perl + dev-perl/XML-LibXML + ) + samba? ( net-fs/samba[winbind] ) + selinux? ( sec-policy/selinux-wine ) +" +DEPEND=" + ${WINE_COMMON_DEPEND} + >=sys-kernel/linux-headers-6.14 + X? ( x11-base/xorg-proto ) + bluetooth? ( net-wireless/bluez ) + opencl? ( dev-util/opencl-headers ) +" +BDEPEND=" + ${PYTHON_DEPS} + dev-vcs/git + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + nls? ( sys-devel/gettext ) + wayland? ( dev-util/wayland-scanner ) +" + +QA_CONFIG_IMPL_DECL_SKIP=( + __clear_cache # unused on amd64+x86 (bug #900334) + res_getservers # false positive +) +QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext +# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06 +QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine-preloader" + +PATCHES=( + "${FILESDIR}"/${PN}-7.17-noexecstack.patch + "${FILESDIR}"/${PN}-8.13-rpath.patch +) + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + EGIT_CHECKOUT_DIR=${WORKDIR}/${P} + git-r3_src_unpack + + # hack: use subshell to preserve state (including what git-r3 unpack + # sets) for smart-live-rebuild as this is not the repo to look at + ( + EGIT_COMMIT=$(<"${EGIT_CHECKOUT_DIR}"/staging/upstream-commit) || die + EGIT_REPO_URI=${WINE_EGIT_REPO_URI} + EGIT_CHECKOUT_DIR=${S} + einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})" + git-r3_src_unpack + ) + else + default + fi +} + +src_prepare() { + local patchinstallargs=( + --all + --no-autoconf + ${MY_WINE_STAGING_CONF} + ) + + edo "${PYTHON}" ../${P}/staging/patchinstall.py "${patchinstallargs[@]}" + + wine_src_prepare +} + +src_configure() { + local wineconfargs=( + $(use_enable gecko mshtml) + $(use_enable mono mscoree) + --disable-tests + + $(use_with X x) + $(use_with alsa) + $(use_with capi) + $(use_with cups) + $(use_with dbus) + $(use_with ffmpeg) + $(use_with fontconfig) + $(use_with gphoto2 gphoto) + $(use_with gstreamer) + --without-hwloc # currently only used on FreeBSD + $(use_with kerberos gssapi) + $(use_with kerberos krb5) + $(use_with netapi) + $(use_with nls gettext) + $(use_with opencl) + $(use_with opengl) + --without-oss # media-sound/oss is not packaged (OSSv4) + $(use_with pcap) + $(use_with pulseaudio pulse) + $(use_with scanner sane) + $(use_with sdl) + $(use_with smartcard pcsclite) + $(use_with ssl gnutls) + $(use_with truetype freetype) + $(use_with udev) + $(use_with usb) + $(use_with v4l v4l2) + $(use_with vulkan) + $(use_with wayland) + $(use_with xinerama) + + $(usev !bluetooth ' + ac_cv_header_bluetooth_bluetooth_h=no + ac_cv_header_bluetooth_rfcomm_h=no + ') + $(usev !odbc ac_cv_lib_soname_odbc=) + ) + + wine_src_configure +} + +src_install() { + use perl || local WINE_SKIP_INSTALL=( + ${WINE_DATADIR}/man/man1/wine{dump,maker}.1 + ${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} + ) + + wine_src_install + + dodoc ANNOUNCE* AUTHORS README* documentation/README* +} + +pkg_postinst() { + wine_pkg_postinst + + optfeature "/dev/hidraw* access used for *some* controllers (e.g. DualShock4)" \ + games-util/game-device-udev-rules +} diff --git a/app-emulation/wine-staging/wine-staging-9999.ebuild b/app-emulation/wine-staging/wine-staging-9999.ebuild index 1023384395a0..dc6c47261ec1 100644 --- a/app-emulation/wine-staging/wine-staging-9999.ebuild +++ b/app-emulation/wine-staging/wine-staging-9999.ebuild @@ -33,7 +33,6 @@ S=${WORKDIR}/${WINE_P} LICENSE=" LGPL-2.1+ BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain - || ( WTFPL-2 public-domain ) " SLOT="${PV}" IUSE=" diff --git a/app-emulation/wine-vanilla/Manifest b/app-emulation/wine-vanilla/Manifest index ba2fdb2b83c7..1b9543ae0ca2 100644 --- a/app-emulation/wine-vanilla/Manifest +++ b/app-emulation/wine-vanilla/Manifest @@ -1,6 +1,7 @@ DIST wine-10.0.tar.xz 32011244 BLAKE2B 92178cf484cf33e9f3b8340429ee8e68c36e0d25eee4a892f059ab73f103cfcb9eb15e1883bc9fd8c8fe311d4ccbb56582d1f780da7b1406a7839a13addd29ae SHA512 effb41c5641993e2e52eaa825cc19b7d9846e084992c5a5b066ead2339b24384d320898a9cee347a9a87106bcb3b0f54c8cd2c8d4de3a887a658052ddd5168d6 DIST wine-11.0.tar.xz 33172240 BLAKE2B 2e4ef52f53e80c04bf8fc69345632db05e2ade00b8b5e485505e0790717e42f5e2568279565d6bf4edc2767b7a4eed3116914e54026fc4f06067bbf73b97a101 SHA512 a2c3db14f8cf0d19927466805c8f17c68ee7e93d1196d1162dd2279af497c21ec611a63f7a9de59953bbdfdb44c87d7bf55373c6533224a5d54e434c29428d1b DIST wine-11.10.tar.xz 45603064 BLAKE2B 3885760203ff937823e599ec0ffc25484ac39f2dd1169c47e09051df7db9329e5009bc6c3b9d040a05d0f21911cb2da73e54bd2d9e16218aeaba758be807cc75 SHA512 fd1eeac9b2f2fb14edc1d21795ebb29c49be0333493357481db5eca8de9681de3f07fbf4a6876a73ab2ab5369f545d9cf59a6f51f0ee29373ce4c12f76c24679 +DIST wine-11.11.tar.xz 45860328 BLAKE2B 56471a25dfd80ea5b6d7c6b0b4f456243444c888da332da25941e29bca376655356538ba727dfbf1d77af6458de647bf5a51f1216434ed166c76686f0f54b5d1 SHA512 ece93e53a81bd43663c5ad553acb2335c656ac2c4367dfd8c6e0df72fda406da69af3d00c9f5d3d83cf53841baee3da45c20fa5159e93852927c833eacaa6e8e DIST wine-11.8.tar.xz 43789212 BLAKE2B e83e6571bdb09ca46d4de99fd32e5a913deb4c19b9fea0f9c1f318ad14f7718d1bee8490183e405c70fd5303e8df1738e204832b524076e1d0cd44bba1f4a24f SHA512 ca657cf23d0c7a10f07d9eca0938ab182e85b012a38f151c9a7fb6681dd2e93aea77bb14320e99b17c58d30b848dc56a757f5dd0124782d3610589bc365d3ad4 DIST wine-11.9.tar.xz 45515640 BLAKE2B b808587d57554faad6c5d61a9b5560ed2223c217a18b7135e4c44b018b826c147ed9403758b7690f5a92f35658232068b3f289ec63ae608e522a6f9722fb4d90 SHA512 b76d8eb53a5145180b3ec4b25958dc4b7dcf7ef9918decfafb3afadb38a71919c1a1fdf2fc54a883830bb6aefd9da9e0e223fd3d0874c794c53d4bf739632e38 DIST wine-8.0.2.tar.xz 29060452 BLAKE2B dcffaba6c90c4e02a7bc591a81e11aced06c006370c4c316c8a367b2f5814926063482959fabfe9d674ee1b5a560e59087e9b711e28360ced3aee2bbd6bb8fdb SHA512 e86dd31247d757d48ffb2d24f20edab3fc6ef9c3e395567a7b363951bb681335ba3adb8b84639011b24b6eb274582d56880298d6d95fb100acc072383d4e973f diff --git a/app-emulation/wine-vanilla/wine-vanilla-11.11.ebuild b/app-emulation/wine-vanilla/wine-vanilla-11.11.ebuild new file mode 100644 index 000000000000..ed6b830d7199 --- /dev/null +++ b/app-emulation/wine-vanilla/wine-vanilla-11.11.ebuild @@ -0,0 +1,213 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature wine + +WINE_GECKO=2.47.4 +WINE_MONO=11.1.0 + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git" +else + (( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0 + SRC_URI="https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz" + S=${WORKDIR}/wine-${PV} + KEYWORDS="-* ~amd64 ~arm64 ~x86" +fi + +DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets" +HOMEPAGE=" + https://www.winehq.org/ + https://gitlab.winehq.org/wine/wine/ +" + +LICENSE=" + LGPL-2.1+ + BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain +" +SLOT="${PV}" +IUSE=" + +X +alsa bluetooth capi cups +dbus dos ffmpeg +fontconfig +gecko + gphoto2 +gstreamer kerberos +mono netapi nls odbc opencl +opengl + pcap perl pulseaudio samba scanner +sdl selinux smartcard +ssl + +truetype udev usb v4l +vulkan wayland xinerama +" +REQUIRED_USE=" + X? ( truetype ) + bluetooth? ( dbus ) + opengl? ( || ( X wayland ) ) +" + +# tests are non-trivial to run, can hang easily, don't play well with +# sandbox, and several need real opengl/vulkan or network access +RESTRICT="test" + +# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked +WINE_DLOPEN_DEPEND=" + X? ( + x11-libs/libXcomposite[${WINE_USEDEP}] + x11-libs/libXcursor[${WINE_USEDEP}] + x11-libs/libXfixes[${WINE_USEDEP}] + x11-libs/libXi[${WINE_USEDEP}] + x11-libs/libXrandr[${WINE_USEDEP}] + x11-libs/libXrender[${WINE_USEDEP}] + x11-libs/libXxf86vm[${WINE_USEDEP}] + xinerama? ( x11-libs/libXinerama[${WINE_USEDEP}] ) + ) + cups? ( net-print/cups[${WINE_USEDEP}] ) + dbus? ( sys-apps/dbus[${WINE_USEDEP}] ) + fontconfig? ( media-libs/fontconfig[${WINE_USEDEP}] ) + kerberos? ( virtual/krb5[${WINE_USEDEP}] ) + netapi? ( net-fs/samba[${WINE_USEDEP}] ) + odbc? ( dev-db/unixODBC[${WINE_USEDEP}] ) + opengl? ( media-libs/libglvnd[X?,${WINE_USEDEP}] ) + sdl? ( media-libs/libsdl2[haptic,joystick,${WINE_USEDEP}] ) + ssl? ( net-libs/gnutls:=[${WINE_USEDEP}] ) + truetype? ( media-libs/freetype[${WINE_USEDEP}] ) + v4l? ( media-libs/libv4l[${WINE_USEDEP}] ) + vulkan? ( media-libs/vulkan-loader[X?,wayland?,${WINE_USEDEP}] ) +" +WINE_COMMON_DEPEND=" + ${WINE_DLOPEN_DEPEND} + X? ( + x11-libs/libX11[${WINE_USEDEP}] + x11-libs/libXext[${WINE_USEDEP}] + ) + alsa? ( media-libs/alsa-lib[${WINE_USEDEP}] ) + capi? ( net-libs/libcapi:=[${WINE_USEDEP}] ) + ffmpeg? ( media-video/ffmpeg:=[${WINE_USEDEP}] ) + gphoto2? ( media-libs/libgphoto2:=[${WINE_USEDEP}] ) + gstreamer? ( + dev-libs/glib:2[${WINE_USEDEP}] + media-libs/gst-plugins-base:1.0[${WINE_USEDEP}] + media-libs/gstreamer:1.0[${WINE_USEDEP}] + ) + opencl? ( virtual/opencl[${WINE_USEDEP}] ) + pcap? ( net-libs/libpcap[${WINE_USEDEP}] ) + pulseaudio? ( media-libs/libpulse[${WINE_USEDEP}] ) + scanner? ( media-gfx/sane-backends[${WINE_USEDEP}] ) + smartcard? ( sys-apps/pcsc-lite[${WINE_USEDEP}] ) + udev? ( virtual/libudev:=[${WINE_USEDEP}] ) + usb? ( dev-libs/libusb:1[${WINE_USEDEP}] ) + wayland? ( + dev-libs/wayland[${WINE_USEDEP}] + x11-libs/libxkbcommon[${WINE_USEDEP}] + ) +" +RDEPEND=" + ${WINE_COMMON_DEPEND} + app-emulation/wine-desktop-common + dos? ( + || ( + games-emulation/dosbox + games-emulation/dosbox-staging + ) + ) + gecko? ( + app-emulation/wine-gecko:${WINE_GECKO}[${WINE_USEDEP}] + wow64? ( app-emulation/wine-gecko[abi_x86_32] ) + ) + gstreamer? ( media-plugins/gst-plugins-meta:1.0[${WINE_USEDEP}] ) + mono? ( app-emulation/wine-mono:${WINE_MONO} ) + perl? ( + dev-lang/perl + dev-perl/XML-LibXML + ) + samba? ( net-fs/samba[winbind] ) + selinux? ( sec-policy/selinux-wine ) +" +DEPEND=" + ${WINE_COMMON_DEPEND} + >=sys-kernel/linux-headers-6.14 + X? ( x11-base/xorg-proto ) + bluetooth? ( net-wireless/bluez ) + opencl? ( dev-util/opencl-headers ) +" +BDEPEND=" + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + nls? ( sys-devel/gettext ) + wayland? ( dev-util/wayland-scanner ) +" + +QA_CONFIG_IMPL_DECL_SKIP=( + __clear_cache # unused on amd64+x86 (bug #900338) + res_getservers # false positive +) +QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext +# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06 +QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine-preloader" + +PATCHES=( + "${FILESDIR}"/${PN}-7.0-noexecstack.patch + "${FILESDIR}"/${PN}-8.13-rpath.patch +) + +src_configure() { + local wineconfargs=( + $(use_enable gecko mshtml) + $(use_enable mono mscoree) + --disable-tests + + $(use_with X x) + $(use_with alsa) + $(use_with capi) + $(use_with cups) + $(use_with dbus) + $(use_with ffmpeg) + $(use_with fontconfig) + $(use_with gphoto2 gphoto) + $(use_with gstreamer) + --without-hwloc # currently only used on FreeBSD + $(use_with kerberos gssapi) + $(use_with kerberos krb5) + $(use_with netapi) + $(use_with nls gettext) + $(use_with opencl) + $(use_with opengl) + --without-oss # media-sound/oss is not packaged (OSSv4) + $(use_with pcap) + $(use_with pulseaudio pulse) + $(use_with scanner sane) + $(use_with sdl) + $(use_with smartcard pcsclite) + $(use_with ssl gnutls) + $(use_with truetype freetype) + $(use_with udev) + $(use_with usb) + $(use_with v4l v4l2) + $(use_with vulkan) + $(use_with wayland) + $(use_with xinerama) + + $(usev !bluetooth ' + ac_cv_header_bluetooth_bluetooth_h=no + ac_cv_header_bluetooth_rfcomm_h=no + ') + $(usev !odbc ac_cv_lib_soname_odbc=) + ) + + wine_src_configure +} + +src_install() { + use perl || local WINE_SKIP_INSTALL=( + ${WINE_DATADIR}/man/man1/wine{dump,maker}.1 + ${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} + ) + + wine_src_install + + dodoc ANNOUNCE* AUTHORS README* documentation/README* +} + +pkg_postinst() { + wine_pkg_postinst + + optfeature "/dev/hidraw* access used for *some* controllers (e.g. DualShock4)" \ + games-util/game-device-udev-rules +} diff --git a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild index a5a967215998..ed6b830d7199 100644 --- a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild +++ b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild @@ -27,7 +27,6 @@ HOMEPAGE=" LICENSE=" LGPL-2.1+ BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain - || ( WTFPL-2 public-domain ) " SLOT="${PV}" IUSE=" |
