Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 2004 07:41:08 -0400
From:      "Dan Langille" <dan@langille.org>
To:        Roman Neuhauser <neuhauser@chello.cz>
Cc:        ports@FreeBSD.org
Subject:   Re: HEADS UP - master/slave ports
Message-ID:  <40D14B14.5529.7A9F944C@localhost>
In-Reply-To: <20040617102735.GA1924@isis.wad.cz>
References:  <40D03202.11738.76559182@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On 17 Jun 2004 at 12:27, Roman Neuhauser wrote:

> # dan@langille.org / 2004-06-16 11:41:54 -0400:
> > Note: FreshPorts beta is making use of this patch to obtain this 
> > master/slave information (tabs will be corrupted in this paste and 
> > lines will be wrapped):
> 
>     ...
>  
> > +MASTERPORT!=   ${ECHO_CMD} "${_MASTERDIR}" | ${SED} -Ee 's;^.*/([^/]+/[^/]+)/?$$;\1;'
> 
>     You don't need the sed, or rely on the fact that the category
>     hierarchy is flat.  Instead:
> 
>     _REALPORTSDIR!= ${REALPATH} "${PORTSDIR}"
>     MASTERPORT=	${MASTERDIR:S#^${_REALPORTSDIR}##}

I apologise for not giving credit to Mark Linimon for patch.

Roman: I tried your patch.  Here is what is does:

[dan@polo:~/ports/www/mod_php4] $ make -V MASTERPORT -f ./Makefile 
PORTSDIR=~/ports LOCALBASE=/nonexistentlocal X11BASE=/nonexistentx
Unknown modifier '`'

Unclosed variable specification for MASTERDIR
Unknown modifier ''

[repeat above three until you reach 440 lines of output.

FWIW, the first line of output changes slightly if you remove the 
LOCALBASE specification, the first line of output changes to:
Unknown modifier '`'

I don't how to fix that.  cheers.
-- 
Dan Langille : http://www.langille.org/
BSDCan - http://www.bsdcan.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40D14B14.5529.7A9F944C>