[CMake] Suggestions needed for handling Fedora UsrMove

Orion Poplawski orion at cora.nwra.com
Tue Mar 12 23:23:48 EDT 2013


In current Fedora, /sbin,/bin, and /lib are symbolic links to /usr/sbin, 
/usr/bin, and /usr/lib.  This causes problems such as the one outlined here:
https://bugzilla.redhat.com/show_bug.cgi?id=917407
where find_package(PKG NO_MODULE) will find PKGConfig.cmake in /lib/pkg/ 
instead of /usr/lib/pkg/, and perhaps then make the erroneous assumption 
that everything is based in / rather than /usr.  I think some of this is 
caused by cmake being found in /bin/ if /bin in earlier than /usr/bin in 
the PATH.

I'm looking for suggestions as to how to handle this on a distro wide 
level (as I'm a packager of cmake for Fedora).  Perhaps some way to tell 
cmake to start with /usr as a prefix first rather than basing off of 
PATH or where cmake is first found?

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the CMake mailing list