Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956559 - acct-user/portage installation fails in crossdev
Summary: acct-user/portage installation fails in crossdev
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-24 16:13 UTC by Sungjoon Moon
Modified: 2025-05-24 19:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_956559.txt,990 bytes, text/plain)
2025-05-24 16:13 UTC, Sungjoon Moon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sungjoon Moon 2025-05-24 16:13:06 UTC
Created attachment 929450 [details]
build.log

Commit 0f5b1abe ("acct-user.eclass: handle ACCT_USER_HOME_OWNER when ROOT is not empty") breaks acct-user/portage installation with the error "chown: invalid spec" during cross-building.

Need more investigation for other acct-user/* acct-group/* packages.
Comment 1 Sungjoon Moon 2025-05-24 16:14:06 UTC
If you already have a binary package, you need to build it again manually, or it will still fail.
Comment 2 Sungjoon Moon 2025-05-24 16:15:20 UTC
Related bug: https://bugs.gentoo.org/956026
Comment 4 Mike Gilbert gentoo-dev 2025-05-24 16:56:43 UTC
It works fine for me. Yes, you will need to rebuild any affected binpkgs.
Comment 5 Mike Gilbert gentoo-dev 2025-05-24 17:20:44 UTC
I did push this fix, but I think it is unrelated to the issue you experienced.

commit 8b4146d87806731a0d63c0c2b8352a88deb2a31b
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sat May 24 13:07:24 2025 -0400

    acct-user.eclass: ensure groups is set in pkg_preinst
    
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Comment 6 Sungjoon Moon 2025-05-24 19:35:05 UTC
(In reply to Sungjoon Moon from comment #1)
> If you already have a binary package, you need to build it again manually,
> or it will still fail.

I mean if you revert that commit, you still need to rebuild the package.
emerge doesn't know it's updated.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-24 19:40:10 UTC
Yes, the environment is saved in binpkgs.

Does it still fail with the later commit floppym pushed (with a clean binpkg)?
Comment 8 Sungjoon Moon 2025-05-24 19:43:54 UTC
It works!
Huge thanks to both of you