svn commit: r477761 - head/x11/nvidia-driver
Gleb Smirnoff
glebius at FreeBSD.org
Tue Aug 21 22:58:45 UTC 2018
Author: glebius (src committer)
Date: Tue Aug 21 22:58:43 2018
New Revision: 477761
URL: https://svnweb.freebsd.org/changeset/ports/477761
Log:
Unbreak nVidia drivers on recent -CURRENT, after change to
kmem_alloc_contig() in r338143.
PR: 230780
Modified:
head/x11/nvidia-driver/Makefile
Modified: head/x11/nvidia-driver/Makefile
==============================================================================
--- head/x11/nvidia-driver/Makefile Tue Aug 21 22:03:35 2018 (r477760)
+++ head/x11/nvidia-driver/Makefile Tue Aug 21 22:58:43 2018 (r477761)
@@ -113,6 +113,10 @@ MAKE_ENV+= WITHOUT_LINUX=yes
.endif
post-patch: .SILENT
+# KPI of kmem_alloc_contig() changed in FreeBSD src r338143
+.if ${OSVERSION} >= 1200079
+ ${REINPLACE_CMD} -e 's/kmem_alloc_contig(kmem_arena, /kmem_alloc_contig(/' ${WRKSRC}/src/${NVSRC}/nvidia_subr.c
+.endif
# We should support -CURRENT: kill the check
${REINPLACE_CMD} -e '24,26d' ${WRKSRC}/src/${NVSRC}/nv-freebsd.h
# Adjust Linux headers #include's after FreeBSD src r246085
More information about the svn-ports-all
mailing list