From owner-freebsd-ports@FreeBSD.ORG Tue Jan 20 10:17:26 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 295AA16A4CE; Tue, 20 Jan 2004 10:17:26 -0800 (PST) Received: from postman.arcor.de (postman2.arcor-online.net [151.189.0.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7412043D31; Tue, 20 Jan 2004 10:16:27 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from fillmore.dyndns.org (port-212-202-51-21.reverse.qsc.de [212.202.51.21]) (authenticated bits=0)i0KIGPgG008750 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 20 Jan 2004 19:16:26 +0100 (MET) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (SSLv3:AES256-SHA:256) (Exim 4.30; FreeBSD) id 1Aj0QL-000IoQ-OT; Tue, 20 Jan 2004 19:16:25 +0100 Message-ID: <400D7077.30009@fillmore-labs.com> Date: Tue, 20 Jan 2004 19:16:23 +0100 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Joe Marcus Clarke References: <1074590694.85583.20.camel@shumai.marcuscom.com> <400D2939.5090203@fillmore-labs.com> <1074617147.757.16.camel@gyros> <20040120171315.GH94636@FreeBSD.org> <1074619795.757.43.camel@gyros> <400D68A1.4030501@fillmore-labs.com> <1074620919.757.51.camel@gyros> <20040120175136.GC3365@toxic.magnesium.net> <400D6D8F.7010708@fillmore-labs.com> <1074621945.757.63.camel@gyros> In-Reply-To: <1074621945.757.63.camel@gyros> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ports@FreeBSD.org cc: Eivind Eklund cc: Adam Weinberger cc: Kris Kennaway Subject: Re: HEADS UP: New bsd.*.mk changes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2004 18:17:26 -0000 Joe Marcus Clarke wrote: > On Tue, 2004-01-20 at 13:03, Oliver Eikemeier wrote: > >>Adam Weinberger wrote: >> >> >>>>>(01.20.2004 @ 1248 PST): Joe Marcus Clarke said, in 3.9K: << >>>>>Can we at least have >>>>> >>>>>OPTIONSNAME?=${PKGNAMEPREFIX}${PORTNAME} >>>>> >>>>>here? It makes sense for all the localized ports, perl, ruby, python, linux >>>>>and others. >>>> >>>>That makes sense...maybe having the whole trifecta is a good idea, too: >>>>${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} >>>> >>>>And what about UNIQUENAME instead of OPTIONSNAME? This way, it could be >>>>used for other purposes. >>>> >>>> >>>>>end of "Re: HEADS UP: New bsd.*.mk changes" from Joe Marcus Clarke << >>> >>> >>>If all you're going for is a unique identifier for each port, this is >>>guaranteed unique: >>> >>>${.CURDIR:S@${PORTSDIR}@@:S@/@_@g} >>> >>>x11_gnome2, etc. >> >>Sorry to bring it up again, LATEST_LINK is designed to do what we want, it >>has just a stupid name... >> >>Look at >> >>all packages in one directory, no collisions, version independend. It even >>survives renaming / category changes. > > Except not every port creates a LATEST_LINK. Not every port creates PKGLATESTFILE (${PKGLATESTREPOSITORY}/${LATEST_LINK}${PKG_SUFX}). Every port sets the variable LATEST_LINK (by default to ${PKGBASE}=${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}), and ports that need to override it with something suitable (openldap, apache). Only the ports that build no packages (like the jdk ports) don't care and have the same LATEST_LINK. I totally agree that nobody want to use a variable called 'LATEST_LINK' used for that purpose, but, hey, it's just a name. If we use something like OPTIONSNAME?=${LATEST_LINK} we have to use an workaround only for the port that build no packages, the rest should be automagically right. All the work of thinking of an unique name has already been done for a lot of ports.