Solved I cannot update my installed ports via portmaster

Hello.

I first setup the server several months ago. I am trying to update all ports installed via portmaster -a (also tried -af) and I'm getting an error (added at the bottom). I also tried updating individual ports and the same results.

my setup:

1. because of space contraints and faster access (I am using a USB stick as my primary storage), I have created symlinks to /usr/obj, /usr/ports, /usr/src. These are pointing to folders within my ZFS raid.

2. I have initially installed ports-mgmt/portmaster via make config-recursive install clean

3. I have installed succeeding ports (e.g. sysutils/cmdwatch/editors/nano/etc) via ports-mgmt/portsmaster. example: portmaster -DGv --no-confirm sysutils/cmdwatch

Any ideas on how to fix? thanks a lot :)

Code:
=> portmaster -a

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

===>>> Starting check of installed ports for available updates

===>>> Launching child to update portmaster-3.17.7 to portmaster-3.17.8_1

===>>> All >> portmaster-3.17.7 (1/1)

===>>> Currently installed version: portmaster-3.17.7

===>>> Port directory: /usr/ports/ports-mgmt/portmaster

===>>> Launching 'make checksum' for ports-mgmt/portmaster in background

===>>> Gathering dependency list for ports-mgmt/portmaster from ports

===>>> Launching child to install /storage/my-stuff/apps/freebsd/ports/ports-mgmt/pkg

===>>> All >> portmaster-3.17.7 >> /storage/my-stuff/apps/freebsd/ports/ports-mgmt/pkg (2/2)

===>>> No valid installed port, or port directory given

===>>> Try portmaster --help

===>>> Update for /storage/my-stuff/apps/freebsd/ports/ports-mgmt/pkg failed

===>>> Aborting update

===>>> Update for portmaster-3.17.7 failed

===>>> Aborting update
 
I agree with wblock@, try to update the ports from where the original folders are (not links location). If that does not work, then it could be a bug in ports-mgmt/portmaster (then try ports-mgmt/portupgrade) or else, check your links.
By the way, I don't expect everybody to have TBs of storage in their system, but how you don't have an adequate amount of space to run FreeBSD, is a puzzler.
 
As the directories are on ZFS why don't you simply set their mountpoints correctly instead of using links?

For example:
zfs set mountpoint=/usr/ports zroot/DATA/ports
 
Back
Top