[CMake] Progress report strange behaviour with mixed file permissions

Mateusz Loskot mateusz at loskot.net
Fri Jan 13 06:41:50 EST 2012


On 13 January 2012 11:30, David Cole <david.cole at kitware.com> wrote:
> On Fri, Jan 13, 2012 at 5:48 AM, Mateusz Loskot <mateusz at loskot.net> wrote:
>>
>> A friend of mine has asked me to confirm if there may be a bug in CMake
>> related to file permissions on Unix. Here is the story:
>>
>> There are some files under CMakeFiles/ directory owned by "root"
>> and not overridable by "strk" (non-root user).
>>
>> Having such setup results in a pretty funny behaviour:
>> you do can run "make" but the progress widget always
>> reports the same percentage. I was at 83% from start
>> to finish. Pretty puzzling :)
>>
>> The above was with cmake version 2.8.1.
>>
>> Could any one point where is the problem?
>> CMake misuse or bug indeed?
>
>
> Sounds to me like somebody ran cmake as root, and then ran it again as
> non-root... Choose non-root and be consistent. There's absolutely no
> reason to run cmake as root, ever.
>
> I don't think there's a CMake bug here, but if you can come up with
> steps to reproduce the problem without running CMake as root, then
> we'll investigate further.

David & Daniel, thanks!

I'll confirm with my friend and follow-up if needed.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list