Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115580 - games.eclass: remove an ${USERLAND} check, and improve portability not using getent
Summary: games.eclass: remove an ${USERLAND} check, and improve portability not using ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 12:12 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-07-19 18:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Eclass patch (games-eclass.patch,1.68 KB, patch)
2005-12-14 12:13 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-14 12:12:54 UTC
The attached patch makes games eclass use the new function in portability  
eclass to check if a given user has login disabled (it checks  
for /usr/bin/false and (/usr)/sbin/nologin), and get rid of ${USERLAND} check 
for giving instructions about adding a group to the use, instead it uses 
${CHOST}. Finally it uses -0 instead of --null as xargs from bsd does not 
support long options. 
 
HTH, 
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-14 12:13:29 UTC
Created attachment 74755 [details, diff]
Eclass patch
Comment 2 SpanKY gentoo-dev 2005-12-14 12:15:43 UTC
why cant the CHOST just be a generic bsd match ... i imagine you bsd slackers
all just copy from each other for user management
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-14 12:23:32 UTC
No, if you look at eutils and portability you'll see that NetBSD and OpenBSD 
does not use pw at all. 
 
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-10 05:01:12 UTC
games herd? :)
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-02-10 13:07:31 UTC
Well, is-login-disabled is in the eutils or portability eclass?  Also, you never answered SpanKY's question.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-10 13:33:52 UTC
Which SpanKY question? the one in comment #2 is answered in #3.
And the function has to be get through eutils (although it's in portability) because of the interdependency of functions that cannot be moved.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-02-10 13:58:05 UTC
OK... it all looks good to me, then... guys?
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-14 10:50:38 UTC
Knock, knock?
Comment 9 SpanKY gentoo-dev 2006-04-15 10:18:34 UTC
i added the first and last hunks ... the middle hunk is wrong
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-15 10:27:04 UTC
Why it's wrong? the is-login-disabled function from portability works as intended, or there's something else?
Comment 11 SpanKY gentoo-dev 2006-04-15 11:18:59 UTC
instead of narrowing in on pieces of code, why dont you look at the surrounding bits in the 2nd hunk
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-19 18:58:51 UTC
Considering fixed, that part of the code is no use to us anyway, seems like more a workaround for old created games user/group.
At the very least, it will be fixed for good when a better implementation for user/group access is in place.