mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-14 11:03:49 +02:00
nvidia: add patch for linux>=3.8.
This commit is contained in:
parent
30932bf9ef
commit
03277b9560
2 changed files with 12 additions and 2 deletions
10
srcpkgs/nvidia/files/linux-3.8.patch
Normal file
10
srcpkgs/nvidia/files/linux-3.8.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- kernel/conftest.sh.orig
|
||||||
|
+++ kernel/conftest.sh
|
||||||
|
@@ -160,6 +160,7 @@ build_cflags() {
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
|
||||||
|
CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include"
|
||||||
|
+ CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include/uapi"
|
||||||
|
CFLAGS="$CFLAGS -I$OUTPUT/arch/x86/include/generated"
|
||||||
|
CFLAGS="$CFLAGS -I$OUTPUT/arch/x86/include/generated/uapi"
|
||||||
|
elif [ "$ARCH" = "arm" ]; then
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nvidia'
|
# Template file for 'nvidia'
|
||||||
pkgname=nvidia
|
pkgname=nvidia
|
||||||
version=313.18
|
version=313.18
|
||||||
revision=3
|
revision=4
|
||||||
short_desc="NVIDIA non free driver for linux -- libraries and utilities"
|
short_desc="NVIDIA non free driver for linux -- libraries and utilities"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="Propietary NVIDIA license"
|
license="Propietary NVIDIA license"
|
||||||
|
@ -33,7 +33,7 @@ do_extract() {
|
||||||
do_install() {
|
do_install() {
|
||||||
cd ${_pkg}
|
cd ${_pkg}
|
||||||
|
|
||||||
sed -i -e "s,\(SUBLEVEL -le\) 5,\1 20," kernel/conftest.sh
|
patch -Np0 -i ${FILESDIR}/linux-3.8.patch
|
||||||
|
|
||||||
# X driver
|
# X driver
|
||||||
vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers
|
vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers
|
||||||
|
|
Loading…
Add table
Reference in a new issue