Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347021 - x11-libs/qt-gui-4.6.3-r2: uses a lot of weird paths for searching libs, 182 ENOENT for linguist
Summary: x11-libs/qt-gui-4.6.3-r2: uses a lot of weird paths for searching libs, 182 E...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-27 22:43 UTC by Nikoli
Modified: 2012-04-01 16:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grep ^open (strace.log,34.48 KB, text/plain)
2010-11-27 22:49 UTC, Nikoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2010-11-27 22:43:51 UTC
$ strace linguist 2>&1|grep ENOENT|grep /lib -c
182
$ strace linguist 2>&1|grep ENOENT|grep libXfixes -c
43
$ strace linguist 2>&1|grep ENOENT|grep libXfixes|awk -F'"' '{print $2}'|sort -u
/lib64/libXfixes
/lib64/libXfixes.so.1
/lib64/libXfixes.so.2
/lib64/tls/libXfixes
/lib64/tls/x86_64/libXfixes
/lib64/x86_64/libXfixes
/usr/lib64/libXfixes
/usr/lib64/libXfixes.so.1
/usr/lib64/libXfixes.so.2
/usr/lib64/qt4/libXfixes
/usr/lib64/qt4/libXfixes.so
/usr/lib64/qt4/libXfixes.so.1
/usr/lib64/qt4/libXfixes.so.2
/usr/lib64/tls/libXfixes
/usr/lib64/tls/x86_64/libXfixes
/usr/lib64/x86_64/libXfixes

More Qt4 examples:
$ strace stellarium 2>&1|grep ENOENT|grep /lib -c
174
$ strace speedcrunch 2>&1|grep ENOENT|grep /lib -c
174
$ strace avidemux2_qt4 2>&1|grep ENOENT|grep /lib -c
170

Seems GTK does not have such problem:
$ strace avidemux2_gtk 2>&1|grep ENOENT|grep /lib -c
64
$ strace ario 2>&1|grep ENOENT|grep /lib -c
17
$ strace asunder 2>&1|grep ENOENT|grep /lib -c
16
$ strace ekiga 2>&1|grep ENOENT|grep /lib -c
17
Comment 1 Nikoli 2010-11-27 22:49:35 UTC
Created attachment 255675 [details]
grep ^open
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-11-28 17:22:21 UTC
Maybe this should go upstream?
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2010-12-06 00:05:42 UTC
Qt4 libraries use a rpath (/usr/lib64/qt4) whereas gtk+ libraries do not.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2010-12-06 00:41:18 UTC
It seems that qt-core still installs an env.d file, which is polluting LDPATH variable. That file should be useless since we use RPATHs now. I've filed bug #347868 about this.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2012-04-01 16:10:09 UTC
With Qt 4.8 this is definitely improved, probably because we removed rpath from Qt libraries:

$ strace linguist 2>&1 | grep "^open.*/lib.*ENOENT" -c
58
$ strace linguist 2>&1 | grep ENOENT | grep libXfixes -c
0

(most remaining ENOENTs are caused by kde libraries, which are being fixed to avoid rpath too)

So I think this can be considered fixed.
Thanks!
Comment 6 Nikoli 2012-04-01 16:41:10 UTC
Will test after qt & kde 4.8 stabilization :)
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2012-04-01 16:49:22 UTC
Great! Let us know how it goes ;)