Opened 3 years ago

Last modified 3 years ago

#61800 closed defect

graphviz-gui @2.40.1_2 ProcessProductPackaging fails — at Initial Version

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

Description

"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 12.

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

Change History (1)

Changed 3 years ago by jptrainor (Jim Trainor)

Attachment: main.log added
Note: See TracTickets for help on using tickets.