Re: [poky] Re: Devshell working?

From: Richard Purdie <richard@openedhand.com>
Date: Wed Jul 18 2007 - 19:12:06 EDT

On Wed, 2007-07-18 at 17:01 -0500, Matt Hoosier wrote:
> > This is something that needs work. The problem is that there is no easy
> > way to setup the package depends/recommends to make this work properly.
> > Properly would mean that:
> >
> > 1. Once you selected the locale(s) you want the corresponding locale
> > packages for any package installed in the image would be installed.
> >
> > 2. If you subsequently add package foo to an image via "ipkg install",
> > it would add the corresponding foo locale packages.
> >
> > but this simply isn't possible with standard debian tools like dpkg and
> > apt.
> >
> > Implementing 1 in the build system is straightforward, you'd just need
> > to have poky look through the IMAGE_LINGUAS variables and install any
> > matching packages that are already installed in the image.
> >
> > There are other ways you could do this such as setting up the foo-locale
> > package to Recommends: the appropriate foo-locale-xyz packages as set by
> > the IMAGE_LINGUAS variable. The problem with this approach is that if
> > you change the locale, you have to rebuild the packages.
> >
> > I guess you could script 2 inside an image too as an option to run after
> > any "ipkg install" operation too...
> >
>
> Hmm, okay. Would it be a difficult hack to alter some build class to
> always bundle every locale physically into the runtime libs (or -data,
> which the runtime lib would name as a hard dependency) package?
> Realistically, I'd end up installing all those files piecemeal anyway.

No, there are some locale splitting functions in package.bbclass and it
should be simple to cause it to put all the data in a single package and
add a hard dependency on that package.

Regards,

Richard

-- 
To unsubscribe send a mail to poky+unsubscribe@o-hand.com
Received on Thu, 19 Jul 2007 00:12:06 +0100

This archive was generated by hypermail 2.1.8 : Wed Jul 18 2007 - 20:00:07 EDT