From owner-freebsd-ports@FreeBSD.ORG Sun Mar 17 15:45:13 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 34854A16 for ; Sun, 17 Mar 2013 15:45:13 +0000 (UTC) (envelope-from coco@executive-computing.de) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id E3F327BC for ; Sun, 17 Mar 2013 15:45:12 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id 9C5068B143B for ; Sun, 17 Mar 2013 16:45:11 +0100 (CET) X-Spam-Flag: NO X-Spam-Score: -100.966 X-Spam-Level: X-Spam-Status: No, score=-100.966 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.034, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id GJKGp3s5vrPm for ; Sun, 17 Mar 2013 16:45:10 +0100 (CET) Received: from [192.168.100.30] (p54B08F18.dip.t-dialin.net [84.176.143.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id 1DFA48B1420 for ; Sun, 17 Mar 2013 16:45:10 +0100 (CET) Message-ID: <5145E47D.4050201@executive-computing.de> Date: Sun, 17 Mar 2013 16:42:53 +0100 From: Marco Steinbach User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: freebsd-ports Subject: Re: OPTIONSng: Overide options in /var/db/ports/*/options ? References: <5145B415.80303@executive-computing.de> <5145C9DC.6010300@infracaninophile.co.uk> In-Reply-To: <5145C9DC.6010300@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 15:45:13 -0000 Matthew Seaman wrote on 17.03.2013 14:49: > On 17/03/2013 12:16, Marco Steinbach wrote: >> Hi, >> >> is there a way to overide options stored in /var/db/ports/*/options, >> basically getting back the pre-OPTIONSng behaviour of being able to >> overide port options in /etc/make.conf ? >> >> Before OPTIONSng was introduced, I was able to specify options in >> /etc/make.conf (WITHOUT_X11, WITHOUT_CUPS, WITH_MAILHEAD, WITH_SSL, >> WITH_MYSQL, WITH_DOVECOT, ...), which then overode any occurency of that >> option in any port (or just specific ones, by e.g. checking .CURDIR), >> regardless of the setting the ports option file contained. > > Find the uniquename of the port[*] (by 'make -V UNIQUENAME') then in > /etc/make.conf > > uniquename_SET= FOO BAR BAZ > uniquename_UNSET= BLURFL > > will override the default settings in that port's Makefile for the FOO, > BAR, BAZ and BLURFL options. > > Note: this won't override any settings you make from an options dialog. > Might be a good idea to 'make rmconfig' if you only want to rely on > /etc/make.conf [...] Exactly my point. Currently, with OPTIONSng there seems to be no way to overide anything in /var/db/ports/*/options. I find it irritating, that I no longer can be sure about options in /etc/make.conf. I have to check/reconfigure to make sure. As much as I like OPTIONSng (especially in combination with dialog4ports), this is one thing I'd very much like OPTIONSng to relearn: Enforce options regardless of what's in a ports options file. Enforcing invalid multi/single/radio option combinations may be a possible pitfall, but that's catched by OPTIONSng, and the build simply stops. MfG CoCo