rpath in kde packages added by cmake
Patrice Dumas
pertusus at free.fr
Thu Aug 14 15:55:43 UTC 2008
Hello,
In kchmviewer, some rpath are added, that are certainly unneeded:
kchmviewer.i386: E: binary-or-shlib-defines-rpath /usr/lib/kde4/kio_msits.so ['/usr/lib', '/usr/lib/kde4/devel']
kchmviewer.i386: E: binary-or-shlib-defines-rpath /usr/bin/kchmviewer ['/usr/lib', '/usr/lib/kde4/devel']
/usr/lib is unneeded for sure and /usr/lib/kde4/devel seems to be
unneeded to me too, since, at least looking at libkio.so, one has
/usr/lib/kde4/devel/libkio.so -> ../../libkio.so.5
so that at runtime /usr/lib/libkio.so.5 can be used and the rpath is
unnecessary (at link time it is important to use /usr/lib/kde4/devel/
since there is another library version linked with /usr/lib/libkio.so).
However on
http://fedoraproject.org/wiki/Packaging/cmake
it is advised against removing the rpaths with -DCMAKE_SKIP_RPATH:BOOL=ON.
Is it relevant here? Am I doing a sound analysis? Is it a known issue?
Should I use chrpath, or a cmake trick?
A build with rpath removed with chrpath seems to be fine.
--
Pat
More information about the fedora-devel-list
mailing list