From owner-freebsd-ports@FreeBSD.ORG Thu Jun 17 11:41:56 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 A399616A4CE for ; Thu, 17 Jun 2004 11:41:56 +0000 (GMT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45B9243D5A for ; Thu, 17 Jun 2004 11:41:56 +0000 (GMT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id DE0683D3E; Thu, 17 Jun 2004 07:41:50 -0400 (EDT) From: "Dan Langille" To: Roman Neuhauser Date: Thu, 17 Jun 2004 07:41:08 -0400 MIME-Version: 1.0 Message-ID: <40D14B14.5529.7A9F944C@localhost> Priority: normal In-reply-to: <20040617102735.GA1924@isis.wad.cz> References: <40D03202.11738.76559182@localhost> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: ports@FreeBSD.org Subject: Re: HEADS UP - master/slave ports 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: Thu, 17 Jun 2004 11:41:56 -0000 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/