Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112162 - sys-apps/slocate should not break merging of more packages because of simple group renaming
Summary: sys-apps/slocate should not break merging of more packages because of simple ...
Status: RESOLVED DUPLICATE of bug 12768
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 04:23 UTC by Martin Wegner
Modified: 2005-11-11 09:49 UTC (History)
0 users

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 Martin Wegner 2005-11-11 04:23:46 UTC
I wanted to merge a larger amount of packages over night. I was kind of upset
this morning when I noticed that emerge was canceled due to this message by the
slocate ebuild:

pkg_setup() {
        if [[ -n $(egetent group slocate) ]] ; then
                eerror "The 'slocate' group has been renamed to 'locate'."
                eerror "You seem to already have a 'slocate' group."
                eerror "Please rename it:"
                eerror "groupmod -n locate slocate"
                die "Change 'slocate' to 'locate'"
        fi
        enewgroup locate 245
}

slocate was installed the first time on a fresh installation from the 2005.1
release.

Instead of merging all packages I wanted, it stopped early here. The group
"locate" did not exist on my system. So why not simply renaming that group by
the ebuild and let the user know this by einfo?

This is absolutely _no_ reason to stop emerge?!

Reproducible: Always
Steps to Reproduce:
1. emerge slocate # (the first time on newly installed system (2005.1))

Actual Results:  
Fails with error, stopping all eventually following merges.

Expected Results:  
Should only inform and simply rename.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-11 04:28:41 UTC
(In reply to comment #0)
> So why not simply renaming that group by
> the ebuild and let the user know this by einfo?

Because any automated messing with existing groups is a bad idea(tm)? ;p
Comment 2 SpanKY gentoo-dev 2005-11-11 07:02:36 UTC

*** This bug has been marked as a duplicate of 12768 ***
Comment 3 Martin Wegner 2005-11-11 08:25:11 UTC
IMHO, this is not exactly a dupplicate of #12768 . Of course, it could also be
generally managed by portage, but I think it is not necessary to stop merging of
slocate when the group instead could be renamed automatically ... So I think the
ebuild needs to be adapted ...

What specific reasons argue against automated group renaming? I mean, users and
groups (e. g. for apache) are also automatically created ...
Comment 4 SpanKY gentoo-dev 2005-11-11 09:49:40 UTC
no ... src_install changes permissions of files using the groupname
so if the group isnt renamed, src_install will fail to set proper
permissions