Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 347868

Summary: x11-libs/qt-core installs useless(?) env.d file
Product: Gentoo Linux Reporter: Davide Pesavento <pesa>
Component: [OLD] LibraryAssignee: Qt Bug Alias <qt>
Status: RESOLVED INVALID    
Severity: enhancement CC: nikoli
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Davide Pesavento gentoo-dev 2010-12-06 00:36:42 UTC
Qt libraries have been using RPATH for a long time, thus obsoleting the need to modify LDPATH to specify their custom locations. If nobody can find a valid reason for /etc/env.d/44qt4 to exist, I propose to stop installing it.

( http://blog.flameeyes.eu/2008/12/30/avoid-ldpath-pollution )
Comment 1 Alex Alexander (RETIRED) gentoo-dev 2011-12-19 19:45:24 UTC
I tried this and all hell broke loose. Didn't rebuild world yet, but there were quite a few packages that stopped working or broke during compilation after removing it.

I'll have to do more testing...
Comment 2 Davide Pesavento gentoo-dev 2012-01-09 13:48:30 UTC
We removed RPATH from all qt libraries in 4.8+, so I don't know if this is still feasible...
Comment 3 Davide Pesavento gentoo-dev 2012-06-26 22:27:17 UTC
(In reply to comment #2)
> We removed RPATH from all qt libraries in 4.8+, so I don't know if this is
> still feasible...

Closing.

In this case it's actually better to add an LDPATH entry than using RPATH, since Qt doesn't install any private libraries nor any plugins there (the subdir is needed just for slotting) and runpaths make more sense in executables.