MantisBT - CMake
View Issue Details
0013335CMakeCMakeSetuppublic2012-06-21 09:542013-01-09 10:56
MartinK 
Brad King 
normalmajoralways
closedduplicate 
x86 and SPARCSolaris10
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013335: Build installs into wrong directory due to bug in bootstrap script
CMake build on Solaris with a given prefix fails since the substitution expression is incompatible with Solaris /bin/sh:

bootstrap:547
--prefix=*) cmake_prefix_dir=`cmake_fix_slashes "${1#*=}"` ;;

Result on Solaris 10 (x86 and SPARC) is "bad substitution", resulting in empty cmake_prefix_dir, thus trying to install into the root directory.

Workaround is to change the shell to /bin/bash.
- Run configure with some value for --prefix (or --datadir etc) on Solaris.

- Run following test script with at least one parameter on Solaris:
#!/bin/sh
echo "${1#*=}"
No tags attached.
duplicate of 0013199closed Brad King bootstrap: bad substitution 
Issue History
2012-06-21 09:54MartinKNew Issue
2012-06-21 09:55Brad KingRelationship addedduplicate of 0013199
2012-06-21 09:55Brad KingStatusnew => resolved
2012-06-21 09:55Brad KingFixed in Version => CMake 2.8.9
2012-06-21 09:55Brad KingResolutionopen => fixed
2012-06-21 09:55Brad KingAssigned To => Brad King
2012-06-21 09:56Brad KingResolutionfixed => duplicate
2012-06-21 09:56Brad KingNote Added: 0029798
2012-08-09 19:58David ColeTarget Version => CMake 2.8.9
2013-01-09 10:56Robert MaynardNote Added: 0032040
2013-01-09 10:56Robert MaynardStatusresolved => closed

Notes
(0029798)
Brad King   
2012-06-21 09:56   
For reference, the fix in 0013199 was:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e5dc7689 [^]
(0032040)
Robert Maynard   
2013-01-09 10:56   
Closing resolved issues that have not been updated in more than 4 months.