darling
darling copied to clipboard
Files created with root ownership in user folder
This is the error when trying to remove the darling folder:
$ rm -rf darling/
rm: cannot remove 'darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a': Permission denied
rm: cannot remove 'darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib': Permission denied
This is why, two symlinks are created as root in my user folder, which should not happen:
$ ls -lsa darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/*
0 lrwxrwxrwx 1 root root 15 Sep 14 08:18 darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a -> ../../../Python
0 lrwxrwxrwx 1 root root 15 Sep 14 08:18 darling/build/libexec/darling/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib -> ../../../Python
just remove it with sudo rm -rf
I already know that that's not the point.
This occurs because of a minor build issue where recently created and unmodified files are (incorrectly) detected as being out-of-date and rebuilt during the install step. Since the install step is run as root, the rebuilt files are owned by root. The exact cause of why CMake incorrectly detects those files as out-of-date is unknown (since it hasn't been investigated yet).
I already know that that's not the point.
oh, sorry