Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257945 - eutils.eclass egetent doesn't support OS X 10.5 [PATCH INCLUDED]
Summary: eutils.eclass egetent doesn't support OS X 10.5 [PATCH INCLUDED]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 21:33 UTC by Armando Di Cianno
Modified: 2009-02-16 14:19 UTC (History)
1 user (show)

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


Attachments
Patch for eutils.eclass (eutils-darwin9-getent-dscl.patch,948 bytes, patch)
2009-02-06 21:35 UTC, Armando Di Cianno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Armando Di Cianno 2009-02-06 21:33:50 UTC
I run my prefix install at /Library/Gentoo, which offers an amount of portability when copying an install between different computers.  At the same time, I'm reviving my eselect-launchdagents code to support both system, as well as user level, support.

I was stumped, since groups were not being created.  Oddly, eutils.eclass already has new 10.5 support for enewgroup and enewuser, but egetent, which both of those methods rely on, was not updated.

With the patch, now groups and users can be made on OS X, which is key for tighter, system-level integration.

Reproducible: Always

Steps to Reproduce:
1. sudo emerge -1 mailbase # (a small package that creates groups and users; you need to keyword it x86-macos


Actual Results:  
Too lazy to re-break my system, and get the output. ;-)

Expected Results:  
Users and groups should be able to be created on OS X, if running as root or under sudo.

Patch coming.
Comment 1 Armando Di Cianno 2009-02-06 21:35:06 UTC
Created attachment 181195 [details, diff]
Patch for eutils.eclass

Adds darwin9 / 10.5 support to egetent, without breaking <10.5.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-07 15:39:40 UTC
Ah, I reviewed this and it looks like it is a gentoo linux bug because eutils.eclass in gentoo-x86 has the same code. (Not local to prefix) - Action taken next week.
Comment 3 Fabian Groffen gentoo-dev 2009-02-15 20:05:30 UTC
apart from the ewarn it looks ok to me for mainline.
Comment 4 Fabian Groffen gentoo-dev 2009-02-15 20:09:44 UTC
applied in gentoo-x86, thanks, should flow into the Prefix tree within a few days.
Comment 5 nietonfir 2009-02-16 14:19:58 UTC
works great, thx a lot for the patch!