Bug 498809 - /etc/profile.d/kde4.sh: call to kde4-config expensive (2-4 seconds), causes inappropriate /.kde accesses
Summary: /etc/profile.d/kde4.sh: call to kde4-config expensive (2-4 seconds), causes i...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdelibs
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 489093 504209 518861 566066 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-03 14:39 UTC by Michael Monreal
Modified: 2010-02-17 13:56 UTC (History)
15 users (show)

Fixed In Version: 4.2.3-3.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-16 01:35:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Part of the bootchart (11.07 KB, image/png)
2009-05-03 14:40 UTC, Michael Monreal
no flags Details
search kde4 plugins path (1.20 KB, patch)
2009-05-06 19:02 UTC, Rex Dieter
no flags Details | Diff

Description Michael Monreal 2009-05-03 14:39:44 UTC
I just played a bit with bootchart and found (if I read the chart correctly) that GDM somehow runs kde4-config. The result is that the boot process takes about 2-4 seconds longer (I tested with kde4-config removed) because kde4-config pulls in a lot of extra libs (Qt4...). This is quite a lot considering the whole boot takes about 28-30 seconds.

Now I'm wondering why kde4-config is called. All it seems to do is echoing the installation prefix (or nothing here, because I don't have a full KDE4 desktop installed).

Comment 1 Michael Monreal 2009-05-03 14:40:40 UTC
Created attachment 342235 [details]
Part of the bootchart

Comment 2 Matthias Clasen 2009-05-03 20:11:53 UTC
Probably some autostart file that gets installed by some kde package.
Can you look around in /etc/xdg/autostart and /usr/share/gnome/autostart ?
Could also be due to some xinitrc script, so look through
/etc/X11/xinit/xinitrc.d/ as well.

Comment 3 Michael Monreal 2009-05-03 21:11:03 UTC
Hmm, nothing relevant in those autostart dirs (I made sure and cat * | grep kde turns up nothing). Same for xinitrc.d, but I found /etc/profile.d/kde4.sh (drom kdelibs rpm) which seems to just set QT_PLUGIN_PATH to whatever "kde4-config --path qtplugins" returns: some directory in /usr which I'm sure KDE/QT apps look in even if QT_PLUGIN_PATH is unset.

If you can confirm that GDM just executes all the scripts in /etc/profile.d/ we can re-assign to kdelibs I think. I'm sure the kde4.sh has it's use but calling kde4-config and adding 2-4 seconds delay does not seem to be justified.

[1] http://koji.fedoraproject.org/koji/rpminfo?rpmID=1191706

Comment 4 Matthias Clasen 2009-05-03 21:34:02 UTC
Stuff in /etc/profile.d gets read by bash when you start it as a login shell.

Comment 5 Michael Monreal 2009-05-03 21:47:54 UTC
That was my impression as well, but somehow things get run automatically before I start a bash.

Comment 6 Matthias Clasen 2009-05-06 16:40:50 UTC
Ok, moving this to the kde-side. It has nothing to do with gdm.

Comment 7 Rex Dieter 2009-05-06 17:02:31 UTC
I'll see if we can put in additions to QT_PLUGIN_PATH by default, without having to resort to using hackish and expensive env variables.

Any comments or objections to this plan?

Comment 8 Rex Dieter 2009-05-06 19:02:54 UTC
Created attachment 342703 [details]
search kde4 plugins path

A first attempt at patching qt to always search kde4 plugin path.  Any comments?

(Should work I think, but I only tested if it builds, not tested if it works yet)

Comment 9 Rex Dieter 2009-05-06 19:43:46 UTC
tested qt patch, it works as advertised.

If there aren't any red-flags here, we could consider dropping munging QT_PLUGINS_PATH in /etc/profile.d/kde4.sh now.

Comment 10 Rex Dieter 2009-05-07 13:56:44 UTC
After some (irc-mostly) discussion, we're going to try the KISS approach, and avoid qt patching, and just use
QT_PLUGIN_PATH="/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins"
in kde4.(sh|csh) and see how things go.

Comment 11 Rex Dieter 2009-05-12 15:17:20 UTC
Officially waffled, trying qt approach first, to avoid possible complications of listing non-native-arch bits (and it potentially non-preferred order) in QT_PLUGIN_PATH.

qt-4.5.1-10 includes aforementioned patch
kdelibs-4.2.3-3 will drop QT_PLUGINS_PATH munging (for now).

Comment 12 Fedora Update System 2009-05-14 02:54:39 UTC
kdeaccessibility-4.2.3-1.fc11, kdeadmin-4.2.3-1.fc11, kdeartwork-4.2.3-1.fc11, kdebase-4.2.3-1.fc11, kdebase-workspace-4.2.3-2.fc11, kdebindings-4.2.3-2.fc11, kdeedu-4.2.3-1.fc11, kdegames-4.2.3-1.fc11, kdegraphics-4.2.3-1.fc11, kdemultimedia-4.2.3-1.fc11, kdenetwork-4.2.3-1.fc11, kdepim-4.2.3-1.fc11, kdepimlibs-4.2.3-1.fc11, kdeplasma-addons-4.2.3-1.fc11, kdesdk-4.2.3-1.fc11, kdetoys-4.2.3-1.fc11, kdeutils-4.2.3-1.fc11, kde-l10n-4.2.3-1.fc11, kdebase-runtime-4.2.3-2.fc11, kdelibs-4.2.3-3.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kdeaccessibility kdeadmin kdeartwork kdebase kdebase-workspace kdebindings kdeedu kdegames kdegraphics kdemultimedia kdenetwork kdepim kdepimlibs kdeplasma-addons kdesdk kdetoys kdeutils kde-l10n kdebase-runtime kdelibs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4808

Comment 13 Fedora Update System 2009-05-19 02:03:01 UTC
kdeaccessibility-4.2.3-1.fc11, kdeadmin-4.2.3-1.fc11, kdeartwork-4.2.3-1.fc11, kdebase-4.2.3-1.fc11, kdebindings-4.2.3-2.fc11, kdeedu-4.2.3-1.fc11, kdegames-4.2.3-1.fc11, kdegraphics-4.2.3-1.fc11, kdemultimedia-4.2.3-1.fc11, kdenetwork-4.2.3-1.fc11, kdepim-4.2.3-1.fc11, kdepimlibs-4.2.3-1.fc11, kdeplasma-addons-4.2.3-1.fc11, kdesdk-4.2.3-1.fc11, kdetoys-4.2.3-1.fc11, kdeutils-4.2.3-1.fc11, kde-l10n-4.2.3-1.fc11, kdebase-runtime-4.2.3-2.fc11, kdelibs-4.2.3-3.fc11, kdebase-workspace-4.2.3-3.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kdeaccessibility kdeadmin kdeartwork kdebase kdebindings kdeedu kdegames kdegraphics kdemultimedia kdenetwork kdepim kdepimlibs kdeplasma-addons kdesdk kdetoys kdeutils kde-l10n kdebase-runtime kdelibs kdebase-workspace'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4808

Comment 14 Kevin Kofler 2009-05-19 14:22:15 UTC
We should push that one to stable together with the Qt 4.5.1 update, not the KDE 4.2.3 one, as it needs changes both in Qt and KDE.

Comment 15 Fedora Update System 2009-05-20 23:53:05 UTC
qt-4.5.1-10.fc11, kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update qt kdelibs kdeplasma-addons'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4813

Comment 16 Fedora Update System 2009-05-25 21:17:33 UTC
kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11, qt-4.5.1-11.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kdelibs kdeplasma-addons qt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4813

Comment 17 Steven M. Parrish 2009-05-26 16:43:37 UTC
*** Bug 489093 has been marked as a duplicate of this bug. ***

Comment 18 Fedora Update System 2009-06-02 14:37:24 UTC
kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11, qt-4.5.1-13.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kdelibs kdeplasma-addons qt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4813

Comment 19 Kevin Kofler 2009-06-04 23:21:04 UTC
*** Bug 504209 has been marked as a duplicate of this bug. ***

Comment 20 Kevin Kofler 2009-06-04 23:22:57 UTC
As written in the 2 duplicates, this also causes /.kde in the root directory to be accessed (/root/.kde or /home/*/.kde are valid, /.kde isn't), which gets denied by SELinux.

Comment 21 Bug Zapper 2009-06-09 15:04:08 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 22 Fedora Update System 2009-06-16 01:35:27 UTC
kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11, qt-4.5.1-13.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 23 Kevin Kofler 2009-08-23 20:33:06 UTC
*** Bug 518861 has been marked as a duplicate of this bug. ***

Comment 24 Daniel Walsh 2010-02-17 13:56:06 UTC
*** Bug 566066 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.