MantisBT - CMake
View Issue Details
0010595CMakeCMakepublic2010-04-22 11:282012-01-02 15:56
Patrick Bégou 
David Cole 
normalblockalways
closedfixed 
CMake-2-8 
CMake 2.8.6CMake 2.8.6 
0010595: Cmake fails when PATH begin with /tmp_mnt
If the Path to the application begin with /tmp_mnt/.... cmake remove this first token.

In cmake-2.8.1/Source/kwsys/SystemTools.cxx line 4646.

4645 // Work-around an SGI problem by always adding this mapping:
4646 SystemTools::AddTranslationPath("/tmp_mnt/", "/");

I'm not on SGI but my home directory is nfs automounted on: /tmp_mnt/hasources,
lack of chance. And ALL the computers of our research team are using this Path
to mount the home patition from a HA nfs server :-(

Removing this line, cmake works fine.

This work-around code for a SGI bug is a little bit crazy but how possible is it
to change it for a better fix to make cmake safer ? This cmake bug can occur for
everybody using "/tmp_mnt" as a mount point....
No tags attached.
Issue History
2010-04-22 11:28Patrick BégouNew Issue
2010-04-23 12:12Bill HoffmanStatusnew => assigned
2010-04-23 12:12Bill HoffmanAssigned To => Brad King
2010-04-23 12:22Brad KingNote Added: 0020375
2010-04-23 12:22Brad KingAssigned ToBrad King => Bill Hoffman
2010-09-21 12:20David ColeNote Added: 0022299
2011-01-21 19:14David ColeAssigned ToBill Hoffman => David Cole
2011-08-17 12:19David ColeTarget Version => CMake 2.8.6
2011-08-20 12:35David ColeNote Added: 0027255
2011-08-20 12:35David ColeStatusassigned => resolved
2011-08-20 12:35David ColeFixed in Version => CMake 2.8.6
2011-08-20 12:35David ColeResolutionopen => fixed
2012-01-02 15:56David ColeNote Added: 0028132
2012-01-02 15:56David ColeStatusresolved => closed

Notes
(0020375)
Brad King   
2010-04-23 12:22   
Wow, this one's been there since 2001-12-04:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=11084af4 [^]

I have no idea what the original problem was and see no reason not to remove it.
(0022299)
David Cole   
2010-09-21 12:20   
This is what I like to call "crazy code" -- it should just be removed unless somebody has a very good reason to keep it.
(0027255)
David Cole   
2011-08-20 12:35   
Fix pushed to 'master' and 'next' (KWSys commit):

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7dcbb663157858fe4fc73adce4ad23ffd370bb2e [^]
(0028132)
David Cole   
2012-01-02 15:56   
Closing resolved issues that have not been updated in more than 4 months.