[Slackbuilds-users] Building nvidia-legacy304-kernel fails on 4.4 series kernels above release 167

ld.jay ld.jay at protonmail.com
Sun Sep 19 00:22:06 UTC 2021


The following small hack added to the SlackBuild at line 79 (right after "cd kernel || exit 1") fixes the problem:

# Jay's hack to make the module compile on 4.4.y (for y > 167 )
KVER_MAJOR=$( echo $KERNEL | cut -f 1 -d . )
KVER_MINOR=$( echo $KERNEL | cut -f 2 -d . )
KVER_RELEASE=$( echo $KERNEL | cut -f 3 -d . | cut -f 1 -d - )
if [ $KVER_MAJOR -eq 4 ] ; then
if [ $KVER_MINOR -eq 4 ] ; then
if [ $KVER_RELEASE -gt 167 ] ; then
sed -i "1927s/force,//" nv-linux.h
fi
fi
fi
########################

Since this SlackBuild is unmaintained, and I have no plans to "upgrade" my current nVidia card, I would be willing to take over maintaining this one. Legacy304 is the "newest" driver that works with my FX3500, and when 15 becomes official, I'll continue to use it, assuming that I can get it to compile on 5.x.x kernels.

Also, since I first drafted this message, I've been working on updating this SlackBuild to work on -current. This update is almost ready for prime time. I started a thread about it on LQ if anyone is interested.

Thanks,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20210919/8cd473f1/attachment.htm>


More information about the SlackBuilds-users mailing list