On 6/10/15 2:49 PM, Joakim Tjernlund wrote:
On Wed, 2015-06-10 at 14:06 -0400, Anthony G. Basile wrote:
On 6/10/15 1:52 PM, Mike Gilbert wrote:
On Wed, Jun 10, 2015 at 12:44 PM, Joakim Tjernlund
<joakim.tjernl...@transmode.se> wrote:
I wonder if it would be possible to use the script from 
sys-apps/getent(included below)
to impl. getent in user.eclass instead of using glibc's getent? I cannot see 
any downside, is there one?

glibc's getent can get data from any NSS plugin (ie. LDAP, MySQL,
etc). Switching to use sys-apps/getent would mean that lookups would
only be performed against the local flat files.

I added sys-apps/getent for musl and did not expect it to be used by
anything else.   When I moved that script into sys-libs/musl, I masked
getent:

# /usr/portage/profiles/package.mask:
# Anthony G. Basile <bluen...@gentoo.org> (14 May 2015)
# No longer required by any packages in the tree.
# Masked for removal in 30 days.

If you want to keep it, we can remove the mask, but it does block
against glibc and uclibc.

I think one would have to take the guts of the script and transform it into an 
egetent eclass
function. Your script has done the hard part already so it should be easy to 
mangle into an eclass
fkn.
        Jocke
To be clear, not mine, but from uclibc.

--
Anthony G. Basile, Ph.D.
Gentoo Linux Developer [Hardened]
E-Mail    : bluen...@gentoo.org
GnuPG FP  : 1FED FAD9 D82C 52A5 3BAB  DC79 9384 FA6E F52D 4BBA
GnuPG ID  : F52D4BBA


Reply via email to