From owner-freebsd-ports@FreeBSD.ORG Thu Jul 25 13:34:26 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C462491C for ; Thu, 25 Jul 2013 13:34:26 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay005.isp.belgacom.be (mailrelay005.isp.belgacom.be [195.238.6.171]) by mx1.freebsd.org (Postfix) with ESMTP id 61EE7295F for ; Thu, 25 Jul 2013 13:34:25 +0000 (UTC) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=XcRPbE/61RViQ18Cyf2UWKT165DesunXni6Typ7x5jA= c=1 sm=2 a=nHqvdeyrPkYA:10 a=ZxPGInapWdQA:10 a=OctEKaEMX-R5hCHTD5UA:9 a=CjuIK1q_8ugA:10 a=HKcA1cXQRK-MCUoRPeoA:9 a=0CaTwavtbm8A:10 a=_G8qimlXLBUA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcGAKAo8VFR8b7D/2dsb2JhbABagwY1vi6BFhd0giQBAQVWIxALDgoJJQ8qHgaIJ7khjk6BLweEAAOQEoN2g1aKI4crgxY6gTU Received: from 195.190-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.190.195]) by relay.skynet.be with ESMTP; 25 Jul 2013 15:33:17 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r6PDXFto003520; Thu, 25 Jul 2013 15:33:16 +0200 (CEST) (envelope-from tijl@coosemans.org) Date: Thu, 25 Jul 2013 15:33:10 +0200 From: Tijl Coosemans To: Panagiotis Christias Subject: Re: WITHOUT_NLS precedence over {UNIQUENAME}_SET or OPTIONS_FILE_SET? Message-ID: <20130725153310.170c2be6@kalimero.tijl.coosemans.org> In-Reply-To: <20130724215812.GA85865@noc.ntua.gr> References: <20130724215812.GA85865@noc.ntua.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/gIT2RtXOtMk=l7HmO65.j+k"; protocol="application/pgp-signature" 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 13:34:26 -0000 --Sig_/gIT2RtXOtMk=l7HmO65.j+k Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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: >=20 > # Global options > WITHOUT_NLS=3Dyes > [etc..] >=20 > # Per port options > .if $(.CURDIR:M*/mail/mailman) > mailman_SET+=3DMTA SENDMAIL NLS > .endif >=20 > .if $(.CURDIR:M*/sysutils/coreutils) > coreutils_SET+=3DNLS > .endif >=20 > [etc..] >=20 > In the above example, I was under the impression that > "mailman_SET+=3DNLS" or "coreutils_SET+=3DNLS" options would override > the global WITHOUT_NLS=3Dyes definition but according to "make > showconfig" I was wrong. >=20 > Is this the correct behavior? To me at least it doesn't seem right. >=20 > To make things even more weird the following configuration works as > expected: >=20 > # Global options > WITHOUT_NLS=3Dyes >=20 > # Per port options > .if $(.CURDIR:M*/mail/mailman) > mailman_SET+=3DMTA SENDMAIL > OPTIONS_FILE_SET+=3DNLS > .endif >=20 > .if $(.CURDIR:M*/sysutils/coreutils) > OPTIONS_FILE_SET+=3DNLS > .endif >=20 > That is, OPTIONS_FILE_SET+=3DNLS takes precedence over WITHOUT_NLS=3Dyes > but {UNIQUENAME}_SET+=3DNLS 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=3DNLS =20 # Per port options mail_mailman_SET=3DMTA SENDMAIL NLS sysutils_coreutils_SET=3DNLS --Sig_/gIT2RtXOtMk=l7HmO65.j+k Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlHxKRoACgkQfoCS2CCgtiu5bAD/SQLrY1LU06GHnooEdt+6Yjrq tkTE+FIkK+Lmog1u0twA/1VYw8hdK+VE6bHrOZTNb1ZuzxMQQf6wZBaN8SjsZ8/c =hdSy -----END PGP SIGNATURE----- --Sig_/gIT2RtXOtMk=l7HmO65.j+k--