I can't believe it's not getent.

Rob Landley rob at landley.net
Sat Jan 31 22:21:17 UTC 2009


On Saturday 31 January 2009 11:21:43 Mike Frysinger wrote:
> On Wednesday 28 January 2009 16:59:40 Rob Landley wrote:
> > My friend Mark is working on a project called Gentoo From Scratch (faking
> > a gentoo stage 1 environment by getting gentoo's portage to run on top of
> > a uClibc/busybox base system), and it turns out portage needs "getent",
> > which is a horrible gnu extension that ain't in SUSv4.
> >
> > Here's a small shell script that more or less implements it.  FYI.
>
> why are you reimplementing the wheel ?

You are _aware_ you're posting to the busybox mailing list, right?  
Reimplementing the wheel is sort of what we do here?  (To try to come up with 
better wheels?)

> there is already a getent replacement included with uClibc.

Good to know.  Possibly I didn't know about that because neither "make 
install" nor "make install_utils" actually put that on the target system, and 
thus I didn't know uClibc had one internally?  (I don't know _why_ uClibc has 
one internally, it seems a strange place for it.  However, I'd checked and 
busybox hadn't got one.  You'll notice I didn't post this message to the 
uClibc list.)

Seems a strange place for it.  What other unrelated command line utilities 
does this C library plan to develop its own versions of?  (If uClibc has a 
useradd implementation, that would save me some time.  Busybox just has 
adduser, which isn't what portage wants.  Different command line.  Oh well, 
I'm 2/3 done implementing a toybox version anyway.  THAT wheel 
reimplementation was started because of Bruce %*#(&% Perens made work on 
busybox painful for me for a couple years, and continues becuase I find it a 
cleaner design and prefer the infrastructure.)

I'll avoid posting new apps here in future.  Sorry to waste your time.

> -mike

Rob


More information about the busybox mailing list