[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: moving archdetect functionality to libd-i



On Tue, Jul 05, 2005 at 12:52:56AM +0100, Colin Watson wrote:
> On Mon, Jul 04, 2005 at 07:56:34PM +0200, Thiemo Seufer wrote:
> > Colin Watson wrote:
> > > I've been playing around with a .deb of kbd-chooser for a project at
> > > work [1]. kbd-chooser calls out to archdetect to figure out the
> > > subarchitecture, and modifies its behaviour based on that, so I need to
> > > have an archdetect equivalent in the installed system. I don't like the
> > > idea of creating yet another .deb just for this, though.
> > > 
> > > The situation seems pretty similar to that of mapdevfs: we have the guts
> > > in libdebian-installer, and a stub program wrapping those guts. Plus, in
> > > this case, there's no size issue with moving things into libd-i because
> > > every image that contains libd-i also contains archdetect.
> > 
> > It even saves some kB, because it is one crt*.o instance set less
> > linked in.
> 
> I'm not sure about that actually; we'd still need the archdetect binary
> for all the shell programs that call it.

Actually, I was wrong; it saved about 2KB from the combination of libd-i
and archdetect. I assume this was because some of the symbols in
archdetect were already referenced elsewhere in libd-i, or something
along those lines.

Anyway, I've committed this change to libdebian-installer, and the
corresponding hw-detect change will follow as soon as ftp-master is up
again so that I can upload libd-i.

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]



Reply to: