From owner-freebsd-ports@FreeBSD.ORG Thu Jun 17 13:05:18 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 09DB616A4CE for ; Thu, 17 Jun 2004 13:05:18 +0000 (GMT) Received: from smtp.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 1BE2843D2F for ; Thu, 17 Jun 2004 13:05:17 +0000 (GMT) (envelope-from neuhauser@chello.cz) Received: (qmail 59789 invoked by uid 0); 17 Jun 2004 13:04:57 -0000 Received: from r3al16.mistral.cz (HELO isis.wad.cz) (213.220.229.16) by smtp.dkm.cz with SMTP; 17 Jun 2004 13:04:57 -0000 Received: by isis.wad.cz (Postfix, from userid 1001) id 43F9D2FDA01; Thu, 17 Jun 2004 15:04:57 +0200 (CEST) Date: Thu, 17 Jun 2004 15:04:57 +0200 From: Roman Neuhauser To: Dan Langille Message-ID: <20040617130457.GD2664@isis.wad.cz> Mail-Followup-To: Dan Langille , ports@FreeBSD.org References: <40D1528D.31889.7ABCC38C@localhost> <40D159DD.23350.7AD95699@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D159DD.23350.7AD95699@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 13:05:18 -0000 # 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