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

Koen Kooi k.kooi at student.utwente.nl
Thu Feb 12 22:36:50 UTC 2009


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

And I have devices with 8MB ram that run opkg, so I echo Mike's comments :)

regards,

Koen





More information about the Openembedded-devel mailing list