From owner-freebsd-ports@FreeBSD.ORG Sun Mar 17 15:58:32 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B5407D4B for ; Sun, 17 Mar 2013 15:58:32 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 4CCB2812 for ; Sun, 17 Mar 2013 15:58:32 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id 12so1834668wgh.1 for ; Sun, 17 Mar 2013 08:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+IwdIyCVl8uNtZq1He94BwOelpAOIixsmL4fPubyUGA=; b=atTTKCezZ1Adu0EVnUGROuTTimxb6nwX8Y1N7yGy5kmKs/BpVWDTahPSqULoaitshi +ss2YSAW4EG3kxus2GPTeT/U5au3x9QJn4Un7XCB7+ubgwEGKEzA/52JeoxMuiNLb8Jb SGDVJz6llmGO9pVTvu/wRqA7G9gB2sDe2Plql9HeZpaMvzsTz1GiQ6ACDKkKHN3wypF4 kNpyMymAx4co2ocR3oXCRz+8AsF52E/M7SPOTtvKpT9idmXYiPFOsXhh7smL5y7WC7T3 AZIs8IPVKFwKNkcEaK3zP8yht+ZxsphWNkPb0MI89aqmO9rbko8WUsv3OvH4rDcmNa3k pgJA== MIME-Version: 1.0 X-Received: by 10.194.60.195 with SMTP id j3mr20036622wjr.33.1363535911422; Sun, 17 Mar 2013 08:58:31 -0700 (PDT) Received: by 10.216.9.68 with HTTP; Sun, 17 Mar 2013 08:58:31 -0700 (PDT) In-Reply-To: <5145E47D.4050201@executive-computing.de> References: <5145B415.80303@executive-computing.de> <5145C9DC.6010300@infracaninophile.co.uk> <5145E47D.4050201@executive-computing.de> Date: Sun, 17 Mar 2013 17:58:31 +0200 Message-ID: Subject: Re: OPTIONSng: Overide options in /var/db/ports/*/options ? From: Kimmo Paasiala To: Marco Steinbach Content-Type: text/plain; charset=UTF-8 Cc: freebsd-ports 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:58:32 -0000 On Sun, Mar 17, 2013 at 5:42 PM, Marco Steinbach wrote: > 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. > > > I use poudriere with a configuration where all of the stored /var/db/ports options are thrown away after compilation. I have all the settings I want to set in /usr/local/etc/poudrire.d/make.conf instead. -Kimmo