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

25 lines
798 B
Diff
Raw Normal View History

2012-05-22 16:07:10 +00:00
--- /mnt/portage/portage/x11-drivers/nvidia-drivers/nvidia-drivers-295.53.ebuild 2012-05-21 16:31:31.000000000 -0700
+++ nvidia-drivers-295.53.ebuild 2012-05-22 08:59:13.433939065 -0700
@@ -21,7 +21,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"
-IUSE="acpi multilib kernel_FreeBSD kernel_linux +tools"
+IUSE="acpi multilib kernel_FreeBSD kernel_linux pax_kernel +tools"
2011-10-06 07:55:11 +00:00
RESTRICT="strip"
EMULTILIB_PKG="true"
2012-05-22 16:07:10 +00:00
@@ -303,6 +303,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
/usr/$(get_libdir)/libcuda.so
EOF