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                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to