summaryrefslogtreecommitdiff
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
parentbb2cef5edf85ffacc36a97c394c4af0115c6ffcd (diff)
sys-kernel/virtualbox-modules-dkms : fix src_prepare, patch EAPI7 way
-rw-r--r--metadata/md5-cache/sys-kernel/virtualbox-modules-dkms-6.1.18-r22
-rw-r--r--sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.1.18-r2.ebuild6
2 files changed, 6 insertions, 2 deletions
diff --git a/metadata/md5-cache/sys-kernel/virtualbox-modules-dkms-6.1.18-r2 b/metadata/md5-cache/sys-kernel/virtualbox-modules-dkms-6.1.18-r2
index 60ab8fc4..44ba6e83 100644
--- a/metadata/md5-cache/sys-kernel/virtualbox-modules-dkms-6.1.18-r2
+++ b/metadata/md5-cache/sys-kernel/virtualbox-modules-dkms-6.1.18-r2
@@ -10,4 +10,4 @@ RDEPEND=sys-apps/ethtool sys-kernel/dkms
SLOT=0
SRC_URI=http://archive.ubuntu.com/ubuntu/pool/multiverse/v/virtualbox/virtualbox-dkms_6.1.18-dfsg-2_amd64.deb
_eclasses_=edos2unix 33e347e171066657f91f8b0c72ec8773 eutils dab5d8ec471d025b79c9e6906bcf3bff multilib 4fbbbc98f236f1b43acd99476bc3cd85 strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 toolchain-funcs 3484f775017f532a8d1ae02c65defe13 unpacker 697382d119fd3d195f110b7979184285 wrapper 4a1902f969e5718126434fc35f3a0d9c
-_md5_=b7b083af49098a61957671b1a031ce2b
+_md5_=ae370198b8b0be346b03172a13d0b60a
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() {