Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428752 - app-admin/eselect-1.3.1 fails during install phase on Gentoo Prefix due to chown call
Summary: app-admin/eselect-1.3.1 fails during install phase on Gentoo Prefix due to ch...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal major (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-07-31 05:00 UTC by Richard Yao (RETIRED)
Modified: 2012-07-31 23:31 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 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.