diff --git a/srcpkgs/dkms/files/kernel.d/dkms.postinst b/srcpkgs/dkms/files/kernel.d/dkms.postinst index ef2a10bac2..6b345bef90 100644 --- a/srcpkgs/dkms/files/kernel.d/dkms.postinst +++ b/srcpkgs/dkms/files/kernel.d/dkms.postinst @@ -19,8 +19,8 @@ fi export IGNORE_CC_MISMATCH=1 -if [ ! -f /lib/modules/${VERSION}/build/scripts/basic/fixdep ] ; then - yes "" | make -j $(nproc) -C /lib/modules/${VERSION}/build scripts +if [ ! -f /lib/modules/${VERSION}/build/scripts/basic/fixdep ] || [ ! -f /lib/modules/${VERSION}/build/scripts/mod/modpost ]; then + yes "" | make -j $(nproc) -C /lib/modules/${VERSION}/build prepare0 fi # Check available DKMS modules diff --git a/srcpkgs/dkms/template b/srcpkgs/dkms/template index 664f899abb..ba61736f1b 100644 --- a/srcpkgs/dkms/template +++ b/srcpkgs/dkms/template @@ -1,7 +1,7 @@ # Template file for 'dkms' pkgname=dkms version=2.8.3 -revision=2 +revision=3 conf_files="/etc/dkms/framework.conf" depends="bash kmod gcc make coreutils" short_desc="Dynamic Kernel Modules System"