I'm having the same issue locally with my local port source. Is this
intended given the changes to permissions handling? It seems to make
managing an additional, local source quite difficult.
[sources.conf]
file:///Users/aaron.madlon.kay/Code/MacPorts
[log from `sudo port bump gradle`]
DEBUG: Copying
/Users/aaron.madlon.kay/Library/Preferences/com.apple.dt.Xcode.plist
to /opt/local/var/macports/home/Library/Preferences
DEBUG: Opening port in directory:
/Users/aaron.madlon.kay/Code/MacPorts/devel/gradle
DEBUG: OS darwin/24.6.0 (macOS 15.7.1) arch arm
DEBUG: Sourcing PortGroup java 1.0 from
/Users/aaron.madlon.kay/Code/MacPorts/macports-ports/_resources/port1.0/group/java-1.0.tcl
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback
portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback
portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Running callback java::java_set_env
DEBUG: java-portgroup: Trying to find JVM version: 17+
DEBUG: java-portgroup: Detected JVMs: 8
/opt/local/Library/Java/JavaVirtualMachines/openjdk8-zulu/Contents/Home
21
/opt/local/Library/Java/JavaVirtualMachines/jdk-21-azul-zulu.jdk/Contents/Home
17 /opt/local/Library/Java/JavaVirtualMachines/openjdk17-zulu/Contents/Home
11 /opt/local/Library/Java/JavaVirtualMachines/openjdk11-zulu/Contents/Home
DEBUG: java-portgroup: Discovered matching JAVA_HOME:
/opt/local/Library/Java/JavaVirtualMachines/jdk-21-azul-zulu.jdk/Contents/Home
DEBUG: Finished running callback java::java_set_env
DEBUG: dropping privileges: euid changed to 504, egid changed to 501.
DEBUG: Could not open file:
/Users/aaron.madlon.kay/Code/MacPorts/devel/gradle/Portfile
while executing
"sha256 file ${portpath}/Portfile"
(procedure "open_statefile" line 24)
invoked from within
"open_statefile"
Error: Failed to open statefile for gradle: Could not open file:
/Users/aaron.madlon.kay/Code/MacPorts/devel/gradle/Portfile
Error: Follow https://guide.macports.org/#project.tickets if you
believe there is a bug.
Error: Processing of port gradle failed
[ls of portfile]
-rw-r--r-- 1 aaron.madlon.kay staff 3465 Oct 30 10:12
/Users/aaron.madlon.kay/Code/MacPorts/devel/gradle/Portfile
On Thu, Oct 30, 2025 at 7:17 AM Ryan Carsten Schmidt
<[email protected]> wrote:
>
> On Oct 29, 2025, at 17:27, Joshua Root wrote:
>
>
> I expect it's a real permissions problem which was previously masked by
> <https://trac.macports.org/ticket/73160>.
>
>
> Now filed as https://trac.macports.org/ticket/73178
>