mixing root-owned with user-owned files in the same place with the install_manifest.txt file
On linux systems. Perhaps this is not considered an issue, however I wish to report it anyway, since it might produce unexpected problems. Often the cmake build directory is the same as the source directory and will contain compiled files owned by the user. However at install time a new file is created named install_manifest.txt in the build directory and owned by root. Under some circumstances (e.g. when the user home is NFS mounted with "root-squashing", this is not allowed and will cause termination of the install process with an error. Or, as a different scenario, some authomatic tool that deals with user files (e.g. a backup script) could have unexpected behaviour with files that it cannot remove.
Is there a specific reason why the install_manifest.txt is not created with user ownership, e.g. inheriting the ownership from the parent directory? Being in the install stage, this should be possible, or at least as possible as creating a root-owned file inside a user-owned directory.
[sorry, this is formatted badly, but I do not know how to disable markup]
$ git clone firstname.lastname@example.org:kig $ cd kig $ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=debugfull -DPLUGIN_INSTALL_DIR:PATH=/usr/lib/qt5/plugins $ make $ su Password: *** # make install # exit $ ls -l | grep root -rw-r--r-- 1 root root 18579 14 feb 23.51 install_manifest.txt