View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013335CMakeCMakeSetuppublic2012-06-21 09:542013-01-09 10:56
ReporterMartinK 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionduplicate 
Platformx86 and SPARCOSSolarisOS Version10
Product VersionCMake 2.8.8 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013335: Build installs into wrong directory due to bug in bootstrap script
DescriptionCMake 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#*=}"
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0013199closedBrad King bootstrap: bad substitution 

  Notes
(0029798)
Brad King (manager)
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 (manager)
2013-01-09 10:56

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-06-21 09:54 MartinK New Issue
2012-06-21 09:55 Brad King Relationship added duplicate of 0013199
2012-06-21 09:55 Brad King Status new => resolved
2012-06-21 09:55 Brad King Fixed in Version => CMake 2.8.9
2012-06-21 09:55 Brad King Resolution open => fixed
2012-06-21 09:55 Brad King Assigned To => Brad King
2012-06-21 09:56 Brad King Resolution fixed => duplicate
2012-06-21 09:56 Brad King Note Added: 0029798
2012-08-09 19:58 David Cole Target Version => CMake 2.8.9
2013-01-09 10:56 Robert Maynard Note Added: 0032040
2013-01-09 10:56 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team