Opened 10 months ago

Last modified 10 months ago

#61800 accepted defect

graphviz-gui @2.40.1_2: error: could not write entitlements file

Reported by: jptrainor (Jim Trainor) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: graphviz-gui, graphviz-devel-gui

Description (last modified by jptrainor (Jim Trainor))

"sudo port install graphviz-gui" fails on MacOS 11.0.1 with Xcode 12.2.

There appears to be a security problem that prevents successful install of graphviz-gui on MacOS 11.

Log fragment showing the error:

:info:build     builtin-productPackagingUtility -entitlements -format xml -o /Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz-gui/work/graphviz-2.40.1/macosx/build/
:info:build error: could not write entitlements file: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “” in the folder “”." UserInfo={NSURL=file:///Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz-gui/work/graphviz-2.40.1/macosx/build/, NSUserStringVariant=Folder, NSUnderlyingError=0x7fcbc141aaa0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
:info:build ** BUILD FAILED **
:info:build The following build commands failed:
:info:build 	ProcessProductPackaging "" build/
:info:build (1 failure)

The following work around works:

# fresh install fails
$ sudo port install graphviz-gui

# manually execute the failed command (cut from the log), this succeeds
$ cd "/Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz-gui/work/graphviz-2.40.1/macosx" && /usr/bin/xcodebuild -UseNewBuildSystem=NO  -alltargets -configuration Release build INSTALL_PATH=/Applications/MacPorts  OBJROOT="/Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz-gui/work/graphviz-2.40.1/macosx/build/" SYMROOT="/Volumes/ExtStorage/local/var/macports/build/_Volumes_ExtStorage_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_graphviz/graphviz-gui/work/graphviz-2.40.1/macosx/build/" MACOSX_DEPLOYMENT_TARGET=11.0 ARCHS=x86_64 SDKROOT="/Applications/" CLANG_CXX_LIBRARY="libc++" PREFIX=/opt/local

# change out of the directory that the above command leaves the shell in
$ cd

# re-execute the install, this succeeds
$ sudo port install graphviz-gui

Attachments (1)

main.log (438.9 KB) - added by jptrainor (Jim Trainor) 10 months ago.

Download all attachments as: .zip

Change History (3)

Changed 10 months ago by jptrainor (Jim Trainor)

Attachment: main.log added

comment:1 Changed 10 months ago by jptrainor (Jim Trainor)

Description: modified (diff)

comment:2 Changed 10 months ago by ryandesign (Ryan Schmidt)

Keywords: bigsur added
Owner: set to ryandesign
Port: graphviz-gui graphviz-devel-gui added
Status: newaccepted
Summary: graphviz-gui @2.40.1_2 ProcessProductPackaging failsgraphviz-gui @2.40.1_2: error: could not write entitlements file

We saw this build error on our Big Sur build machines too but I don't know what to do about it.

Note: See TracTickets for help on using tickets.