From owner-freebsd-ports@FreeBSD.ORG Tue Jan 21 15:59:13 2014 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 ESMTPS id E0470D64 for ; Tue, 21 Jan 2014 15:59:13 +0000 (UTC) Received: from kaywinnit.conundrum.com (smtp.conundrum.com [IPv6:2001:4900:1:213::2:20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 96D911B7D for ; Tue, 21 Jan 2014 15:59:13 +0000 (UTC) Received: from chani.conundrum.com ([216.235.10.34]) by kaywinnit.conundrum.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82 (FreeBSD)) (envelope-from ) id 1W5djL-0002kh-1l; Tue, 21 Jan 2014 15:59:11 +0000 Subject: Re: per-port make.conf options and hyphenated port names Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset=windows-1252 From: Matthew Pounsett In-Reply-To: <52DE3FA5.6040407@gmail.com> Date: Tue, 21 Jan 2014 10:59:04 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <49627444-7052-433A-8CD9-042D5041B5A4@conundrum.com> References: <92E0B243-3705-437A-80C8-DB9AAF938A3D@conundrum.com> <52DE3FA5.6040407@gmail.com> To: Volodymyr Kostyrko X-Mailer: Apple Mail (2.1827) Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 15:59:13 -0000 On Jan 21, 2014, at 04:36 , Volodymyr Kostyrko = wrote: > 21.01.2014 03:01, Matthew Pounsett wrote: >>=20 >> Digging through /usr/ports/Mk/ I can=92t find anywhere that = $UNIQUENAME is modified to guarantee that it references a safe variable = name (i.e. I don=92t see anywhere that $UNIQUENAME has reserved = characters removed from it before use). So, given that a lot of times = $UNIQUENAME is just the name of the port, and a lot of ports have = hyphens in their names, how is this meant to be dealt with? >>=20 >> Thanks for any pointers or help! >=20 > Excuse me hijacking the thread but doesn't ports-mgmt/portconf do = almost the same? It might, but not being part of the core ports makefiles it=92s not a = candidate for use inside tinderbox and other port-building tools.