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

Bug 428752

Summary: app-admin/eselect-1.3.1 fails during install phase on Gentoo Prefix due to chown call
Product: Gentoo/Alt Reporter: Richard Yao (RETIRED) <ryao>
Component: Prefix SupportAssignee: Gentoo eselect Team <eselect>
Status: RESOLVED FIXED    
Severity: major CC: prefix
Priority: Normal Keywords: REGRESSION
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard Yao (RETIRED) gentoo-dev 2012-07-31 05:00:42 UTC
"fowners root:portage /var/lib/gentoo/news || die" causes app-admin/eselect-1.3.1's install phase to fail on systems that lack a portage group. This breaks the Gentoo Prefix bootstrap procedure on all non-Gentoo systems.

Changing it to be "use prefix || fowners root:portage /var/lib/gentoo/news || die" solves this.
Comment 1 Ulrich Müller gentoo-dev 2012-07-31 07:46:18 UTC
We need to suppress the fperms too, if the fowners failed. So I'd rather change it to:

    fowners root:portage /var/lib/gentoo/news \
        && fperms g+w /var/lib/gentoo/news
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-07-31 13:17:26 UTC
(In reply to comment #1)
> We need to suppress the fperms too, if the fowners failed. So I'd rather
> change it to:
> 
>     fowners root:portage /var/lib/gentoo/news \
>         && fperms g+w /var/lib/gentoo/news

There is also a call in pkg_postinstall that also fails (but it doesn't cause problems for the bootstrap process). It should be suppressed as well.

The following should work:

use prefix || fowners root:portage /var/lib/gentoo/news && fperms g+w /var/lib/gentoo/news

I butchered the formatting here because it is a pain to do proper formatting in bugzilla, but this should provide the general idea. Mind if I commit?
Comment 3 Ulrich Müller gentoo-dev 2012-07-31 16:33:36 UTC
Fixed in 1.3.1.