quarks/x11-drivers/nvidia-drivers/ebuild.diff

25 lines
819 B
Diff
Raw Normal View History

2012-08-23 04:16:22 +00:00
--- /mnt/portage/portage/x11-drivers/nvidia-drivers/nvidia-drivers-304.37-r1.ebuild 2012-08-21 22:01:31.000000000 -0700
+++ nvidia-drivers-304.37-r1.ebuild 2012-08-22 21:13:33.716791429 -0700
@@ -22,7 +22,7 @@
2011-10-06 07:55:11 +00:00
LICENSE="NVIDIA"
SLOT="0"
2012-05-22 16:07:10 +00:00
KEYWORDS="-* ~amd64 ~x86 ~amd64-fbsd ~x86-fbsd"
2012-08-23 04:16:22 +00:00
-IUSE="acpi multilib kernel_FreeBSD kernel_linux +tools +X"
+IUSE="acpi multilib kernel_FreeBSD kernel_linux pax_kernel +tools +X"
2011-10-06 07:55:11 +00:00
RESTRICT="strip"
EMULTILIB_PKG="true"
2012-08-23 04:16:22 +00:00
@@ -139,6 +139,12 @@
2011-10-06 07:55:11 +00:00
# If greater than 2.6.5 use M= instead of SUBDIR=
convert_to_m "${NV_SRC}"/Makefile.kbuild
fi
+
+ if use pax_kernel; then
+ epatch "${FILESDIR}"/nvidia-drivers-pax-const.patch
+ epatch "${FILESDIR}"/nvidia-drivers-pax-usercopy.patch
2011-10-06 07:55:11 +00:00
+ fi
2012-05-05 21:38:16 +00:00
+
cat <<- EOF > "${S}"/nvidia.icd
2012-08-23 04:16:22 +00:00
/usr/$(get_libdir)/libnvidia-opencl.so
2012-05-05 21:38:16 +00:00
EOF