Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2015 04:59:40 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        freebsd-ports@freebsd.org
Subject:   portmaster: "No valid installed port, or port directory given"??!?
Message-ID:  <20150901115940.GC17650@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--69pVuxX8awAiJ7fD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

During the "update all installed ports" phase of today's daily updates
on my laptop, I received a bit of an unpleasant surprise.

As I build stable/10, it is my habit to also run "portmaster -aF" --
pre-fetching distribution files (to the extent that I can).  This
occurred without incident.

My ports working directory resides at /common/ports; I have a symlink
named /usr/ports that points to it (from each of the 4 file systems that
can be mounted as /usr -- one for each slice).  That working directory
was updated to r395749 overnight:

g1-252(10.2-S)[4] svn info /usr/ports
Path: /usr/ports
Working Copy Root Path: /usr/ports
URL: file:///svn/freebsd/ports/head
Relative URL: ^/head
Repository Root: file:///svn/freebsd/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 395750
Node Kind: directory
Schedule: normal
Last Changed Author: koobs
Last Changed Rev: 395749
Last Changed Date: 2015-09-01 00:44:43 -0700 (Tue, 01 Sep 2015)

g1-252(10.2-S)[5]=20

The update of stable/10 appears to have been successful; I started (this
morning) running:

FreeBSD g1-252.catwhisker.org 10.2-STABLE FreeBSD 10.2-STABLE #133  r287298=
M/287303:1002500: Sun Aug 30 04:21:44 PDT 2015     root@g1-252.catwhisker.o=
rg:/common/S1/obj/usr/src/sys/CANARY  amd64

and am now running:

FreeBSD g1-252.catwhisker.org 10.2-STABLE FreeBSD 10.2-STABLE #134  r287339=
M/287355:1002500: Tue Sep  1 04:05:52 PDT 2015     root@g1-252.catwhisker.o=
rg:/common/S1/obj/usr/src/sys/CANARY  amd64

(There were no updates to stable/10 from r287298 to the point that I
synchronized my private SVN repo yesterday morning.)

So, for updating the ports, I ran "portmaster -ad"; here is what happened:

Script started on Tue Sep  1 04:31:20 2015
command: portmaster -ad
=3D=3D=3D>>> Gathering distinfo list for installed ports

0;portmaster: All^G=3D=3D=3D>>> Starting check of installed ports for avail=
able updates
=3D=3D=3D>>> Launching child to update png-1.6.17_1 to png-1.6.18

=3D=3D=3D>>> All >> png-1.6.17_1 (1/1)
0;portmaster: All >> png-1.6.17_1 (1/1)^G
=3D=3D=3D>>> Currently installed version: png-1.6.17_1
=3D=3D=3D>>> Port directory: /usr/ports/graphics/png

=3D=3D=3D>>> Launching 'make checksum' for graphics/png in background
=3D=3D=3D>>> Gathering dependency list for graphics/png from ports
=3D=3D=3D>>> Launching child to install /common/ports/ports-mgmt/pkg

=3D=3D=3D>>> All >> png-1.6.17_1 >> /common/ports/ports-mgmt/pkg (2/2)
0;portmaster: All >> png-1.6.17_1 >> /common/ports/ports-mgmt/pkg (2/2)^G
=3D=3D=3D>>> No valid installed port, or port directory given
=3D=3D=3D>>> Try portmaster --help

=3D=3D=3D>>> Update for /common/ports/ports-mgmt/pkg failed
=3D=3D=3D>>> Aborting update

=3D=3D=3D>>> Update for png-1.6.17_1 failed
=3D=3D=3D>>> Aborting update

Script done on Tue Sep  1 04:31:24 2015


Prior to the overnight update, my ports working directory was at r395661,
and the above-described procedure worked -- as it has for years.

/etc/make.conf is:
g1-252(10.2-S)[7] cat /etc/make.conf                                       =
     NET_SNMP_SYS_CONTACT=3D"david@catwhisker.org"
NET_SNMP_SYS_LOCATION=3D"variable"
NET_SNMP_LOGFILE=3D/var/log/snmpd.log
NET_SNMP_PERSISTENTDIR=3D/var/net-snmp
WITH_BSD_JDK=3DTRUE
# For mplayer
WITHOUT_RUNTIME_CPUDETECTION=3D   YES
WITH_OPTIMIZED_CFLAGS=3D  YES
WITHOUT_CJK=3D    YES
NO_SUID_XSERVER=3DYES
# For Linux compat
OVERRIDE_LINUX_BASE_PORT=3Dc6
OVERRIDE_LINUX_NONBASE_PORTS=3Dc6
INSTALL_AS_NCFTP=3Dyes
g1-252(10.2-S)[8]=20


Yesterday afternoon, I also performed a bit of out-of-the-ordinary
maintenance: I switched from lang/perl5.18 to perl5.22.  As far as
the ports are concerned, that was uneventful.  (I had some issues
with suspend/resume, as the process hadn't finished at a time when I
needed to put the laptop in a backpack while I was cycling.  I was
able to recover despite the reboot that was required before the Perl
upgrade was completely done.)

Further, I encountered a similar symptom (as described above re: the
portmaster whine) on my build machine, running:

FreeBSD freebeast.catwhisker.org 10.2-STABLE FreeBSD 10.2-STABLE #1788  r28=
7339M/287355:1002500: Tue Sep  1 04:03:21 PDT 2015     root@freebeast.catwh=
isker.org:/common/S1/obj/usr/src/sys/GENERIC  amd64

with a ports working directory:
freebeast(10.2-S)[9] svn info /usr/ports
Path: /usr/ports
Working Copy Root Path: /usr/ports
URL: file:///svn/freebsd/ports/head
Relative URL: ^/head
Repository Root: file:///svn/freebsd/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 395750
Node Kind: directory
Schedule: normal
Last Changed Author: koobs
Last Changed Rev: 395749
Last Changed Date: 2015-09-01 00:44:43 -0700 (Tue, 01 Sep 2015)

freebeast(10.2-S)[10]=20

which actually resides on a ReadyNAS:
freebeast(10.2-S)[10] ls -lT !$
ls -lT /usr/ports
lrwxr-xr-x  1 root  wheel  20 Jul  3 20:25:14 2015 /usr/ports -> /net/howla=
nd/c/ports

(as it has for a couple of years now).

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
=3D=3D=3D>>> Port directory: /usr/ports/lang/perl5.22

=3D=3D=3D>>> Gathering distinfo list for installed ports

=3D=3D=3D>>> Launching 'make checksum' for lang/perl5.22 in background
[?1049h

[script renddition of a Dialog elided; I chose the default options -- dhw]

=3D=3D=3D>>> Gathering dependency list for lang/perl5.22 from ports
=3D=3D=3D>>> Launching child to install /net/howland/c/ports/ports-mgmt/pkg

=3D=3D=3D>>> 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
=3D=3D=3D>>> No valid installed port, or port directory given
=3D=3D=3D>>> Try portmaster --help

=3D=3D=3D>>> Update for /net/howland/c/ports/ports-mgmt/pkg failed
=3D=3D=3D>>> Aborting update

Script done on Tue Sep  1 04:10:14 2015

In this case, /etc/make.conf is:
freebeast(10.2-S)[11] cat /etc/make.conf
SENDMAIL_MC=3D/etc/mail/client.mc
SENDMAIL_ADDITIONAL_MC=3D /etc/mail/bastion.mc /etc/mail/catwhisker.org.mc
freebeast(10.2-S)[12]=20


I'm pretty well thrown for a loop on this one.  I'll go wander off
and build head, pending clues.

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Those who would murder in the name of God or prophet are blasphemous coward=
s.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--69pVuxX8awAiJ7fD
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJV5ZMsXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4
QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7wQcP/3tGh7tZYs52rkxf9kimH1+x
LE+3OHGnOLEyx+vBJwsaRbaz8ciyFZ0yYcgsiRXeYYteXIi4mmGg4SUfEHnrCy08
wTgxgMVBmKxirue9ojIM/BmAgtaSPKmFcw7GT7XRF2I9z9DrVwfIvYWROVSu+f6i
QZgS5M1Q1Nh+yU0Cn35ukOrWOfdVvbcTSLHkxmIIfF8I/TwacZtI1RTLv8yGqxla
+IX+WXfqMA+ljPxgbYdPOpeoFp4hFSWsNT4FnXAgR3gM2c3Zs3vQElkkGVlOtDUH
XTZ1yFMdTYtxA+3dlhP1BekOi75wesmisZZun4xwc8YsHwWEcRFlN+Pn2qyl5WV8
McttRfBsLTwZZC1CECCyBAoV9XvLK37UHKHFwM8ZKcTQoa+wP1k2YhVRs1Blk3AF
eqHnjlmA5ipCZbaMz1Xu1EpfiPnzmtMBbEQar/XYDqUykD9a7hp8G/A13vSRlR0F
xxiB2Sj3xcnMr92NOajboVGGi6mFYUrFTjKz/spDlToCUeMnd4KQCqDUmas/JhOc
L5Zz87+zLPa02iDIJr0sEH306VJIedfUzEnAV2eg2TV/eqKtJGm6MlgSUSCNzb3L
M0BkVP3gyLqo2vGjCdcKHSYHrO57hyOfhQjLmg//mEJVBNKwNTyQ+B22B1vdnhpm
Ca9WfTJCEn1egdbI0fop
=mIjZ
-----END PGP SIGNATURE-----

--69pVuxX8awAiJ7fD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150901115940.GC17650>