Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326193 - enewgroup in eutils.eclass should check groupadd/shadow version
Summary: enewgroup in eutils.eclass should check groupadd/shadow version
Status: RESOLVED DUPLICATE of bug 367633
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 18:04 UTC by Florian Berger
Modified: 2011-06-18 03:51 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 Florian Berger 2010-06-29 18:04:35 UTC
With <sys-apps/shadow-4.1 installed, the groupadd command does not support the -r switch. This switch is used in the current eutils.eclass. This leads to failing ebuilds when they call the enewgroup function from the eclass. There is no hint at the cause, so the user has to figure out that an outdated sys-apps/shadow caused the error.

Reproducible: Always

Steps to Reproduce:
1. emerge "=shadow-4.0.18.2"
2. emerge kqemu

Actual Results:  
Observe the ebuild failing with "groupadd: no such option: -r" -> "enewgroup failed".

Expected Results:  
The eutils.eclass shoud emit a useful description of what caused the error: "Your groupadd command is outdated. Please emerge >=shadow-4.1.2.2 and retry".

This is only a bug as long as <sys-apps/shadow-4.1 is in the tree, and it might not affect too many people. It however affected me, and a better error description would have saved some time. :)
Comment 1 SpanKY gentoo-dev 2011-06-18 03:51:51 UTC

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