[oe] [PATCH 3/6] package.bbclass, package_ipk.bbclass: add dynamic depends on locale packages (ipk specific)

Tom Rini trini at kernel.crashing.org
Fri Feb 13 03:29:18 UTC 2009


On Thu, Feb 12, 2009 at 11:36:50PM +0100, Koen Kooi wrote:
> On 12-02-09 19:38, Mike (mwester) wrote:
>> Phil Blundell wrote:
>>> On Thu, 2009-02-12 at 14:38 -0200, Otavio Salvador wrote:
>>>> +
>>>> +		if pkgname.find('-locale-') == -1:
>>>> +			rdepends.append('%s-locale*' % pkgname)
>>>> +
>>> This looks like it will add locale dependencies to all the subpackages
>>> (e.g. foo-doc, foo-dev and the like) as well as the main "foo" package,
>>> which is a bit different to how the old code used to work.  But I guess
>>> that's harmless enough: the worst effect will be to bloat the Packages
>>> file a bit, and I doubt anybody will care too much.  So, thumbs up from
>>> me.
>>
>> How much bloat?  Opkg already trips the OOM killer on the NSLU2 (32MB of
>> RAM) when it loads the current Packages file and then tries to do
>> something; we can work around it for now, but if this doubles the size
>> in-memory, we may simply not have enough RAM to do whatever it is that
>> opkg does with all that in-memory.
>>
>> I have grave concerns over anything that adds unnecessary entries that
>> cannot be turned off.
>
> You can make them approx 50% smaller by doing:
>
> echo -n "Stripping source lines from Package files"
> for i in `find .. -name Packages` ; do grep -v ^Source: $i|gzip  
> -c9>$i.gz ;gunzip -c $i.gz>$i ; touch $i.sig ; done

How hard would it be to make that happen more easily, with the normal
tools?  Perhaps some flag to generate just the minimum information?

-- 
Tom Rini




More information about the Openembedded-devel mailing list