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
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.
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(-)