Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687568 - user.eclass: eget* are broken on Darwin
Summary: user.eclass: eget* are broken on Darwin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-07 13:53 UTC by Michał Górny
Modified: 2019-06-20 08:17 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-06-07 13:53:12 UTC
I've asked someone to test egetent, and the results are pasted below.  Apparently egethome and egetshell make plain-wrong assumptions as to the output format, and therefore output empty strings.

$ egetent passwd nnn
uuuuuu      UniqueID = (
    nnn
)

$ egetent passwd uuuuuu
RecordName: uuuuuu com.apple.idms.appleid.prd.SOME-UUID

$ egetent group nn
ggggg       PrimaryGroupID = (
    nn
)

$ egetent group ggggg
RecordName: ggggg BUILTIN\Users

Where: uuuuuu is username, ggggg is group name, nn/nnn are GID/UID
Comment 1 Fabian Groffen gentoo-dev 2019-06-07 13:57:57 UTC
this probably doesn't work anymore, as those funcs date from darwin7/8 era

they should probably be dropped, I thought there was already dscl code, but also that got deprecated, and really noone should be using those functions for more than a decade (because Prefix is only unprivileged, and Gentoo for Mac OS X is long dead/discontinued)

I would advise against spending time to fix this/sort this out.
Comment 2 Larry the Git Cow gentoo-dev 2019-06-20 08:17:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa32756df58d975a26580393d34cda89c8ea6de2

commit aa32756df58d975a26580393d34cda89c8ea6de2
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-06-08 14:30:15 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-06-20 08:16:32 +0000

    user.eclass: Remove dead/broken Darwin support
    
    Closes: https://bugs.gentoo.org/687568
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/user.eclass | 54 +++---------------------------------------------------
 1 file changed, 3 insertions(+), 51 deletions(-)