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

Bug 351401

Summary: no user 'portage' in the system
Product: Gentoo/Alt Reporter: Ruslan U. Zakirov <Ruslan.Zakirov>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ruslan U. Zakirov 2011-01-12 01:50:58 UTC
Step by step guide on bootstraping prefixed portage on macosx never mentioned 'portage' user. While bootstraping I saw some warnings about the missing user, but decided that it's ok as long as things don't fail and emerge.

However, some ebuilds die when they don't find the user, for example app-vim/gentoo-syntax-20101212 .

Should I just create the user and forget? Should I run a tool after creating user that will fix permissions? Is it bug in ebuilds or the guide?

guide: app-vim/gentoo-syntax-20101212

Reproducible: Always




 * gentoo-syntax-20101212.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                   [ ok ]
 * Package:    app-vim/gentoo-syntax-20101212
 * Repository: gentoo_prefix
 * Maintainer: spatz@gentoo.org darkside@gentoo.org,vim@gentoo.org
 * USE:        elibc_Darwin kernel_Darwin prefix userland_GNU x64-macos
 * FEATURES:   nostrip preserve-libs
>>> Unpacking source...
>>> Unpacking gentoo-syntax-20101212.tar.bz2 to /opt/portage/var/tmp/portage/app-vim/gentoo-syntax-20101212/work
>>> Source unpacked in /opt/portage/var/tmp/portage/app-vim/gentoo-syntax-20101212/work
>>> Compiling source in /opt/portage/var/tmp/portage/app-vim/gentoo-syntax-20101212/work/gentoo-syntax-20101212 ...
>>> Source compiled.
>>> Test phase [not enabled]: app-vim/gentoo-syntax-20101212

>>> Install gentoo-syntax-20101212 into /opt/portage/var/tmp/portage/app-vim/gentoo-syntax-20101212/image/opt/portage/ category app-vim
 * Fixing file permissions ...
find: `portage' is not the name of a known user
 * ERROR: app-vim/gentoo-syntax-20101212 failed:
 *   chown failed
 * 
 * Call stack:
 *     ebuild.sh, line   62:  Called src_install
 *   environment, line 2393:  Called vim-plugin_src_install
 *   environment, line 3110:  Called die
 * The specific snippet of code:
 *           find "${S}" -user 'portage' -exec chown root '{}' \; || die "chown failed";
 * 
 * If you need support, post the output of 'emerge --info =app-vim/gentoo-syntax-20101212',
 * the complete build log and the output of 'emerge -pqv =app-vim/gentoo-syntax-20101212'.
 * The complete build log is located at '/opt/portage/var/tmp/portage/app-vim/gentoo-syntax-20101212/temp/build.log'.
 * The ebuild environment file is located at '/opt/portage/var/tmp/portage/app-vim/gentoo-syntax-20101212/temp/environment'.
 * S: '/opt/portage/var/tmp/portage/app-vim/gentoo-syntax-20101212/work/gentoo-syntax-20101212'

>>> Failed to emerge app-vim/gentoo-syntax-20101212, Log file:
Comment 1 Fabian Groffen gentoo-dev 2011-01-12 09:14:16 UTC
I'd rather say the ebuild has to be fixed instead
Comment 2 Fabian Groffen gentoo-dev 2011-01-16 18:13:32 UTC
are you bootstrapping as root?
Comment 3 Fabian Groffen gentoo-dev 2011-01-16 18:19:35 UTC
fixed a logic error in the vim-plugins.eclass