aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-driver/nvidia-driver.SlackBuild
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2022-04-01 19:31:28 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-02 18:19:06 +0700
commitc36cc2eeabbf75898c48e6a01e56e2617e0c1817 (patch)
tree50c2cce48316bbf15d3fe075d485d9c1a6c8d2d7 /system/nvidia-driver/nvidia-driver.SlackBuild
parent22e93a278c13e0ef2fec3d316e51a1759abc80a0 (diff)
system/nvidia-driver: Updated for version 510.60.02.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-driver/nvidia-driver.SlackBuild')
-rw-r--r--system/nvidia-driver/nvidia-driver.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/system/nvidia-driver/nvidia-driver.SlackBuild b/system/nvidia-driver/nvidia-driver.SlackBuild
index a1637dec87f96..363ac06ed060e 100644
--- a/system/nvidia-driver/nvidia-driver.SlackBuild
+++ b/system/nvidia-driver/nvidia-driver.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for nvidia-driver
# Copyright 2012-2019 Edward W. Koenig, Vancouver, WA, US
-# Copyright 2020, 2021 Lenard Spencer, Orlando, FL, USA
+# Copyright 2020, 2021, 2022 Lenard Spencer, Orlando, FL, USA
#
# All rights reserved.
#
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-driver
-VERSION=${VERSION:-470.63.01}
+VERSION=${VERSION:-510.60.02}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -162,6 +162,7 @@ cd $TMP/$SRCNAM
--egl-external-platform-config-path=$PKG/usr/share/egl/egl_external_platform.d \
--no-nvidia-modprobe \
--no-systemd \
+ --no-peermem \
$COMP32
# Starting with the 465 driver, the installer now places a version-specific
@@ -181,7 +182,12 @@ rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libOpenCL.so.1.0.0
if [ "${COMPAT32}" = "yes" ]; then
rm -f $PKG/usr/lib/libOpenCL.so.1.0.0
fi
-
+# Mitigate a bug in nvidia-installer that misplaces a symlink
+# (Thanks to marco70 on LQ for catching this:
+( cd $PKG/usr/lib${LIBDIRSUFFIX}/gbm
+rm -f nvidia-drm_gbm.so
+ ln -sf ../libnvidia-allocator.so.1 nvidia-drm_gbm.so
+)
# Compile utilites from source, replacing the precompiled versions
#
# Compiling nvidia-settings