From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 18:50:15 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAF43106566C for ; Tue, 7 Aug 2012 18:50:15 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id 830088FC08 for ; Tue, 7 Aug 2012 18:50:15 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id 67D97208AE; Tue, 7 Aug 2012 20:43:23 +0200 (CEST) Message-ID: <502161C6.70801@FreeBSD.org> Date: Tue, 07 Aug 2012 20:43:18 +0200 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20120806160425.GA23270@icarus.home.lan> In-Reply-To: <20120806160425.GA23270@icarus.home.lan> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jeremy Chadwick Subject: Re: Questions about/issues with new OPTIONS framework X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-ports List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2012 18:50:15 -0000 On 2012-08-06 18:04, Jeremy Chadwick wrote: > (Please keep me CC'd, as I'm not subscribed to the list) > > I've been trying to adapt my /etc/make.conf to make use of the new > OPTIONS framework. I've run into some snags that I was hoping someone > could help me with, as I'm unable to find any "official" documentation > other than these two documents, which don't help me in this case: > > http://wiki.freebsd.org/Ports/Options/OptionsNG > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-options.html > > Below are my questions so far. Note that these questions are all > preceded by a key fact: /var/db/ports/* is completely empty. Keep that > in mind please. > > 1. databases/mysql55-server and databases/mysql55-client both ask for > the same variables (OPENSSL and FASTMTX). I want FASTMTX to be enabled > by default for both ports. > > When I have the following in /etc/make.conf: > > mysql_SET= FASTMTX > > Doing "make config" in databases/mysql55-server shows FASTMTX as checked > (which is correct). However, when I do the exact same procedure in > databases/mysql55-client, FASTMTX is not checked. > > I am aware that databases/mysql55-client is a slave port, but I'm not > sure how/why that would matter...? > > What am I doing wrong, or is this a port bug which needs to be fixed by > the maintainer? > > 2. ports/KNOBS is very explicit in stating, and even visually ... 2) alredy answerd ... answer for question 1) $> cd mysql55-client && make -V UNIQUENAME or $> make -V UNIQUENAME -C /usr/ports/databases/mysql55-client/ mysql55-client make.conf entry constructed from UNIQUENAME mysql55-client_SET+= FASTMTX Please note the '+=' instead '='. If you have a port where you set more then on option but not as one expression all ${UNIQUENAME}_SET+= are applied else only the last entry in make.conf. Additional if you have done `make config' already, then your make.conf entry is useless since with options NG the OPTIONSFILE has now a higher priority.