Opened 4 months ago

Last modified 4 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/graphviz.build/Release/application.build/Graphviz.app.xcent
:info:build error: could not write entitlements file: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “Graphviz.app.xcent” in the folder “application.build”." 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/graphviz.build/Release/application.build/Graphviz.app.xcent, 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/graphviz.build/Release/application.build/Graphviz.app.xcent
: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/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 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) 4 months ago.

Download all attachments as: .zip

Change History (3)

Changed 4 months ago by jptrainor (Jim Trainor)

Attachment: main.log added

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

Description: modified (diff)

comment:2 Changed 4 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.

https://build.macports.org/builders/ports-11_arm64-builder/builds/4953/steps/install-port/logs/stdio

Note: See TracTickets for help on using tickets.