[oe] [PATCH] gst-plugins: fixed pattern for meta package dependencies.

Phil Blundell pb at reciva.com
Thu May 21 15:47:03 UTC 2009


>  	for pkg in packages[1:]:
> -		if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count('dev') and not pkg.count( 'locale' ):
> +		if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-locale'):
>  			metapkg_rdepends.append(pkg)
>  	bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
>  	bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)

This kind of matching on the package name is a bit unwholesome in
general.  It would be better to handle these excluded packages by
maintaining them in the blacklist at the point where they're actually
created, rather than trying to recreate that information again after the
fact.

For the -dev ones, that's easy: you can just add a hook function that
operates on the local blacklist variable.  For the locale things it
might be slightly more complicated since that logic is in
package.bbclass, but I think it should still be relatively
straightforward to get it to expose a list of the locale packages that
it's generated.

p.






More information about the Openembedded-devel mailing list