[OE-core] [RFC PATCH] license: Ensure we find multilib packages also

Paul Eggleton paul.eggleton at linux.intel.com
Thu Sep 13 22:31:45 UTC 2012


On Thursday 13 September 2012 12:26:19 Saul Wold wrote:
> Make sure to find -package, this was causing a failure
> in the multi-lib build license generation during rootfs.
> 
> Signed-off-by: Saul Wold <sgw at linux.intel.com>
> ---
>  meta/classes/license.bbclass |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
> index 29fe938..b29067c 100644
> --- a/meta/classes/license.bbclass
> +++ b/meta/classes/license.bbclass
> @@ -88,7 +88,7 @@ license_create_manifest() {
>  	# list of installed packages is broken for deb
>  	for pkg in ${INSTALLED_PKGS}; do
>  		# not the best way to do this but licenses are not arch dependant iirc
> -		filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/${pkg}| head -1`
> +		filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/*${pkg}| head -1`
>  		pkged_pn="$(sed -n 's/^PN: //p' ${filename})"
> 
>  		# exclude locale recipes

Surely this could end up matching a the wrong file when one package name is a 
substring of another?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the Openembedded-core mailing list