[cmake-developers] [CMake 0013335]: Build installs into wrong directory due to bug in bootstrap script

Mantis Bug Tracker mantis at public.kitware.com
Thu Jun 21 09:54:05 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13335 
====================================================================== 
Reported By:                MartinK
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13335
Category:                   CMakeSetup
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-21 09:54 EDT
Last Modified:              2012-06-21 09:54 EDT
====================================================================== 
Summary:                    Build installs into wrong directory due to bug in
bootstrap script
Description: 
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.


Steps to Reproduce: 
- 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#*=}"

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-21 09:54 MartinK        New Issue                                    
======================================================================




More information about the cmake-developers mailing list