Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 429 - using uid vc userame during tbz2 extraction
Summary: using uid vc userame during tbz2 extraction
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Geert Bevin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-30 05:45 UTC by Vitaly Kushneriuk (RETIRED)
Modified: 2011-10-30 22:19 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 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"