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

Bug 239269

Summary: kde-base/kdelibs-4.1.1-r4: kbuildsycoca4 global update creates unneeded directories in system paths
Product: Gentoo Linux Reporter: Ambroz Bizjak <ambrop7>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: maris.gis, patrizio.bassi, spock
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 239356    
Attachments: fix

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