port & root

Rainer Müller raimue at macports.org
Thu Apr 5 17:10:38 UTC 2018


On 2018-04-05 18:26, Bjarne D Mathiesen wrote:
> When running './diffPorts php72-' as root I get this :

Just to be specific, did you open a root shell first or did you run it
with sudo?

> Error: /macports/bin/port: Failed to initialize MacPorts, error deleting
> "/macports/var/macports/home/Library/Preferences/com.apple.dt.Xcode.plist":
> no such file or directory
> < error deleting
> "/macports/var/macports/home/Library/Preferences/com.apple.dt.Xcode.plist":
> no such file or directory
> <     while executing
> < "file delete -force "${target_dir}/com.apple.dt.Xcode.plist""
> <     (procedure "macports::copy_xcode_plist" line 5)
> <     invoked from within
> < "macports::copy_xcode_plist $env(HOME)"
> <     (procedure "mportinit" line 540)
> <     invoked from within
> < "mportinit ui_options global_options global_variations"

This looks like the error we have also seen on Travis, but were never
able to reproduce:

https://lists.macports.org/pipermail/macports-dev/2017-June/035945.html

Rainer


More information about the macports-dev mailing list