Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2016 00:31:28 +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: r423810 - head/x11/nvidia-driver
Message-ID:  <201610120031.u9C0VSa6001982@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Oct 12 00:31:28 2016
New Revision: 423810
URL: https://svnweb.freebsd.org/changeset/ports/423810

Log:
  Fix `linux.ko' false dependency.  Starting with version 358.09, the driver
  includes a new kernel module, `nvidia-modeset.ko', a driver component that
  works in conjunction with the `nvidia.ko' kernel module.
  
  However, previously the build process did not respect LINUX compile (port)
  option.  Adopt the same way this is done for the core driver.
  
  PR:		213222
  Submitted by:	peter

Modified:
  head/x11/nvidia-driver/Makefile

Modified: head/x11/nvidia-driver/Makefile
==============================================================================
--- head/x11/nvidia-driver/Makefile	Wed Oct 12 00:18:31 2016	(r423809)
+++ head/x11/nvidia-driver/Makefile	Wed Oct 12 00:31:28 2016	(r423810)
@@ -195,6 +195,10 @@ post-patch: .SILENT
 .if ! ${PORT_OPTIONS:MLINUX}
 	${REINPLACE_CMD} -E 's/define (NV_SUPPORT_LINUX_COMPAT)/undef \1/' \
 		${WRKSRC}/src/${NVSRC}/nv-freebsd.h
+.  if ${NVVERSION} >= 358.009
+	${REINPLACE_CMD} -E 's/define (NVKMS_SUPPORT_LINUX_COMPAT)/undef \1/' \
+		${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c
+.  endif
 .endif
 .if ${PORT_OPTIONS:MPAE}
 	${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_PAE)/define \1/' \



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