1 |
On 6/10/15 2:49 PM, Joakim Tjernlund wrote: |
2 |
> On Wed, 2015-06-10 at 14:06 -0400, Anthony G. Basile wrote: |
3 |
>> On 6/10/15 1:52 PM, Mike Gilbert wrote: |
4 |
>>> On Wed, Jun 10, 2015 at 12:44 PM, Joakim Tjernlund |
5 |
>>> <joakim.tjernlund@×××××××××.se> wrote: |
6 |
>>>> I wonder if it would be possible to use the script from sys-apps/getent(included below) |
7 |
>>>> to impl. getent in user.eclass instead of using glibc's getent? I cannot see any downside, is there one? |
8 |
>>>> |
9 |
>>> glibc's getent can get data from any NSS plugin (ie. LDAP, MySQL, |
10 |
>>> etc). Switching to use sys-apps/getent would mean that lookups would |
11 |
>>> only be performed against the local flat files. |
12 |
>>> |
13 |
>> I added sys-apps/getent for musl and did not expect it to be used by |
14 |
>> anything else. When I moved that script into sys-libs/musl, I masked |
15 |
>> getent: |
16 |
>> |
17 |
>> # /usr/portage/profiles/package.mask: |
18 |
>> # Anthony G. Basile <blueness@g.o> (14 May 2015) |
19 |
>> # No longer required by any packages in the tree. |
20 |
>> # Masked for removal in 30 days. |
21 |
>> |
22 |
>> If you want to keep it, we can remove the mask, but it does block |
23 |
>> against glibc and uclibc. |
24 |
>> |
25 |
> I think one would have to take the guts of the script and transform it into an egetent eclass |
26 |
> function. Your script has done the hard part already so it should be easy to mangle into an eclass |
27 |
> fkn. |
28 |
> Jocke |
29 |
To be clear, not mine, but from uclibc. |
30 |
|
31 |
-- |
32 |
Anthony G. Basile, Ph.D. |
33 |
Gentoo Linux Developer [Hardened] |
34 |
E-Mail : blueness@g.o |
35 |
GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA |
36 |
GnuPG ID : F52D4BBA |