[MacPorts] #70890: openjdk21 @21.0.3_1+release+server : build fails on Sonoma 14.7 with "xattr: [Errno 13] Permission" denied error
MacPorts
noreply at macports.org
Wed Sep 25 18:41:07 UTC 2024
#70890: openjdk21 @21.0.3_1+release+server : build fails on Sonoma 14.7 with
"xattr: [Errno 13] Permission" denied error
-------------------------+----------------------
Reporter: lima-bravo | Owner: breun
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords:
Port: openjdk21 |
-------------------------+----------------------
Comment (by lima-bravo):
I can confirm that I can indeed reproduce the issue with '''sudo port
build openjdk21'''. Comparing the offending file with my laptop, I see the
following:
{{{
bash-5.2# ls -ltr
total 40
-rw-r--r--@ 1 macports wheel 3997 Sep 25 20:20 jmxremote.access
-rw-r--r--@ 1 macports wheel 14988 Sep 25 20:20 management.properties
bash-5.2# xattr jmxremote.access
com.apple.provenance
}}}
The only difference I can see between the two systems is that the failing
system has com.apple.provenance set as xattr, while the other doesn't.
Hunting down the directory tree, I discovered that in
/opt/local/var/macports directories where set with xattr:
{{{
bash-5.2# ls -ltr@
total 24
drwxr-xr-x 3 macports macports 96 Apr 17 14:05 home
drwxrwxrwt 3 root wheel 96 Apr 18 19:34 sip-workaround
drwxr-xr-x 9 root wheel 288 Apr 18 19:34 registry
drwxr-xr-x 3 root wheel 96 Jun 2 20:50 reclaim
-rw-r--r-- 1 root wheel 11 Sep 21 18:08 last_reclaim
-rw-r--r-- 1 root wheel 5184 Sep 21 18:11 pingtimes
drwxr-xr-x@ 4 root wheel 128 Sep 23 14:38 sources
com.apple.provenance 11
drwxr-xr-x 6 root wheel 192 Sep 23 14:48 cache
drwxr-xr-x@ 3 macports wheel 96 Sep 25 17:09 incoming
com.apple.provenance 11
drwxr-xr-x 354 root wheel 11328 Sep 25 19:57 software
drwxr-xr-x 21 root wheel 672 Sep 25 19:59 distfiles
drwxr-xr-x 4 root wheel 128 Sep 25 20:19 build
drwxr-xr-x 10 root wheel 320 Sep 25 20:19 logs\
}}}
I tried to remove the xattr with
{{{
bash-5.2# xattr -d -r com.apple.provenance sources/
bash-5.2# xattr -d -r com.apple.provenance incoming/
}}}
only to discover that they were restored again quickly.
So something is triggering com.apple.provenance to be set again, which
leads to the compilation error.
--
Ticket URL: <https://trac.macports.org/ticket/70890#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list