From owner-freebsd-questions@freebsd.org Sun Apr 10 03:23:40 2016 Return-Path: Delivered-To: freebsd-questions@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 C5393B0A873 for ; Sun, 10 Apr 2016 03:23:40 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 55B501B3D for ; Sun, 10 Apr 2016 03:23:39 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-182-127.lns20.adl6.internode.on.net (HELO leader.local) ([118.210.182.127]) by ipmail06.adl2.internode.on.net with ESMTP; 10 Apr 2016 12:48:30 +0930 Subject: Re: building linux ports with x11/nvidia-driver-340 instead of x11/nvidia-driver To: Vikash Badal , "freebsd-questions@freebsd.org" References: <570668FB.1010308@where-ever.za.net> <20160407193035.123cc810@max-BSD> <20160407192133.0eee3ad0@gumby.homeunix.com> <57075920.7030707@is.co.za> From: Shane Ambler Message-ID: <5709C604.8050505@ShaneWare.Biz> Date: Sun, 10 Apr 2016 12:48:28 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <57075920.7030707@is.co.za> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2016 03:23:40 -0000 On 08/04/2016 16:39, Vikash Badal wrote: > On 07/04/2016 20:21, RW via freebsd-questions wrote: >> On Thu, 7 Apr 2016 19:30:35 +0200 >> maxnix wrote: >> >> This makes it depend on x11/nvidia-driver, when the question as about >> making it depend on the x11/nvidia-driver-340 legacy driver port. >> >> >> As far as the port dependency installation is concerned it shouldn't >> make any difference >> >> NVIDIA_GL_RUN_DEPENDS=${LINUXBASE}/usr/lib/libGL.so.1:x11/nvidia-driver >> >> so if x11/nvidia-driver-340 has already installed libGL.so.1 then it >> wont try to install x11/nvidia-driver to satisfy the dependency. >> >> This used to work with pkg-tools, I'm not sure what happens with >> pkg. It'll probably complain, but it's worth a try. > > Sorry I forgot to mention that I'm building via poudriere x11/nvidia-driver is the master port that contains all the build info for installing all nvidia drivers. When you build from nvidia-driver-340 it sets two variables and then uses the master Makefile to do all the work. You can work with this to make nvidia-driver install the version you want. Add the following to the make.conf for your poudriere build - see man poudriere under customisation for info on make.conf file names. You can also add it to /etc/make.conf for manual port builds. .if ${.CURDIR:M*/x11/nvidia-driver*} DISTVERSION= 340.93 PKGNAMESUFFIX= -340 .endif -- FreeBSD - the place to B...Software Developing Shane Ambler