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

Bug 585690

Summary: =mail-client/mutt-1.5.24-r2 fails to install on gentoo-embedded because mail group is not present
Product: Gentoo Linux Reporter: Dirk Tilger <dirk>
Component: Current packagesAssignee: Fabian Groffen <grobian>
Status: RESOLVED CANTFIX    
Severity: normal CC: jstein, net-mail+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to create the required 'mail' group during building
Just for reference: emerge --info as requested.

Description Dirk Tilger 2016-06-12 13:11:08 UTC
Created attachment 437248 [details, diff]
Patch to create the required 'mail' group during building

During compilation mutt executes

chown root:mail $SOMETHING

When the 'mail' group doesn't exist, this fails. The attached patch creates the required group during pkg_setup()
Comment 1 Coacher 2016-06-13 14:00:36 UTC
mutt unconditionally depends on net-mail/mailbase and mailbase creates mail group.
You are most likely doing something wrong.

Please attach output of `emerge --info' and complete build.log where the problem can be seen.
Comment 2 Dirk Tilger 2016-06-13 17:27:05 UTC
(In reply to Coacher from comment #1)
> Please attach output of `emerge --info' and complete build.log where the
> problem can be seen.

I think I know what happened. I set this system up through ROOT= (gentoo-embedded). net-mail/mailbase probably got depended in when I installed sendmail, but pkg_setup() won't be executed in this case.

How would this be done properly?
Comment 3 Dirk Tilger 2016-06-13 17:28:07 UTC
Created attachment 437406 [details]
Just for reference: emerge --info as requested.
Comment 4 Coacher 2016-06-13 19:16:01 UTC
(In reply to Dirk Tilger from comment #2)
> I set this system up through ROOT= (gentoo-embedded).
> How would this be done properly?
Sorry, I don't know the right way to do cross compilation in Gentoo.
Comment 5 Fabian Groffen gentoo-dev 2016-06-15 07:51:15 UTC
I guess mailbase should also be in RDEPEND.  If you move the mailbase dep to CDEPEND, does it properly pull it into your ROOT then?
Comment 6 Dirk Tilger 2016-06-15 13:46:23 UTC
(In reply to Fabian Groffen from comment #5)
> I guess mailbase should also be in RDEPEND.  If you move the mailbase dep to
> CDEPEND, does it properly pull it into your ROOT then?

mailbase was actually installed on that box, so I think it's not a problem of dependencies. However, the useradd call would have to be executed within a chroot environment if not(ROOT=/) and as far as I could see in user.eclass that doesn't happen.

In the past I've had to rerun the pkg_setup() phase for packages like apache so they create their user accounts and set up the system (with CTRL+C once they are in the configuration phase), I was just wondering if there isn't a better way to do this.
Comment 7 Fabian Groffen gentoo-dev 2016-06-15 13:53:47 UTC
That's interesting indeed, but unrelated to Mutt.  Perhaps we could turn this into a user.eclass bug instead?
Comment 8 Coacher 2016-06-15 15:00:00 UTC
(In reply to Fabian Groffen from comment #7)
> That's interesting indeed, but unrelated to Mutt.  Perhaps we could turn
> this into a user.eclass bug instead?
https://bugs.gentoo.org/show_bug.cgi?id=541406
Comment 9 Dirk Tilger 2016-06-15 16:18:11 UTC
(In reply to Fabian Groffen from comment #7)
> That's interesting indeed, but unrelated to Mutt.  Perhaps we could turn
> this into a user.eclass bug instead?

Agreed, let's close this bug.