problem with portmaster

portmaster -af stopped after about 5 hours of work, I continued with the suggestion of the list of remaining ports to be rebuilt, while copying and pasting the port list, something went wrong, the terminal was hanging for a long time (all this with kernel security as -1), I rebooted, couldn't get to login prompt nor to the GUI (now managed to get back to my computer after a pkg-update and pkg-upgrade from ctrl+alt+f4 root, which seemed to have fixed the login errors after init 6), but portmaster -U, still shows errors as below:

I noticed this:

The issue was that the portmaster was appending /root to /usr/ports/ if the command was issued from the default root prompt and appending /home/username to /usr/ports if the portmaster -U (or the same command with any other flag) was issued from the user's default prompt.

# portmaster -U
Code:
===>>> No /usr/ports//root exists, and no information
        ===>>> about /root can be found in /usr/ports/MOVED

make: chdir /usr/ports/[B]/root[/B]: No such file or directory
===>>> No valid installed port, or port directory given
===>>> Try portmaster --help

[username@hostname ~]$ portmaster -U
Code:
===>>> No /usr/ports/home/username exists, and no information
        ===>>> about home/username can be found in /usr/ports/MOVED

make: chdir /usr/ports/home/username: No such file or directory
===>>> No valid installed port, or port directory given
===>>> Try portmaster --help

[username@hostname ~]$ cd /usr/ports && portmaster -U
Code:
===>>> No /usr/ports/usr/ports exists, and no information
        ===>>> about usr/ports can be found in /usr/ports/MOVED

make: chdir /usr/ports/usr/ports: No such file or directory
===>>> No valid installed port, or port directory given
===>>> Try portmaster --help

In effect was portmaster looking for /usr/ports under /usr/ports/ ? Portmaster was working fine until this moment.
 
Old thread I know, but I just hit this issue too - I recently upgraded to 14.0 (on the way to getting an ancient system up-to-date)

No solution so far for me (did 'make index', de/re-installed portmaster). Did you ever find a fix?

I'll post if I find something, though.
 
Oh, I think this is PEBKAC - I failed to give a port name as a commandline argument. Arguable, portmaster should behave better in this case. But basically instead of running
Code:
portmaster -fR
I needed to run
Code:
portmaster -fR foo/bar
(or in my case, specifically, using the `-a` flag, instead).

And in *your* case, as you've probably already figured out, you need to use
Code:
portmaster -U foo/bar
— that is, give it the name of the port to work on ( :
 
Back
Top