[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
Thu Sep 26 16:40:17 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 breun):

 Replying to [comment:5 lima-bravo]:
 > 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.

 Those directories indeed don't have that `com.apple.provenance` attribute
 on my machine.

 Can you confirm that the `com.apple.provenance` attribute is actually
 removed and that it is added again, or could it be that it's just not
 getting removed?

 While looking for information about this I find posts from people that say
 you need to make sure that your terminal application (`Terminal.app`,
 `iTerm2.app`, etc.) has Full Disk Access. You can configure this via
 `System Preferences > Security & Privacy > Privacy > Full Disk Access`.

-- 
Ticket URL: <https://trac.macports.org/ticket/70890#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list