diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2023-08-14 18:25:59 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-08-14 18:25:59 +0300 |
commit | ab41891b6bc4e255d09bca572220d571ca300a5a (patch) | |
tree | 9cfa7012926b460be0c5091bf02e772bbbce8c70 /app-emulation | |
parent | kde-plasma/xdg-desktop-portal-kde: drop 5.27.7 (diff) | |
download | gentoo-ab41891b6bc4e255d09bca572220d571ca300a5a.tar.gz gentoo-ab41891b6bc4e255d09bca572220d571ca300a5a.tar.bz2 gentoo-ab41891b6bc4e255d09bca572220d571ca300a5a.zip |
app-emulation/virtualbox-modules: patch for kernel 6.4.10
Closes: https://bugs.gentoo.org/912168
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-emulation')
3 files changed, 85 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-7.0.10-kernel-6.4.10.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-7.0.10-kernel-6.4.10.patch new file mode 100644 index 000000000000..189a2ce4085e --- /dev/null +++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-7.0.10-kernel-6.4.10.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/912168 + +--- a/vboxnetflt/linux/VBoxNetFlt-linux.c ++++ b/vboxnetflt/linux/VBoxNetFlt-linux.c +@@ -47,7 +47,7 @@ + #if RTLNX_VER_MIN(2,6,24) + # include <linux/nsproxy.h> + #endif +-#if RTLNX_VER_MIN(6,5,0) ++#if RTLNX_VER_MIN(6,4,10) + # include <net/gso.h> + #endif + #include <linux/netdevice.h> diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.46-r1.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.46-r1.ebuild new file mode 100644 index 000000000000..2b866fda3662 --- /dev/null +++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.46-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2023 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-2" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" + +CONFIG_CHECK="~!SPINLOCK JUMP_LABEL" + +PATCHES=( "${FILESDIR}"/${PN}-7.0.10-kernel-6.4.10.patch ) + +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-modules/virtualbox-modules-7.0.10-r1.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-7.0.10-r1.ebuild new file mode 100644 index 000000000000..655c1e954921 --- /dev/null +++ b/app-emulation/virtualbox-modules/virtualbox-modules-7.0.10-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2023 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" + +PATCHES=( "${FILESDIR}"/${PN}-7.0.10-kernel-6.4.10.patch ) + +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 +} |