Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238430 - kde-base/kdelibs-4.1.1-r3: kbuildsycoca4 global update creates unwanted folders
Summary: kde-base/kdelibs-4.1.1-r3: kbuildsycoca4 global update creates unwanted folders
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-22 21:44 UTC by Ambroz Bizjak
Modified: 2008-09-24 23:13 UTC (History)
0 users

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


Attachments
fix (ksavefile.patch,763 bytes, patch)
2008-09-22 21:44 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-09-22 21:44:04 UTC
The global kbuildsycoca update (after every KDE4 package) creates the following unwanted files:
folder "$PWD/-",
symlink "$PWD/-/tmp-$HOSTNAME",
folder "/tmp/kde-root",
folder "$KDEDIR/tmp-$HOSTNAME".
(where $PWD is the folder where emerge was run from).

It it trying to create a "tmp" resource and a KDEHOME (which kbuildsycoca4 sets to "-", somehow meaning "no home"), but it doesn't really need it (no files are ever written inside).

This is due to a bug in KSaveFile, which uses KTemporaryFile, which requests the "tmp" resource in it's constructor. It doesn't need "tmp" as it sets an absolute path later on.
I've changed it to use QTemporaryFile instead, which does not have any side effects. 
Patch is attached. I've also fixed the bug upstream:
http://websvn.kde.org/?view=rev&revision=863691
http://websvn.kde.org/?view=rev&revision=863692

Reproducible: Always

Steps to Reproduce:
1. remove "$KDEDIR/tmp-$HOSTNAME" if it exists
2. emerge any kde4.1 package
Comment 1 Ambroz Bizjak 2008-09-22 21:44:27 UTC
Created attachment 166150 [details, diff]
fix
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2008-09-23 09:15:45 UTC
Added into kde-testing main branch.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-09-24 23:13:39 UTC
01:03 < scarabeus> jmbsvicetto: you can close bug 238430