Broken RPATH/RUNPATH in kdepim/console/kabc2mutt

Andreas Pakulat apaku at gmx.de
Fri Apr 10 01:35:29 CEST 2009


On 10.04.09 00:30:57, Maciej Mrozowski wrote:
> Hi
> 
> I've just noticed little problem with one executable from kdepim.
> kabcclient is intentionally installed in two copies with different names 
> (logic is determined by argv[0]), using install ( RENAME )
> 
> Looks like cmake install ( RENAME ) command breaks RPATH/RUNPATH for 
> executables (as shown in attached build log).
> Gentoo scripts appends broken RPATH in such cases, so executable works well, 
> still it's a bug and at least worth mentioning.
> 
> Just quick proof (source executable) :
> chroot / # scanelf -r /usr/kde/live/bin/kabcclient
>  TYPE   RPATH FILE
> ET_EXEC /usr/kde/live/lib64:/usr/kde/live/lib64:/usr/lib64/qt4 
> /usr/kde/live/bin/kabcclient
> 
> target executable, after install ( RENAME ) :
> chroot / # scanelf -r /usr/kde/live/bin/kabc2mutt
>  TYPE   RPATH FILE
> ET_EXEC /usr/kde/live/lib64:/usr/lib64/qt4: /usr/kde/live/bin/kabc2mutt

Hmm, maybe I'm missing something, but where is the RPATH broken? The
only difference I can see is that kabcclient has a duplicate entry,
which kabc2mutt doesn't have.
 
> Regarding kdepim, why not just install kabc2mutt as symlink to kabcclient?

Because at least one platform of KDE4 doesn't support symlinks.

Andreas

-- 
Among the lucky, you are the chosen one.


More information about the Kde-buildsystem mailing list