From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 197CA138CDB for ; Wed, 10 Jun 2015 18:50:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A0449E08CE; Wed, 10 Jun 2015 18:49:54 +0000 (UTC) Received: from smtp.transmode.se (smtp.transmode.se [31.15.61.139]) by pigeon.gentoo.org (Postfix) with ESMTP id B6CBAE08BB for ; Wed, 10 Jun 2015 18:49:48 +0000 (UTC) Received: from exch1.transmode.se (exch1.transmode.se [192.168.201.16]) by smtp.transmode.se (Postfix) with ESMTP id 475C7118707D for ; Wed, 10 Jun 2015 20:49:47 +0200 (CEST) Received: from exch2.transmode.se (192.168.203.24) by exch1.transmode.se (192.168.201.16) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Wed, 10 Jun 2015 20:49:47 +0200 Received: from exch2.transmode.se ([fe80::cc9b:a53e:e206:26bc]) by exch2.transmode.se ([fe80::cc9b:a53e:e206:26bc%17]) with mapi id 15.00.1076.000; Wed, 10 Jun 2015 20:49:47 +0200 From: Joakim Tjernlund To: "gentoo-dev@lists.gentoo.org" Subject: Re: [gentoo-dev] Impl. egetent in user.eclass using script from sys-apps/getent? Thread-Topic: [gentoo-dev] Impl. egetent in user.eclass using script from sys-apps/getent? Thread-Index: AQHQo5yxFoOPFau4oEeujt2rNpcrE52l45oAgAAD2wCAAAw7AA== Date: Wed, 10 Jun 2015 18:49:46 +0000 Message-ID: <1433962186.10355.179.camel@transmode.se> References: <1433954657.10355.175.camel@transmode.se> <55787C88.50407@gentoo.org> In-Reply-To: <55787C88.50407@gentoo.org> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.17.2 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.200.4] Content-Type: text/plain; charset="iso-8859-15" Content-ID: <28B2A6B27E5F5848AD0A08B8BFDFE267@transmode.com> Content-Transfer-Encoding: quoted-printable Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Archives-Salt: ac99254c-fe98-4fd6-b937-9b3777d4d37b X-Archives-Hash: a4a14774c1cfb86c1d88815bc47bbda4 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 > > wrote: > > > I wonder if it would be possible to use the script from sys-apps/gete= nt(included below) > > > to impl. getent in user.eclass instead of using glibc's getent? I can= not see any downside, is there one? > > >=20 > > 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. > >=20 >=20 > I added sys-apps/getent for musl and did not expect it to be used by=20 > anything else. When I moved that script into sys-libs/musl, I masked=20 > getent: >=20 > # /usr/portage/profiles/package.mask: > # Anthony G. Basile (14 May 2015) > # No longer required by any packages in the tree. > # Masked for removal in 30 days. >=20 > If you want to keep it, we can remove the mask, but it does block=20 > against glibc and uclibc. >=20 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 t= o mangle into an eclass fkn. Jocke=