Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188206 - vim-plugin.eclass and BSD handling
Summary: vim-plugin.eclass and BSD handling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Vim Maintainers
URL: http://www.gentoo.org/proj/en/gentoo-...
Whiteboard:
Keywords: QAcanfix
Depends on:
Blocks:
 
Reported: 2007-08-09 10:51 UTC by Petteri Räty (RETIRED)
Modified: 2014-11-28 20:04 UTC (History)
2 users (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 Petteri Räty (RETIRED) gentoo-dev 2007-08-09 10:51:37 UTC
>>> Install gentoo-syntax-20070506 into /var/tmp/portage/app-vim/gentoo-syntax-20070506/image/ category app-vim
 * Fixing file permissions ...
 * QA Notice: USE Flag 'userland_BSD' not in IUSE for app-vim/gentoo-syntax-20070506
 * QA Notice: USE Flag 'userland_Darwin' not in IUSE for app-vim/gentoo-syntax-20070506                                        [ ok ]

In the eclass:
    if use userland_BSD || use userland_Darwin ; then
        find ${S} -group 'portage' -exec chgrp wheel '{}' \; || die "chgrp failed"
    else
        find ${S} -group 'portage' -exec chgrp root '{}' \; || die "chgrp failed"
    fi

I think you could just use chgrp 0
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-09 11:44:22 UTC
chgrp 0 would cause an LDAP or similar lookup if the group name 0 did not exist as group name 0 could equal group id 10000

Hence, we have to use names and not id's.
Comment 2 Fabian Groffen gentoo-dev 2007-08-09 11:50:36 UTC
Isn't it time for get_root_user and get_root_grp functions then?  I think there are some ebuilds/eclasses that do assume 0 is fine.  The Vim eclasses were the only ones not having it, since the maintainers of those eclasses didn't like the chgrp 0.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2007-08-09 19:22:02 UTC
(In reply to comment #1)
> chgrp 0 would cause an LDAP or similar lookup if the group name 0 did not exist
> as group name 0 could equal group id 10000
> 
> Hence, we have to use names and not id's.
> 

Then you need to fix IUSE.
Comment 4 Guilherme Amadio gentoo-dev 2010-12-06 19:07:56 UTC
The lines above that use user 'portage' are breaking all ebuilds for vim-plugins for me (Mac OS X prefix), because there is no portage user in the environment.

I'm commenting those lines as a work around, but I don't know if that's the right thing to do or not.
Comment 5 Guilherme Amadio gentoo-dev 2014-11-28 16:57:01 UTC
I believe this has been fixed a while ago. Should we close this bug?
Comment 6 Tim Harder gentoo-dev 2014-11-28 20:04:34 UTC
(In reply to Guilherme Amadio from comment #5)
> I believe this has been fixed a while ago. Should we close this bug?

Yep, I'll mark this as fixed.