HEADS UP - master/slave ports

Roman Neuhauser neuhauser at chello.cz
Thu Jun 17 13:05:18 GMT 2004


# dan at 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 at 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


More information about the freebsd-ports mailing list