From owner-freebsd-ports@FreeBSD.ORG Thu Jun 17 12:29:36 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 2F4D016A4CE for ; Thu, 17 Jun 2004 12:29:36 +0000 (GMT) Received: from smtp.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 5464743D49 for ; Thu, 17 Jun 2004 12:29:35 +0000 (GMT) (envelope-from neuhauser@chello.cz) Received: (qmail 46637 invoked by uid 0); 17 Jun 2004 12:28:40 -0000 Received: from r3al16.mistral.cz (HELO isis.wad.cz) (213.220.229.16) by smtp.dkm.cz with SMTP; 17 Jun 2004 12:28:40 -0000 Received: by isis.wad.cz (Postfix, from userid 1001) id 713CE2FDA01; Thu, 17 Jun 2004 14:28:40 +0200 (CEST) Date: Thu, 17 Jun 2004 14:28:40 +0200 From: Roman Neuhauser To: Dan Langille Message-ID: <20040617122840.GB2664@isis.wad.cz> Mail-Followup-To: Dan Langille , ports@FreeBSD.org References: <40D14B14.5529.7A9F944C@localhost> <40D1528D.31889.7ABCC38C@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D1528D.31889.7ABCC38C@localhost> User-Agent: Mutt/1.5.6i 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 12:29:36 -0000 # dan@langille.org / 2004-06-17 08:13:01 -0400: > On 17 Jun 2004 at 14:07, Roman Neuhauser wrote: > > # dan@langille.org / 2004-06-17 07:41:08 -0400: > > > On 17 Jun 2004 at 12:27, Roman Neuhauser wrote: > > > > # dan@langille.org / 2004-06-16 11:41:54 -0400: > > > > > +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 '`' > > > > replace the hashes, e. g.: > > > > MASTERPORT= ${MASTERDIR:S,^${_REALPORTSDIR}/,,} > > That's getting better: > > $ make -V MASTERPORT -f ./Makefile PORTSDIR=~/ports > LOCALBASE=/nonexistentlocal X11BASE=/nonexistentx > /www/mod_php4/../../lang/php4 > > But not the same as the original: > > $ make -V MASTERPORT -f ./Makefile PORTSDIR=~/ports > LOCALBASE=/nonexistentlocal X11BASE=/nonexistentx > lang/php4 Ugh, I see; I was confusing this with another feature... That would make it _REALPORTSDIR!= ${REALPATH} "${PORTSDIR}" _REALMASTERDIR!= ${REALPATH} "${MASTERDIR}" MASTERPORT= ${_REALMASTERDIR:S,^${_REALPORTSDIR}/,,} and I'm not sure that's any better than what you had originally. But, what will both versions output in databases/mysql40-client? -- 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