diff options
Diffstat (limited to 'libraries/digimend-kernel-drivers/digimend-kernel-drivers.SlackBuild')
-rw-r--r-- | libraries/digimend-kernel-drivers/digimend-kernel-drivers.SlackBuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libraries/digimend-kernel-drivers/digimend-kernel-drivers.SlackBuild b/libraries/digimend-kernel-drivers/digimend-kernel-drivers.SlackBuild index 243e216d4d..3727c589d8 100644 --- a/libraries/digimend-kernel-drivers/digimend-kernel-drivers.SlackBuild +++ b/libraries/digimend-kernel-drivers/digimend-kernel-drivers.SlackBuild @@ -77,6 +77,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Check if we are using 6.x kernel +# 6.12 made changes to a header, so we need to patch +# https://github.com/DIGImend/digimend-kernel-drivers/pull/707 +SHORTVER=`echo $KERNEL | cut -d "." -f1` +if [ $SHORTVER -eq 6 ]; then + patch -p1 < $CWD/b9ef432e2b93c31d2e39be13f22c61f4c2e8b5cb.patch +fi + # don't run depmod here sed -i '/depmod -a$/d' Makefile # don't run udevadm here |