Date: Fri, 6 Sep 2013 05:07:15 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r326460 - head/x11/nvidia-driver Message-ID: <201309060507.r8657FZ1095525@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 ; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309060507.r8657FZ1095525>