portmaster: "No valid installed port, or port directory given"??!?

Bryan Drewery bdrewery at FreeBSD.org
Thu Sep 3 17:11:06 UTC 2015


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


More information about the freebsd-ports mailing list