summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-19 07:53:18 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-19 07:53:18 +0100
commitb07e4a9037856847fd7a0e6edccc31a9f02b651a (patch)
treee3ae92d6f357da3270f4dd9d1fadb0866acdf55e /sys-kernel
parentbb2cef5edf85ffacc36a97c394c4af0115c6ffcd (diff)
sys-kernel/virtualbox-modules-dkms : fix src_prepare, patch EAPI7 way
Diffstat (limited to 'sys-kernel')
-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() {