Re: Many "permission denied" errors.

2024-04-22 Thread Ryan Schmidt
On Apr 22, 2024, at 10:14, Carl Witthoft wrote:
> 
> sudo port -f activate xorg-xorgproto
> error message is 
> Warning: Failed to execute portfile from registry for xorg-xorgproto @2024.1_0
> --->  Activating xorg-xorgproto @2024.1_0
> Error: port activate failed: mkdtemp failed: Permission denied

You should almost never force port activation so let's drop the -f flag. 

Can you try again with debug mode -- the -d flag? Maybe that will tell us more. 

I recall two or three users reporting difficulties years ago that ended up 
being caused by incorrect permissions on /tmp or /private/tmp so you might 
check those. 

Many "permission denied" errors.

2024-04-22 Thread Carl Witthoft
Hi,
I haven't used MacPorts for a few years, and am trying to get it running
under MacOS Ventura.  I do have the latest XCode, etc. .   I installed
from MacPorts-2.9.3-13-Ventura.pkg .
The problem is that, running from the command line,  I have run into at
least 10 different error messages all of which complain about permission
denied when trying to write to one directory or another.   I've taken the
approach of changing /opt/local/[lots of directories]  permissions to "read
and write" for everyone,  but am unable to track down all necessary
locations.
Since I don't think I should have had to change any permissions in the
first place -- and yes I'm using sudo for nearly all 'port' commands --
what is going wrong?

example:
sudo port -f activate xorg-xorgproto
error message is

Warning: Failed to execute portfile from registry for xorg-xorgproto
@2024.1_0

--->  Activating xorg-xorgproto @2024.1_0

Error: port activate failed: mkdtemp failed: Permission denied



This means I cannot complete 'port upgrade outdated'  , for example.


thanks

Carl