Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368939 - =x11-drivers/nvidia-drivers-96.43.19 patch for building with 2.6.39 kernels
Summary: =x11-drivers/nvidia-drivers-96.43.19 patch for building with 2.6.39 kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 19:48 UTC by Alex Buell
Modified: 2011-05-28 15:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2011-05-27 19:48:33 UTC
smp_lock.h no longer exists in 2.6.39+ kernels, so here's a patch to allow nvidia-drivers to build on those kernels. Please push out asap for testing.
Comment 1 Alex Buell 2011-05-27 19:50:01 UTC
--- /usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.19.ebuild	
2011-04-24 20:01:26.000000000 +0100
+++ nvidia-drivers-96.43.19-r1.ebuild	2011-05-27 21:44:03.962740249 +0100
@@ -272,6 +272,8 @@
 		# If greater than 2.6.5 use M= instead of SUBDIR=
 		convert_to_m "${NV_SRC}"/Makefile.kbuild
 	fi
+
+	perl -pi -e 's/.*smp_lock.h.*\n//' "${NV_SRC}"/nv-linux.h
 }
 
 src_compile() {