Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2018 17:38:36 +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: r471574 - head/x11/nvidia-driver
Message-ID:  <201806041738.w54HcafQ044860@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Jun  4 17:38:35 2018
New Revision: 471574
URL: https://svnweb.freebsd.org/changeset/ports/471574

Log:
  Unbreak nVidia drivers on recent -CURRENT, after memset() changes by mjg@
  in r334533 have revealed an existing bug in the nVidia code.
  
  PR:	228709

Modified:
  head/x11/nvidia-driver/Makefile

Modified: head/x11/nvidia-driver/Makefile
==============================================================================
--- head/x11/nvidia-driver/Makefile	Mon Jun  4 17:25:31 2018	(r471573)
+++ head/x11/nvidia-driver/Makefile	Mon Jun  4 17:38:35 2018	(r471574)
@@ -118,12 +118,13 @@ post-patch: .SILENT
 	${REINPLACE_CMD} -E '/#include "machine\/\.\.\/linux(32)?\/linux.h"/ \
 		{ x ; s/.*/#include "machine\/..\/..\/compat\/linux\/linux_ioctl.h"/ ; H ; x ; }' \
 			${WRKSRC}/src/${NVSRC}/nvidia_linux.c
-# Adjust `vm_object' locking after FreeBSD src r248084
+# Adjust `vm_object' locking after FreeBSD src r248084 and bogus memset() call
 	${REINPLACE_CMD} -e '/#include <vm\/vm_object.h>/ \
 		{ x ; s/.*/#include <sys\/rwlock.h>/ ; G ; }' \
 			${WRKSRC}/src/${NVSRC}/nv-freebsd.h
-	${REINPLACE_CMD} -E 's/(VM_OBJECT_)(UN)?(LOCK)/\1W\2\3/' \
-		${WRKSRC}/src/${NVSRC}/nvidia_subr.c
+	${REINPLACE_CMD} -E 's/(VM_OBJECT_)(UN)?(LOCK)/\1W\2\3/ ; \
+		/memset/s/sizeof\(ci/sizeof(*ci/' \
+			${WRKSRC}/src/${NVSRC}/nvidia_subr.c
 # Adjust kmem(9) calls after FreeBSD src r254025
 .if ${NVVERSION} < 331.067
 	${REINPLACE_CMD} -e '/kmem_/s/kernel_map/kernel_arena/' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806041738.w54HcafQ044860>