From owner-freebsd-ports@FreeBSD.ORG Thu Jul 25 16:16:27 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3C83F78 for ; Thu, 25 Jul 2013 16:16:27 +0000 (UTC) (envelope-from p.christias@noc.ntua.gr) Received: from smtp0.ntua.gr (smtp0.ntua.gr [IPv6:2001:648:2000:de::185]) by mx1.freebsd.org (Postfix) with ESMTP id 14DBE21C7 for ; Thu, 25 Jul 2013 16:16:26 +0000 (UTC) Received: from [IPv6:2001:648:2000:dc:5cab:5273:34c:af2d] ([IPv6:2001:648:2000:dc:5cab:5273:34c:af2d]) (authenticated bits=0) by smtp0.ntua.gr (8.14.7/8.14.7) with ESMTP id r6PGGM6e052576 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Thu, 25 Jul 2013 19:16:23 +0300 (EEST) (envelope-from p.christias@noc.ntua.gr) Message-ID: <51F14F4F.1050807@noc.ntua.gr> Date: Thu, 25 Jul 2013 19:16:15 +0300 From: Panagiotis Christias Organization: NTUA NOC User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tijl Coosemans Subject: Re: WITHOUT_NLS precedence over {UNIQUENAME}_SET or OPTIONS_FILE_SET? References: <20130724215812.GA85865@noc.ntua.gr> <20130725153310.170c2be6@kalimero.tijl.coosemans.org> In-Reply-To: <20130725153310.170c2be6@kalimero.tijl.coosemans.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-ports@freebsd.org 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: Thu, 25 Jul 2013 16:16:27 -0000 On 25/7/2013 4:33 μμ, Tijl Coosemans wrote: > On Thu, 25 Jul 2013 00:58:12 +0300 Panagiotis Christias wrote: >> in my servers I add all global and per port build options in the >> /etc/make.conf file, like this: >> >> # Global options >> WITHOUT_NLS=yes >> [etc..] >> >> # Per port options >> .if $(.CURDIR:M*/mail/mailman) >> mailman_SET+=MTA SENDMAIL NLS >> .endif >> >> .if $(.CURDIR:M*/sysutils/coreutils) >> coreutils_SET+=NLS >> .endif >> >> [etc..] >> >> In the above example, I was under the impression that >> "mailman_SET+=NLS" or "coreutils_SET+=NLS" options would override >> the global WITHOUT_NLS=yes definition but according to "make >> showconfig" I was wrong. >> >> Is this the correct behavior? To me at least it doesn't seem right. >> >> To make things even more weird the following configuration works as >> expected: >> >> # Global options >> WITHOUT_NLS=yes >> >> # Per port options >> .if $(.CURDIR:M*/mail/mailman) >> mailman_SET+=MTA SENDMAIL >> OPTIONS_FILE_SET+=NLS >> .endif >> >> .if $(.CURDIR:M*/sysutils/coreutils) >> OPTIONS_FILE_SET+=NLS >> .endif >> >> That is, OPTIONS_FILE_SET+=NLS takes precedence over WITHOUT_NLS=yes >> but {UNIQUENAME}_SET+=NLS doesn't. > > WITH_* and WITHOUT_* style variables are still supported for backward > compatibility but they are deprecated. There's some documentation in > Mk/bsd.options.mk on how to set options in make.conf and in what order > all option lists are processed. In your case you can do something like > this: > > # Global options > OPTIONS_UNSET=NLS > > # Per port options > mail_mailman_SET=MTA SENDMAIL NLS > sysutils_coreutils_SET=NLS Great info! Everything looks clearer now. Thank you, Panagiotis -- Panagiotis J. Christias Network Management Center p.christias@noc.ntua.gr National Technical Univ. of Athens, GREECE