Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239269 - kde-base/kdelibs-4.1.1-r4: kbuildsycoca4 global update creates unneeded directories in system paths
Summary: kde-base/kdelibs-4.1.1-r4: kbuildsycoca4 global update creates unneeded direc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 241660 241890 (view as bug list)
Depends on:
Blocks: kdeprefix
  Show dependency tree
 
Reported: 2008-10-01 19:32 UTC by Ambroz Bizjak
Modified: 2008-12-01 15:51 UTC (History)
3 users (show)

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


Attachments
fix (kdelibs-4.1.1-kconfig-dont-create-local-dirs.patch,2.87 KB, patch)
2008-10-02 17:01 UTC, Ambroz Bizjak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ambroz Bizjak 2008-10-01 19:32:43 UTC
If KDE 4.1 is compiled with the "kdeprefix" flag, the global kbuildsycoca update will dirty the filesystem by creating empty directories in /usr/share/kde4 which are chmodded 700.

This creation is a result of a bug in kconfig. In a KDE session, opening any config file will cause the creation of its path components in $KDEHOME, even if the config is not changed and saved locally later on (see your $KDEHOME/share - full of mostly empty dirs).
The behavior is even worse with the global kbuildsycoca update, as $KDEHOME is invalid there, and the first element of $KDEDIRS will be picked up as the local dir (/usr).
It doesn't happen without kdeprefix, as the original dirs already exist where they would be created.

I've fixed it upstream (but it's not in 4.1.2):
http://websvn.kde.org/?view=rev&revision=866718
http://websvn.kde.org/?view=rev&revision=866719

Reproducible: Always
Comment 1 Ambroz Bizjak 2008-10-02 15:43:49 UTC
My fix had a minor regression (though I haven't seen any functional problems). These commits describe and fix it:
http://websvn.kde.org/?view=rev&revision=866908
http://websvn.kde.org/?view=rev&revision=866909
Comment 2 Ambroz Bizjak 2008-10-02 17:01:54 UTC
Created attachment 167011 [details, diff]
fix

this patch contains changes from both commits
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-14 13:15:40 UTC
*** Bug 241890 has been marked as a duplicate of this bug. ***
Comment 4 Michal Januszewski (RETIRED) gentoo-dev 2008-10-15 13:00:45 UTC
*** Bug 241660 has been marked as a duplicate of this bug. ***
Comment 5 Ambroz Bizjak 2008-12-01 15:51:44 UTC
fixed in 4.1.3