summaryrefslogtreecommitdiff
path: root/sys-kernel/virtualbox-modules-dkms
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/virtualbox-modules-dkms')
-rw-r--r--sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.1.18-r2.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.1.18-r2.ebuild b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.1.18-r2.ebuild
index 9226c9b1..e89cf7e4 100644
--- a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.1.18-r2.ebuild
+++ b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.1.18-r2.ebuild
@@ -24,15 +24,19 @@ RDEPEND="${DEPEND}"
S=${WORKDIR}
+PATCHES=(
+ "${FILESDIR}"/kernel-5.11.patch
+)
+
src_unpack() {
unpack_deb ${A}
}
src_prepare() {
+ default
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
sed -i "s/virtualbox/${PN}/g" usr/src/virtualbox-${PV}/dkms.conf
sed -i "s/updates/extra\/dkms/g" usr/src/virtualbox-${PV}/dkms.conf
- epatch "${FILESDIR}"/kernel-5.11.patch
}
src_compile() {