View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002877CMakeCMakepublic2006-02-12 17:422006-10-16 15:40
ReporterLeo Savernik 
Assigned ToBrad King 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002877: configure bootstrap mistreats absolute paths
DescriptionBootstrapping CVS as of 2006-02-12, I configured CMake as follows, just as I'd have done it for an autoconf-project:

../configure --prefix=/usr --docdir=/usr/share/packages/doc --mandir=/usr/share/man

I built and installed CMake, and eventually hit this in the output log:

-- Installing /usr/usr/share/man/man1/cmake.1
-- Installing /usr/usr/share/man/man1/ctest.1
-- Installing /usr/usr/share/man/man1/ccmake.1
-- Installing /usr/usr/share/packages/doc/Copyright.txt
-- Installing /usr/usr/share/packages/doc/cmake.txt
-- Installing /usr/usr/share/packages/doc/cmake.html
-- Installing /usr/usr/share/packages/doc/ctest.txt
-- Installing /usr/usr/share/packages/doc/ctest.html
-- Installing /usr/usr/share/packages/doc/ccmake.txt
-- Installing /usr/usr/share/packages/doc/ccmake.html

CMake prepends the prefix to an already absolute path.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0005435)
Brad King (manager)
2006-10-16 15:40

CMake's configure script is NOT an autoconf script and is not intended to follow an autoconf interface to the letter. It just calls the cmake "bootstrap" script which is hand-constructed to build a minimal part of CMake and then run it on the CMake tree itself. Our choice of interface was to treat the docdir and mandir options as relative to the prefix. This made sense at the time because the old INSTALL_* commands did not support absolute path installation.

There is now an INSTALL command that supports installation relative to the prefix or to an absolute path in the way one expects. Unfortunately we cannot just change the installation rules to use this command right now because CMake is supposed to be able to be built by an older CMake which does not have this command.

Fixing this also may break existing user installation scripts that expect the current interface to be maintained. I'm going to defer this bug for now.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team