Opened 3 years ago

Closed 2 years ago

#61800 closed defect (fixed)

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

Reported by: jptrainor (Jim Trainor) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc: mascguy (Christopher Nielsen)
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) 3 years ago.

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by jptrainor (Jim Trainor)

Attachment: main.log added

comment:1 Changed 3 years ago by jptrainor (Jim Trainor)

Description: modified (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten 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

comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:4 Changed 2 years ago by mascguy (Christopher Nielsen)

It looks like this might be fixed, with the pending 2.48.0 update (currently available via graphviz-gui-devel):

https://ports.macports.org/port/graphviz-gui-devel/details/

comment:5 Changed 2 years ago by mascguy (Christopher Nielsen)

Can you install graphviz-gui-devel locally (after first running sudo port selfupdate), and see if the failure still occurs?

comment:6 Changed 2 years ago by jjstickel (Jonathan Stickel)

Resolution: fixed
Status: acceptedclosed

In 564fd38ea3598b80f10c97146e28809313c22d70/macports-ports (master):

graphviz: update to 2.48.0

Closes: #63169
Closes: #62165
Closes: #61800
Closes: #59026
Closes: #58457

Note: See TracTickets for help on using tickets.