Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32907 - wrong file ownerships of gdesklets desklets (weather, sysinfo, starterbar,...)
Summary: wrong file ownerships of gdesklets desklets (weather, sysinfo, starterbar,...)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mike Gardiner (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-06 14:07 UTC by Andreas Volz
Modified: 2003-11-12 03:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.