diff options
author | Edward W. Koenig <kingbeowulf@gmail.com> | 2017-02-17 22:50:41 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-02-17 22:57:26 +0000 |
commit | c9a5c118288c97d6ecd0532a3dc8adf947844c02 (patch) | |
tree | dc0fee83759c22edca85caaa455e4c5149844e09 | |
parent | 8e6534c6c983c3929004bc87d5b397445b9ba976 (diff) | |
download | slackbuilds-c9a5c118288c97d6ecd0532a3dc8adf947844c02.tar.gz |
system/nvidia-legacy304-kernel: Updated for version 304.135.
(* Security fix *)
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
5 files changed, 13 insertions, 40 deletions
diff --git a/system/nvidia-legacy304-kernel/README b/system/nvidia-legacy304-kernel/README index 485a3adf40..46388555c1 100644 --- a/system/nvidia-legacy304-kernel/README +++ b/system/nvidia-legacy304-kernel/README @@ -6,7 +6,7 @@ start the script setting the KERNEL variable as in KERNEL=2.6.38.8 ./nvidia-legacy304-kernel.SlackBuild A default config file is placed at /usr/share/X11/xorg.conf.d/10-nvidia.conf -to make sure that X loads the nvidia module. If you need to make changes, -copy that file to /etc/X11/xorg.conf.d/ and edit the copy. +to make sure that X loads the nvidia module. If you need to make changes, +copy that file to /etc/X11/xorg.conf.d/ and edit the copy. The xf86-video-nouveau-blacklist package from /extra is required. diff --git a/system/nvidia-legacy304-kernel/changelog.txt b/system/nvidia-legacy304-kernel/changelog.txt index 91222c8fea..358fcb6eb5 100644 --- a/system/nvidia-legacy304-kernel/changelog.txt +++ b/system/nvidia-legacy304-kernel/changelog.txt @@ -14,4 +14,4 @@ 3.3 05-SEP-2015 version update 3.4 13-DEC-2015 version update, X.org 1.18 3.5 26-JUL-2016 Patched to not use deprecated kernel mtrr API in >=4.3.x kernels --rworkman - +4.0 15-FEB-2017 new version, security updates, remove disable-mtrr patch (fixed) diff --git a/system/nvidia-legacy304-kernel/disable-mtrr.patch b/system/nvidia-legacy304-kernel/disable-mtrr.patch deleted file mode 100644 index 326c287ec3..0000000000 --- a/system/nvidia-legacy304-kernel/disable-mtrr.patch +++ /dev/null @@ -1,25 +0,0 @@ -Author: Luca Boccassi <luca.boccassi@gmail.com> -Description: Disable MTRR on kernel >= 4.3 - From kernel 4.3 and newer (commit 2baa891e42d84) mtrr_add and mtrr_del are no - longer exported. The Nvidia kernel shim still uses it as of 304.131, causing - the module to error out when loading. Disable MTRR if running on 4.3 or greater - until upstream fixes it. - ---- a/nv-linux.h -+++ b/nv-linux.h -@@ -256,6 +256,15 @@ - #include <linux/seq_file.h> - #endif - -+/* -+ * As of version 304.131, os-agp.c and os-mtrr.c still use deprecated -+ * kernel APIs for mtrr which are no longer exported since 4.3, causing -+ * the module to error out when loaded. -+ */ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0) -+#undef CONFIG_MTRR -+#endif -+ - #if !defined(NV_VMWARE) && defined(CONFIG_MTRR) - #include <asm/mtrr.h> - #endif diff --git a/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.SlackBuild b/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.SlackBuild index ad1af699e1..e4458adcb9 100644 --- a/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.SlackBuild +++ b/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for nvidia-kernel # Copyright 2007-2011 Heinz Wiesinger, Amsterdam, The Netherlands -# Copyright 2011-2015 Edward W. Koenig, Vancouver, WA, USA +# Copyright 2011-2017 Edward W. Koenig, Vancouver, WA, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,8 +26,8 @@ # See changelog.txt PRGNAM=nvidia-legacy304-kernel -VERSION=${VERSION:-304.131} -BUILD=${BUILD:-2} +VERSION=${VERSION:-304.135} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} KERNEL=${KERNEL:-$(uname -r)} @@ -37,13 +37,13 @@ PKGVER=${VERSION}_$(echo $KERNEL | tr - _) if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -if [ "$ARCH" = "i486" ]; then +if [ "$ARCH" = "i586" ]; then TARGET="x86" SRCSUFFIX="" elif [ "$ARCH" = "i686" ]; then @@ -77,8 +77,6 @@ find -L . \ cd kernel || exit 1 -patch -p1 < $CWD/disable-mtrr.patch || exit 1 - make SYSSRC=$KERNELPATH module || exit 1 mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video diff --git a/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.info b/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.info index f580ecddde..326a7d3506 100644 --- a/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.info +++ b/system/nvidia-legacy304-kernel/nvidia-legacy304-kernel.info @@ -1,10 +1,10 @@ PRGNAM="nvidia-legacy304-kernel" -VERSION="304.131" +VERSION="304.135" HOMEPAGE="http://www.nvidia.com" -DOWNLOAD="ftp://download.nvidia.com/XFree86/Linux-x86/304.131/NVIDIA-Linux-x86-304.131.run" -MD5SUM="9f3222fd7287d9b31f54f1d75760e183" -DOWNLOAD_x86_64="ftp://download.nvidia.com/XFree86/Linux-x86_64/304.131/NVIDIA-Linux-x86_64-304.131.run" -MD5SUM_x86_64="e80db7eaf32294d4066f841f0870a85a" +DOWNLOAD="ftp://download.nvidia.com/XFree86/Linux-x86/304.135/NVIDIA-Linux-x86-304.135.run" +MD5SUM="0e2082ae8490b135eb306befe6db56e1" +DOWNLOAD_x86_64="ftp://download.nvidia.com/XFree86/Linux-x86_64/304.135/NVIDIA-Linux-x86_64-304.135.run" +MD5SUM_x86_64="dfd6d6ec0a36d2177229eee5f7dd57ba" REQUIRES="" MAINTAINER="Edward W. Koenig" EMAIL="kingbeowulf@gmail.com" |