mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-14 21:56:41 +01:00
system/virtualbox-kernel-addons: Fix building against newer kernels.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
parent
c6f0bfbc46
commit
8ac827899d
1 changed files with 10 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for virtualbox-kernel-addons
|
||||
|
||||
# Copyright 2008-2017 Heinz Wiesinger, Amsterdam, The Netherlands
|
||||
# Copyright 2008-2019 Heinz Wiesinger, Amsterdam, The Netherlands
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=virtualbox-kernel-addons
|
||||
VERSION=${VERSION:-5.0.40}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
KERNEL=${KERNEL:-$(uname -r)}
|
||||
|
@ -65,6 +65,14 @@ find -L . \
|
|||
|
||||
mkdir -p $PKG/lib/modules/$KERNEL/misc
|
||||
|
||||
KERNEL_MINOR=$(echo $KERNEL | cut -d "." -f 2)
|
||||
KERNEL_PATCH=$(echo $KERNEL | cut -d "." -f 3)
|
||||
|
||||
# Work around API break introduced in kernel 4.4.168
|
||||
if [ "$KERNEL_MINOR" = 4 -a "$KERNEL_PATCH" -ge 168 ]; then
|
||||
sed -i "s|KERNEL_VERSION(4, 9, 0)|KERNEL_VERSION(4, 4, 168)|" vboxguest/r0drv/linux/memobj-r0drv-linux.c
|
||||
fi
|
||||
|
||||
for i in vboxguest vboxsf vboxvideo; do
|
||||
cd $i
|
||||
make KERN_DIR=$KERNELPATH
|
||||
|
|
Loading…
Reference in a new issue