Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86352 - dbus-0.23.4 needs to check for messagebus user/group before adding
Summary: dbus-0.23.4 needs to check for messagebus user/group before adding
Status: RESOLVED DUPLICATE of bug 87429
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-23 00:28 UTC by Jonathan Briggs
Modified: 2005-05-19 13:19 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 Jonathan Briggs 2005-03-23 00:28:59 UTC
dbus-0.23.4 fails to emerge because it can't add messagebus group and user, which is stupid because that group and user already exist.

I patched it by adding "if ! groupmod messagebus; then" and "if ! id messagebus; then" before the add commands (stolen from another ebuild).

Reproducible: Always
Steps to Reproduce:
1. emerge sys-apps/dbus-0.23.2-r1
2. emerge sys-apps/dbus-0.23.4

Actual Results:  
Failed to emerge.

Expected Results:  
Successful emerge.
Comment 1 foser (RETIRED) gentoo-dev 2005-03-23 08:42:54 UTC
the function may error, but it shouldn't fail the ebuild. Either the eclass changed or you have something odd going on locally.
Comment 2 Jonathan Briggs 2005-03-23 09:03:47 UTC
enewgroup messagebus || die "Problem adding messagebus group"

It could be that "|| die ..." that is screwing it up.
Comment 3 Jonathan Briggs 2005-03-23 09:14:40 UTC
I just realized that
echo test:more | cut -d: -f1
returns a blank line on my system.  It also fails doing the getent group messagebus | cut ... etc, thing.

I'll have to figure this out.  Sorry, looks like something wrong with my system.  Or something wrong with the cut program.  But since I'm playing with some weird optimization flags and GCC 4, it could easily be a compiler bug.

Close this bug, I guess, unless there's some reason to leave it open.  If it _is_ a bug, it looks like a bug in cut.
Comment 4 Jonathan Briggs 2005-04-04 08:51:33 UTC

*** This bug has been marked as a duplicate of 87429 ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-05-19 12:00:07 UTC
*** Bug 93234 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-05-19 12:01:22 UTC
Reopening - not related to Bug 87429.
Comment 7 Jonathan Briggs 2005-05-19 12:31:53 UTC
Yes, this bug was filed by me, and marked duplicate by me when I found the real
problem.  The ebuild was failing because my cut program was broken.  Please
close it again.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-05-19 12:44:29 UTC
(In reply to comment #7)
>  Please close it again.

Why should it be closed when it
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-05-19 12:44:29 UTC
(In reply to comment #7)
>  Please close it again.

Why should it be closed when it´s not fixed? See the duplicate Bug 93234 -
coreutils patch does not fix it...
Comment 10 Jonathan Briggs 2005-05-19 12:57:27 UTC
Okay, but the reason given for reopening this bug is incorrect.  When I
experienced this problem, it *was* coreutils and the cut program causing the
bug.  Fixing cut fixed the dbus ebuild.  This must be a different problem.
Comment 11 foser (RETIRED) gentoo-dev 2005-05-19 13:19:47 UTC
closing this one again

*** This bug has been marked as a duplicate of 87429 ***