svn commit: r326460 - head/x11/nvidia-driver

Alexey Dokuchaev danfe at FreeBSD.org
Fri Sep 6 05:07:15 UTC 2013


Author: danfe
Date: Fri Sep  6 05:07:15 2013
New Revision: 326460
URL: http://svnweb.freebsd.org/changeset/ports/326460

Log:
  Unbreak the build on recent -CURRENT (after cap_rights_t type was changed
  from uint64_t to a structure in r255219).
  
  PR:	ports/181840

Modified:
  head/x11/nvidia-driver/Makefile

Modified: head/x11/nvidia-driver/Makefile
==============================================================================
--- head/x11/nvidia-driver/Makefile	Fri Sep  6 04:30:35 2013	(r326459)
+++ head/x11/nvidia-driver/Makefile	Fri Sep  6 05:07:15 2013	(r326460)
@@ -154,6 +154,12 @@ post-patch: .SILENT
 	${REINPLACE_CMD} -e '/kmem_/s/kernel_map/kernel_arena/' \
 		${WRKSRC}/src/nvidia_subr.c
 .endif
+# Adopt to cap_rights_t type change in FreeBSD src SVN r255219
+.if ${OSVERSION} > 1000051
+	${REINPLACE_CMD} -e 's/u_long cmd;/& cap_rights_t rights;/ ; \
+		s/CAP_IOCTL/cap_rights_init(\&rights, &)/' \
+			${WRKSRC}/src/nvidia_linux.c
+.endif
 # Fix stack buffer overflow in nvidia_sysctl_bus_type()
 .if ${NVVERSION} < 3192300
 	${REINPLACE_CMD} -E '/bus_type\[4\]/d ; \


More information about the svn-ports-all mailing list