EPEL 6 cmake RPATH deafults?!?

Rex Dieter rdieter at math.unl.edu
Fri May 4 22:47:36 UTC 2012


Rex Dieter wrote:

> Richard Shaw wrote:
> 
>> I was having trouble building one of my packages for EL6 and I noticed
>> it was failing during man file generation using help2man.
>> 
>> It turns out that the cmake macros in EL6 use
>> "-DCMAKE_SKIP_RPATH:BOOL=ON" where Fedora doesn't set this (so
>> effectively OFF).
>> 
>> This meant that there was no RPATH to the library required by the
>> executable in the build tree and help2man was failing.
>> 
>> Is there a good reason why this is the default in EL?
>> 
>> On a side note. I wish EL would update to cmake 2.8. I had to do a log
>> of patching of the cmake configuration to get it to build with 2.6.
> 
> file a bug (about both issues), we can at least fix the rpath one I think

Arg, forgot cmake is part of rhel now, not epel, so bug away, but that's the 
redhat cmake maintainers' call to make.

in the meantime, you can definitely workaround your particular problem by 
either including:
%define %_cmake_skip_rpath %{nil}

or 
cmake ... -D-DCMAKE_SKIP_RPATH:BOOL=OFF

-- rex



More information about the devel mailing list