From owner-svn-ports-head@freebsd.org Wed Oct 12 00:31:29 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF3B3C0E941; Wed, 12 Oct 2016 00:31:29 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9DA7097F; Wed, 12 Oct 2016 00:31:29 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9C0VSku001983; Wed, 12 Oct 2016 00:31:28 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9C0VSa6001982; Wed, 12 Oct 2016 00:31:28 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201610120031.u9C0VSa6001982@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Wed, 12 Oct 2016 00:31:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423810 - head/x11/nvidia-driver X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 00:31:29 -0000 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/' \