From owner-freebsd-ports@freebsd.org Thu Sep 3 17:11:06 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51E489CA62D for ; Thu, 3 Sep 2015 17:11:06 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3E9138A; Thu, 3 Sep 2015 17:11:06 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 3875F1C1B; Thu, 3 Sep 2015 17:11:06 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id ED47A12AB1; Thu, 3 Sep 2015 17:11:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id tUf6-1B9qq37; Thu, 3 Sep 2015 17:11:03 +0000 (UTC) Subject: Re: portmaster: "No valid installed port, or port directory given"??!? DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 6813712AAB To: David Wolfskill , freebsd-ports@freebsd.org References: <20150901115940.GC17650@albert.catwhisker.org> <20150903114036.GA17650@albert.catwhisker.org> From: Bryan Drewery Organization: FreeBSD Message-ID: <55E87F24.8060505@FreeBSD.org> Date: Thu, 3 Sep 2015 10:11:00 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150903114036.GA17650@albert.catwhisker.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2015 17:11:06 -0000 On 9/3/15 4:40 AM, David Wolfskill wrote: > On Tue, Sep 01, 2015 at 04:59:40AM -0700, David Wolfskill wrote: >> ... >> Further, I encountered a similar symptom (as described above re: the >> portmaster whine) on my build machine, running: >> ... >> >> And in this case, I was thinking of doing the Perl upgrade, so: >> >> Script started on Tue Sep 1 04:10:12 2015 >> command: portmaster -o lang/perl5.22 perl5.18-5.18.4_15 >> 0;portmaster: lang/perl5.22^G >> ===>>> Port directory: /usr/ports/lang/perl5.22 >> >> ===>>> Gathering distinfo list for installed ports >> >> ===>>> Launching 'make checksum' for lang/perl5.22 in background >> [?1049h >> >> [script renddition of a Dialog elided; I chose the default options -- dhw] >> >> ===>>> Gathering dependency list for lang/perl5.22 from ports >> ===>>> Launching child to install /net/howland/c/ports/ports-mgmt/pkg >> >> ===>>> lang/perl5.22 >> /net/howland/c/ports/ports-mgmt/pkg (1/1) >> 0;portmaster: lang/perl5.22 >> /net/howland/c/ports/ports-mgmt/pkg (1/1)^G >> ===>>> No valid installed port, or port directory given >> ===>>> Try portmaster --help >> .... > > I found a circumvention: > > freebeast(10.2-S)[6] rcsdiff -u /etc/make.conf > =================================================================== > RCS file: /etc/RCS/make.conf,v > retrieving revision 1.4 > diff -u -r1.4 /etc/make.conf > --- /etc/make.conf 2015/09/01 11:28:40 1.4 > +++ /etc/make.conf 2015/09/03 11:34:16 > @@ -1,2 +1,3 @@ > SENDMAIL_MC=/etc/mail/client.mc > SENDMAIL_ADDITIONAL_MC= /etc/mail/bastion.mc > /etc/mail/catwhisker.org.mc > +PORTSDIR=/usr/ports > freebeast(10.2-S)[7] > > Yeah: appending an explicit "PORTSDIR=/usr/ports" makes thinigs work > again. I'm fixing this in portmaster and releasing 3.17.8 shortly. It is making a bad assumption rather than trusting the value of PORTSDIR from /usr/share/mk/bsd.port.mk. -- Regards, Bryan Drewery