commit:     646e0df14ac794512a6c156193537a49a6666d1a
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 15:55:39 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 15:57:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=646e0df1

app-emulation/virtualbox*: drop 7.1.0

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 app-emulation/virtualbox-additions/Manifest        |   1 -
 .../virtualbox-additions-7.1.0.ebuild              |  26 -
 app-emulation/virtualbox-extpack-oracle/Manifest   |   1 -
 .../virtualbox-extpack-oracle-7.1.0.ebuild         |  33 -
 app-emulation/virtualbox-guest-additions/Manifest  |   1 -
 .../virtualbox-guest-additions-7.1.0.ebuild        | 288 --------
 app-emulation/virtualbox-modules/Manifest          |   1 -
 .../virtualbox-modules-7.1.0.ebuild                |  34 -
 app-emulation/virtualbox/Manifest                  |   1 -
 app-emulation/virtualbox/virtualbox-7.1.0.ebuild   | 744 ---------------------
 10 files changed, 1130 deletions(-)

diff --git a/app-emulation/virtualbox-additions/Manifest 
b/app-emulation/virtualbox-additions/Manifest
index 4bb4e8cd971d..392314f047a6 100644
--- a/app-emulation/virtualbox-additions/Manifest
+++ b/app-emulation/virtualbox-additions/Manifest
@@ -1,4 +1,3 @@
 DIST VBoxGuestAdditions_6.1.50.iso 64051200 BLAKE2B 
9eff4a3643579ee0426dbe2b62247b8c89321be495e61469628574445fedc06ff2fb9afa108705cbaf24a13db99b4e6e850c61e5c97343095549f444831fcf62
 SHA512 
d74ce912dbbcef7f644a9f3ba9917782336cbee8e0756727a8753ffc17486a75e833adaa869e205531bc3b81b9cb26aa9b50f44210e78dceece966687122f6c6
 DIST VBoxGuestAdditions_7.0.20.iso 53504000 BLAKE2B 
c29824e0e35104051205b13ce11137c1900be7c24c0d1dd4ff7cb6d936e61a8413a4ee1713034f8a347adfaa9b0ce3b43ce2de5b41dd9e74202f2f97710a8009
 SHA512 
6b87812ad1d8230c4f8ab79b58b7095c8c56b0b2acd7dcf0ecf54248fff2d0f3c89cc590de32a3cbabf5853ffa55e1cad8500206512141f027919c37b01f84ad
-DIST VBoxGuestAdditions_7.1.0.iso 58832896 BLAKE2B 
c15c0efddc8ab79a022243c006d8fb31d1a20bf5fe7ea4186f0ddca73cc01b8bffe166ec1fb334b83cc3f36ea07a0f2cc99b4dc4474e6fb8808e8d7493e9fed1
 SHA512 
92314d5488db4d53ba779350cb2226ae444678bb48070ed0cc9c2f11472d6ac7823517baa5ec6cdb3cb97e279205526d4c15aeb268cf43563fa1402cd7176c37
 DIST VBoxGuestAdditions_7.1.2.iso 58839040 BLAKE2B 
5fe5350d22a47fc9820e18de0a8248f093f38bf26dfcbbbc61375b9fbbdde1aba2017d53a53740f21669b8df3b1813e9ba6089ebd948954787e45583f24f9d88
 SHA512 
30d5e7df24a44b694d87debcf3887eafbe6acf09cfdb0b453021825781aa167ab9d2a658b285079960ab92818281332fdf90997abf361cb6f652e63d54e56b8b

diff --git 
a/app-emulation/virtualbox-additions/virtualbox-additions-7.1.0.ebuild 
b/app-emulation/virtualbox-additions/virtualbox-additions-7.1.0.ebuild
deleted file mode 100644
index c1633c28ffeb..000000000000
--- a/app-emulation/virtualbox-additions/virtualbox-additions-7.1.0.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 2022-2024 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 34f0492e9690..3530137fad4e 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-6.1.50.tar.gz 11175855 BLAKE2B 
898ef92a91dbfb39079f8dfa5f4c1e6d91df66e92deb00849ba1da8a2278e3adcfd5754bf70acc6d8b6d7d6273923999860b71c01de3eaabf4d487d718aa14ef
 SHA512 
818f0564a8ee1266f2d03d6e0d5df44278746067ae86279f6e884f519ad3e923382c7b987b3a58fe95e2aa4f0a53b98d553106b0250923e88989e5fdaa9dc3ae
 DIST Oracle_VM_VirtualBox_Extension_Pack-7.0.20.tar.gz 18263914 BLAKE2B 
ca31eccf361e7ce865e838d6e819f3b9ecc0852d07660f14aa9fae200a0d04777256e3cd933ffc02992ed7b596779280176916e9d9f030d7aaf2319433fc63f3
 SHA512 
b0ba22299a9bb81f47fb4c7f4117b1b5210a72973da723185c6d87fe192f7ab0ea0eb9fae6671b84332a234ead8539375976c87c483628449812e617c42598c7
-DIST Oracle_VirtualBox_Extension_Pack-7.1.0.tar.gz 22885754 BLAKE2B 
a3b24822ee269e3bf362871edde3b12f8073e228abf2b390a42d5ba0b38c66d454d765d20bbcf86a212091c3789a3b76a86338f1cdcea79dd902025cee257b9b
 SHA512 
d164f6ee79c78183dd388db34dc7616c5ba31a3103e5a7d3a8c526f2612a49b831a8483d5d8874983185d6d18143fb78905f18167cc22caf5f552984fdc0d826
 DIST Oracle_VirtualBox_Extension_Pack-7.1.2.tar.gz 22966287 BLAKE2B 
aa13d0945a2b033213dcf897d8f5afaf1ac96d89a236aca574e2dc02699efd2b3532e51a5c7fbbbc4b0deb74f525f05108d3e77202959e7ec2f0a87fd776bc42
 SHA512 
8d65de1c62fe7d4f2540a997e9fd0912b99d1561ade4e55b020700b0608f7da76d7a1b3fada413c1a742c9304e3295403ac0c9cd30bb563c56dd8a68ea36b374

diff --git 
a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-7.1.0.ebuild
 
b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-7.1.0.ebuild
deleted file mode 100644
index ffa939f5e0fa..000000000000
--- 
a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-7.1.0.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 2022-2024 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 159f1c3d686b..0788add6d1ec 100644
--- a/app-emulation/virtualbox-guest-additions/Manifest
+++ b/app-emulation/virtualbox-guest-additions/Manifest
@@ -1,6 +1,5 @@
 DIST VirtualBox-6.1.50.tar.bz2 165959648 BLAKE2B 
e244c4fa2ffe86216664104473e27e8ddbad86aae3bc26612d18204a4e67cece91d1fa3aa9e70f1c39f915bf5e4a1e6a14bbb19162c3ae2ff554373df95bce51
 SHA512 
ee2ec352e020f07262bf2120278d0d9807c501cd7c4d621d4e12ce18a821b134d48eb852bc7136008cfa77ed709703d3c2835b7a7177c325d989e8f433aff73f
 DIST VirtualBox-7.0.20.tar.bz2 173300021 BLAKE2B 
23a1553578c8b89c3bea65fd9a451ef5abf419ce8a05524f2afc15b8d9a378a22ffb01c0c792d258320aeddb330b74f8f769180863041e333512d0eed2f4449c
 SHA512 
7682e24d60c1896c661f2689af6820ae67b6bd8d9faaf18c58e8159bc7694ef80722f8e9611d6272da5b46eb2f3a44fc637b277e6801b7a8bf53aad045a81fe9
-DIST VirtualBox-7.1.0.tar.bz2 205966296 BLAKE2B 
135805119d1710adbb17164d80a67f9b40fcc72d966af3b6d687b7f742a7bb487e76afc1ec45e31fe880a99a291ecdac3ee3dacdd342dbbe2dcec0eab32c8121
 SHA512 
d0fc27195b859fb537d57229d60a8895ced24b04c0f703c5862982de01d4787d20a3acb9cee4af29d18c56cd8c7ad846fd0eacc14af0c419e738953ca488463b
 DIST VirtualBox-7.1.2.tar.bz2 206105145 BLAKE2B 
4b30f1d14625ddaed88b1a9cdac41289fef332d52e210d982ce075d652849b1cb72fee6d6e691f74378d4b8e7dd914355bcf0cd074d36249f39b099d1bba7c79
 SHA512 
d890f9b2e8799bcb1ed9cdaa86ef42daa261f7e9022a2e7e9df8c21f395c56e91e2d03292f22c9633ff6a0f0c5933ba3ac30af30befe87b84ffd89c07d51568f
 DIST virtualbox-patches-6.1.36.tar.bz2 2733 BLAKE2B 
dcfebfeca4873d382441515d48b4dfee9343bc7c83ea3cbb5002dbf7975143a79fae9a701b67dc35505e9ca03ff1b6293cb7c3279c4fdfda8ad21ba5fb9b7e87
 SHA512 
1bed5cdefbf8e7c4b0d9092ba4961ecf2262f27f35c71a91ef6f2e8fe8a1d92ed74f06bafbf58d70ba7165d933997f58073f4d4f4051e3ba5c0339b729066f57
 DIST virtualbox-patches-7.0.16.tar.bz2 6808 BLAKE2B 
d15fa2ca306375142c3e25d4759d2790b2bb9eb69e333a8773ad500b29dd127b401943abf59ca59d01858a3ed5551fb3a6c93c4c893c8de971a714ce5306d577
 SHA512 
a488cbc6660fe8637c44cd79d87156609af089988239a7e76fea8a3c7e6319512c574bef2e942b354b14ce671a8e75ab8b2160abf7c40963795ee8a545ecd992

diff --git 
a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-7.1.0.ebuild
 
b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-7.1.0.ebuild
deleted file mode 100644
index 6a4d48acf31d..000000000000
--- 
a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-7.1.0.ebuild
+++ /dev/null
@@ -1,288 +0,0 @@
-# Copyright 2022-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit edo linux-mod-r1 readme.gentoo-r1 systemd toolchain-funcs udev
-
-MY_PN="VirtualBox"
-MY_PV=${PV^^}
-MY_P=${MY_PN}-${MY_PV}
-
-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-7.1.0.tar.bz2";
-S="${WORKDIR}/${MY_PN}-${MY_PV}"
-
-# Reminder: see the LICENSE related comment in 
app-emulation/virtualbox-additions ebuild
-LICENSE="GPL-3 LGPL-2.1+ MIT || ( GPL-3 CDDL )"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64 ~x86"
-IUSE="+dbus gui"
-
-RDEPEND="
-       acct-group/vboxguest
-       acct-group/vboxsf
-       acct-user/vboxguest
-       sys-libs/pam
-       sys-libs/zlib
-       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.3127
-       sys-devel/bin86
-       sys-power/iasl
-"
-
-DOCS=()        # Don't install the default README file during einstalldocs
-
-VBOX_MOD_SRC_DIR="out/linux.${ARCH}/release/bin/additions/src"
-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."
-
-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
-
-       # Provide kernel sources
-       pushd src/VBox/Additions &>/dev/null || die
-       ebegin "Extracting guest kernel module sources"
-       kmk GuestDrivers-src vboxguest-src vboxsf-src vboxvideo-src &>/dev/null
-       eend $? || die
-       popd &>/dev/null || die
-
-       # PaX fixes (see bug #298988)
-       eapply -d "${VBOX_MOD_SRC_DIR}" -- 
"${FILESDIR}"/vboxguest-6.1.36-log-use-c99.patch
-
-       # Disable things unused or splitted into separate ebuilds
-       cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
-       if ! use gui; then
-               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 "${WORKDIR}/virtualbox-patches-7.1.0/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}
-               --with-linux="${KV_OUT_DIR}"
-               --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[@]}"
-
-       # Now creating the kernel modules. We must do this _after_
-       # we compiled the user-space tools as we need two of the
-       # automatically generated header files. (>=3.2.0)
-       # Move this here for bug 836037
-       local modargs=( KERN_DIR="${KV_OUT_DIR}" KERN_VER="${KV_FULL}" )
-       local modlist=( vboxguest vboxsf )
-       use gui && modlist+=( vboxvideo )
-       modlist=( "${modlist[@]/%/=misc:${VBOX_MOD_SRC_DIR}}" )
-       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
-
-       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
-
-       # sample xorg.conf
-       dodoc "${FILESDIR}"/xorg.conf.vbox
-       docompress -x "${ED}"/usr/share/doc/${PF}/xorg.conf.vbox
-
-       systemd_dounit "${FILESDIR}/${PN}.service"
-
-       readme.gentoo_create_doc
-}
-
-pkg_postinst() {
-       linux-mod-r1_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-modules/Manifest 
b/app-emulation/virtualbox-modules/Manifest
index 9e07c6e6bfcd..b8d9070dd884 100644
--- a/app-emulation/virtualbox-modules/Manifest
+++ b/app-emulation/virtualbox-modules/Manifest
@@ -1,4 +1,3 @@
 DIST vbox-kernel-module-src-6.1.50.tar.xz 680700 BLAKE2B 
c3a10ce8f3eb7e6c0c05f81cd3c072296557b9f9f6f501bb0aec3f04aabfe1fbb67b553510104139cef290c09ff9e67161085781b8d28c968dfafd15958a1b1a
 SHA512 
7822e421b595263cbdaae08103255742360ca7ab0c385818ec895f10570c5b9ed5c7614742d8fa8bc2414cd426907cd1c49d735cde8caf9d2b7692898058f592
 DIST vbox-kernel-module-src-7.0.20.tar.xz 720160 BLAKE2B 
833aa87af13a6c3e9426bd00e32b14c8b3958ab14425e8c02141d8579e987255b170662e00abb92f17234d4f03462d6d5b9fc1279d9da5449d344a328c905c8f
 SHA512 
650bb6cf16ae42774524bf2e7ad2ee125d7a8d57de1e58d24b8b49bb9cf2829ea01dd32d2c1e0b2df556eab4a458cb0d84715b92d4085d03891f62a46aaf2916
-DIST vbox-kernel-module-src-7.1.0.tar.xz 738408 BLAKE2B 
d9d88a1a3fcc31557f55be9f136811ce5142f37d94f7ea2144e8461cad09c82e8a4fc01310548a220c645f560849b43a3d4925246961cb8aba9030e8a224c9bb
 SHA512 
385c5062ed8ad5158cb3c3f26c1de90294f1ef108f13da621daef3e99ad21e75f228a91147157fd0fc3dfd14068db976f322f04ea7a22eb3b170361b5a3940bf
 DIST vbox-kernel-module-src-7.1.2.tar.xz 738328 BLAKE2B 
b38f6b3d28581d3c4153d04d3be8bd5792031934740a7acd56e1fdccf78d3d91e55245184aa051ba5329b2be40aa89897c3b2642d2129e4b2af7347efa313c56
 SHA512 
a16ff5ab4b4c139b6fd86da46c28858f06b42a5577915a5c6888d4b4ef6e3f58bff6e70cfe3a939c9896c9a0e371277a89ec58fca695d2232d8ceae9e4ce85e1

diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-7.1.0.ebuild 
b/app-emulation/virtualbox-modules/virtualbox-modules-7.1.0.ebuild
deleted file mode 100644
index 08e22e5e0379..000000000000
--- a/app-emulation/virtualbox-modules/virtualbox-modules-7.1.0.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2022-2024 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-kernel-module-src-${PV}"
-DESCRIPTION="Kernel Modules for Virtualbox"
-HOMEPAGE="https://www.virtualbox.org/";
-SRC_URI="https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${MY_P}.tar.xz";
-S="${WORKDIR}"
-
-LICENSE="GPL-3"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-
-CONFIG_CHECK="~!SPINLOCK JUMP_LABEL"
-
-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
-}

diff --git a/app-emulation/virtualbox/Manifest 
b/app-emulation/virtualbox/Manifest
index 156369948720..1f9501a2940c 100644
--- a/app-emulation/virtualbox/Manifest
+++ b/app-emulation/virtualbox/Manifest
@@ -1,6 +1,5 @@
 DIST VirtualBox-6.1.50.tar.bz2 165959648 BLAKE2B 
e244c4fa2ffe86216664104473e27e8ddbad86aae3bc26612d18204a4e67cece91d1fa3aa9e70f1c39f915bf5e4a1e6a14bbb19162c3ae2ff554373df95bce51
 SHA512 
ee2ec352e020f07262bf2120278d0d9807c501cd7c4d621d4e12ce18a821b134d48eb852bc7136008cfa77ed709703d3c2835b7a7177c325d989e8f433aff73f
 DIST VirtualBox-7.0.20.tar.bz2 173300021 BLAKE2B 
23a1553578c8b89c3bea65fd9a451ef5abf419ce8a05524f2afc15b8d9a378a22ffb01c0c792d258320aeddb330b74f8f769180863041e333512d0eed2f4449c
 SHA512 
7682e24d60c1896c661f2689af6820ae67b6bd8d9faaf18c58e8159bc7694ef80722f8e9611d6272da5b46eb2f3a44fc637b277e6801b7a8bf53aad045a81fe9
-DIST VirtualBox-7.1.0.tar.bz2 205966296 BLAKE2B 
135805119d1710adbb17164d80a67f9b40fcc72d966af3b6d687b7f742a7bb487e76afc1ec45e31fe880a99a291ecdac3ee3dacdd342dbbe2dcec0eab32c8121
 SHA512 
d0fc27195b859fb537d57229d60a8895ced24b04c0f703c5862982de01d4787d20a3acb9cee4af29d18c56cd8c7ad846fd0eacc14af0c419e738953ca488463b
 DIST VirtualBox-7.1.2.tar.bz2 206105145 BLAKE2B 
4b30f1d14625ddaed88b1a9cdac41289fef332d52e210d982ce075d652849b1cb72fee6d6e691f74378d4b8e7dd914355bcf0cd074d36249f39b099d1bba7c79
 SHA512 
d890f9b2e8799bcb1ed9cdaa86ef42daa261f7e9022a2e7e9df8c21f395c56e91e2d03292f22c9633ff6a0f0c5933ba3ac30af30befe87b84ffd89c07d51568f
 DIST virtualbox-help-7.0.20.tar.xz 3949292 BLAKE2B 
c56f736606fdedfb59bd1f4446a457587dcbe018d1be3162d94eca780cacfa45b49ba5a9c6b25970d28e5a428904bdfd34d2f229c1e24b567fd1b1959cbdc9ea
 SHA512 
e73e448b8aa875d0f6ae1fb398082fa7183e198191a9b509b63592b5df3a19069b805dcdc11d98da3971a14fd6670d8b0a777e5a6d6b63358f7a4f263ca8d31e
 DIST virtualbox-help-7.1.0.tar.xz 1631644 BLAKE2B 
408748619d1e981b9d5b5e615baca75ff297e9b7e745751767361b7b9c74345a3db1980734439f3868c412fe28a6b687b417adc3cc148d2e2b8a9fa60e48463b
 SHA512 
513b8474d4fbf7cdb83624dc8d344122c524d92f9f84b32784161c8e1cac8ddc2c265447621d7cd3cf105d555a044e6abf42155f413ba89d507eba7ce3b2da89

diff --git a/app-emulation/virtualbox/virtualbox-7.1.0.ebuild 
b/app-emulation/virtualbox/virtualbox-7.1.0.ebuild
deleted file mode 100644
index 32185b29faef..000000000000
--- a/app-emulation/virtualbox/virtualbox-7.1.0.ebuild
+++ /dev/null
@@ -1,744 +0,0 @@
-# Copyright 2022-2024 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_{10..11} )
-
-inherit desktop edo flag-o-matic java-pkg-opt-2 linux-info multilib optfeature 
pax-utils \
-       python-single-r1 tmpfiles toolchain-funcs udev xdg
-
-MY_PN="VirtualBox"
-MY_P=${MY_PN}-${PV}
-HELP_PV=${PV}
-
-DESCRIPTION="Family of powerful x86 virtualization products for enterprise and 
home use"
-HOMEPAGE="https://www.virtualbox.org/";
-SRC_URI="
-       https://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2
-       
https://gitweb.gentoo.org/proj/virtualbox-patches.git/snapshot/virtualbox-patches-7.1.0.tar.bz2
-       gui? ( !doc? ( 
https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${PN}-help-${HELP_PV}.tar.xz ) 
)
-"
-S="${WORKDIR}/${MY_PN}-${PV}"
-
-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 java lvm nls pam pch pulseaudio +opengl 
python +sdk +sdl +udev vboxwebsrv vde +vmmraw vnc"
-
-unset WATCOM #856769
-
-COMMON_DEPEND="
-       acct-group/vboxusers
-       app-arch/xz-utils
-       ~app-emulation/virtualbox-modules-${PV}
-       dev-libs/libtpms
-       dev-libs/libxml2
-       dev-libs/openssl:0=
-       media-libs/libpng:0=
-       media-libs/libvpx:0=
-       net-misc/curl
-       sys-libs/zlib
-       dbus? ( sys-apps/dbus )
-       gui? (
-               dev-qt/qtbase:6[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="
-       ${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-libs/libIDL
-       dev-util/glslang
-       >=dev-build/kbuild-0.1.9998.3592
-       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} )
-"
-
-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-7.1.0/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
-
-       # 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}"/${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 #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/&nbsp;/\&#160;/g' \
-               -e 's/&ndash;/\&#8211;/g' \
-               -e 's/&larr;/\&#8592;/g' \
-               -e 's/&rarr;/\&#8594;/g' \
-               -e 's/&harr;/\&#8596;/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/&apos;[^&]*\(vboxdrv setup\|vboxconfig\)&apos;/\&apos;emerge 
-1 virtualbox-modules\&apos;/' {} \+ || die
-       sed -i "s:'/sbin/vboxconfig':'emerge -1 virtualbox-modules':" \
-               src/VBox/Frontends/VirtualBox/src/main.cpp \
-               src/VBox/VMM/VMMR3/VM.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)"
-
-       local myconf=(
-               --with-gcc="$(tc-getCC)"
-               --with-g++="$(tc-getCXX)"
-
-               --disable-kmods
-
-               $(usev !alsa --disable-alsa)
-               $(usev !dbus --disable-dbus)
-               $(usev debug --build-debug)
-               $(usev !doc --disable-docs)
-               $(usev !java --disable-java)
-               $(usev !lvm --disable-devmapper)
-               $(usev !pulseaudio --disable-pulse)
-               $(usev !python --disable-python)
-               $(usev vboxwebsrv --enable-webservice)
-               $(usev vde --enable-vde)
-               $(usev !vmmraw --disable-vmmraw)
-               $(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
-               )
-       fi
-
-       if use amd64 && ! has_multilib_profile; then
-               myconf+=( --disable-vmmraw )
-       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_install() {
-       cd "${S}"/out/linux.${ARCH}/$(usex debug debug release)/bin || die
-
-       local vbox_inst_path="/usr/$(get_libdir)/${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}/${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}/${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.
-       for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
-               vbox_inst ${each} 4750
-       done
-
-       # Install EFI Firmware files (bug #320757)
-       for each in VBoxEFI{32,64}.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 4750
-               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 4750
-               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
-
-               domenu ${PN}.desktop
-
-               pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
-               for size in 16 32 48 64 128 ; do
-                       newicon -s ${size} ${PN}-${size}px.png ${PN}.png
-               done
-               newicon ${PN}-48px.png ${PN}.png
-               doicon -s scalable ${PN}.svg
-               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="${PN}-${ico}-${size}px.png"
-                               if [[ -f "${icofile}" ]]; then
-                                       newicon -s ${size} ${icofile} 
${PN}-${ico}.png
-                               fi
-                       done
-               done
-               popd &>/dev/null || die
-       fi
-
-       if use lvm; then
-               vbox_inst VBoxVolInfo 4750
-               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)/${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}
-       elif use gui; then
-               dodoc "${WORKDIR}"/${PN}-help-${HELP_PV}/UserManual.q{ch,hc}
-               docompress -x /usr/share/doc/${PF}
-       fi
-
-       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}"/${PN}-vboxusb_tmpfilesd ${PN}-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/${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 
${PN}."
-       fi
-}
-
-pkg_postrm() {
-       xdg_pkg_postrm
-
-       use udev && udev_reload
-}


Reply via email to