Date: Thu, 17 Jun 2004 15:04:57 +0200 From: Roman Neuhauser <neuhauser@chello.cz> To: Dan Langille <dan@langille.org> Cc: ports@FreeBSD.org Subject: Re: HEADS UP - master/slave ports Message-ID: <20040617130457.GD2664@isis.wad.cz> In-Reply-To: <40D159DD.23350.7AD95699@localhost> References: <40D1528D.31889.7ABCC38C@localhost> <40D159DD.23350.7AD95699@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
# dan@langille.org / 2004-06-17 08:44:13 -0400: > On 17 Jun 2004 at 14:28, Roman Neuhauser wrote: > > Ugh, I see; I was confusing this with another feature... That > > would make it > > > > _REALPORTSDIR!= ${REALPATH} "${PORTSDIR}" > > _REALMASTERDIR!= ${REALPATH} "${MASTERDIR}" > > MASTERPORT= ${_REALMASTERDIR:S,^${_REALPORTSDIR}/,,} > > That's better: > > [dan@polo:~/ports/www/mod_php4] $ make -V MASTERPORT -f ./Makefile > PORTSDIR=~/ports LOCALBASE=/nonexistentlocal X11BASE=/nonexistentx > lang/php4 > > > and I'm not sure that's any better than what you had originally. > > Why do you think that? Because I don't know whether two /bin/realpath calls are cheaper than one /usr/bin/sed. > > But, what will both versions output in databases/mysql40-client? > > Both output the same thing: Ah, sure, ${MASTERDIR} was passed through realpath in both versions. So, remaining differences are perhaps speed, readability, and more than one level of categories. The first hasn't been measured, the second is a subjective thing, and the last is ATM a purely theoretical concern. Sorry for the noise. -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040617130457.GD2664>