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

Bug 429

Summary: using uid vc userame during tbz2 extraction
Product: Portage Development Reporter: Vitaly Kushneriuk (RETIRED) <vitaly>
Component: UnclassifiedAssignee: Geert Bevin <gbevin>
Status: RESOLVED FIXED    
Severity: normal CC: drobbins
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vitaly Kushneriuk (RETIRED) gentoo-dev 2002-01-30 05:45:19 UTC
When portage extracts precompiled binary tbz2 archives, files will get owners
according to uid, which might be different that on the build machine.
IMO user names should be used as a better/safer solution.
Comment 1 Geert Bevin 2002-01-30 05:51:05 UTC
Checking the code I found the following observations.

The creation of the binary packages is done in ebuild.sh in the dyn_package
function. The archive is created with 'tar cvf' which should by default preserve
user names and not user uids. 

The extraction takes place in portage.py in the pkgmerge function. The archive
is extracted with 'tar xpf' which also should preserve the user names.

According to the tar man page numeric uids are used when the --numeric-owner
option is provided. Maybe the -p option silently includes it.

Someone any comments?
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-02-20 22:40:30 UTC
Pretty sure you're right, Geert.  Looks like a "worksforme"