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

Bug 32907

Summary: wrong file ownerships of gdesklets desklets (weather, sysinfo, starterbar,...)
Product: Gentoo Linux Reporter: Andreas Volz <linux>
Component: New packagesAssignee: Mike Gardiner (RETIRED) <obz>
Status: RESOLVED FIXED    
Severity: normal CC: dougw
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas Volz 2003-11-06 14:07:12 UTC
a lot of file ownerships in /usr/share/gdesklets are set to a users id and so also
writeable to my user.
for example:
-rw-r--r--    1 andreas  1000         4083 2003-11-05 17:50
/usr/share/gdesklets/Sensors/SysInfo/gfx/boot.png
I think it shoud be root:root. Problem could be solved if the ebuild for
gdesklets use "install" with correct parameters instead of using "cp" to install
the files.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Doug Weimer 2003-11-06 20:08:59 UTC
The 'cp -R' isn't actually the issue here. The files in the Sensors/ tree
are installed by the included python script. The problem is that the install
script uses tar and doesn't include the --no-same-owner parameter. For the
desklet-sysinfo-0.21.2.ebuild this can be fixed by adding:

sed -i -e "s:tar -xzvf:tar --no-same-owner -xzvf:" Install_${DESKLET_NAME}_Sensor.bin

as a single line at the end of src_unpack().
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-11-06 22:11:15 UTC
thanks for the comment doug, the other option is just to recursively change
the ownership of ${D} to root:root after installing to the image.
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2003-11-12 03:20:50 UTC
Okay, fixed in x11-plugins/desklet-:
clock, cornerxmms, ltvariations, psisensors, starterbar, sysinfo, temperature, weather

Also reminded me to do a few bumps. I had this one in my head to fix for a while but didnt get around to it, so thanks for your report and help here.