[OE-core] [PATCH 4/6 v2] package_rpm: Update the way the multilib package names are translated

Mark Hatle mark.hatle at windriver.com
Fri Dec 7 21:00:06 UTC 2012


Fix a minor mistake in the original patch...

Original:
+	sdk_archs=${SDK_PACKAGE_ARCH}

new:
+	sdk_archs="${SDK_PACKAGE_ARCHS}"

Somehow I must have cleaned up something at the last minute and forgotten to 
verify the SDK_PACKAGE_ARCHS worked correctly.  Not only was there a typo, but 
missing ".  Fixed now and verified locally.

--Mark

On 12/7/12 3:12 PM, Mark Hatle wrote:
> The variable MULTILIB_PACKAGE_ARCHS has been removed in favor of a
> repurposed MULTILIB_PREFIX_LIST.  The format of this item is now
> <libid>:<arch>:<arch1>:...:<archN>.  This ensures that we can correctly
> translate the libid to one of the supported archs in a tri-lib system.
>
> All of the users of MULTILIB_PREFIX_LIST and MULTILIB_PACKAGE_ARCHS have
> been modified accordingly.
>
> Also change the way attempted packages are installed, verify the package
> exists in the translate functions, then perform the install in one single
> operation.  This results in a significantly faster install time.
>
> Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
> ---
>   meta/classes/package_rpm.bbclass      |  167 ++++++++++++++++++++++++++++++---
>   meta/classes/populate_sdk_rpm.bbclass |   26 ++++--
>   meta/classes/rootfs_rpm.bbclass       |   47 +++++-----
>   3 files changed, 195 insertions(+), 45 deletions(-)
>
> diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
> index 4b81b68..091880e 100644
> --- a/meta/classes/package_rpm.bbclass
> +++ b/meta/classes/package_rpm.bbclass
> @@ -24,11 +24,25 @@ package_update_index_rpm () {
>   		return
>   	fi
>
> -	base_archs="`echo ${PACKAGE_ARCHS} | sed 's/-/_/g'`"
> -	ml_archs="`echo ${MULTILIB_PACKAGE_ARCHS} | sed 's/-/_/g'`"
> -	sdk_archs="`echo ${SDK_PACKAGE_ARCHS} | sed 's/-/_/g'`"
> +	sdk_archs="${SDK_PACKAGE_ARCHS}"
> +	sdk_archs=${sdk_archs//-/_}
> +
....




More information about the Openembedded-core mailing list