Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [CONSOLIDATED PULL [v2] 10/14] opkg: Add the condition for the content of arch.conf when enable multilib
Date: Tue, 10 Apr 2012 13:16:37 +0100	[thread overview]
Message-ID: <1334060197.6861.65.camel@ted> (raw)
In-Reply-To: <d4d2c170055d8413d0cc0e597e714895b35f8b87.1334042473.git.sgw@linux.intel.com>

On Tue, 2012-04-10 at 00:26 -0700, Saul Wold wrote:
> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
> 
> After successfully installed some lib32 multilib packages into the
> x86-64 image, we just found that the file content of /var/lib/opkg/status in
> rootfs changed after the very 1st boot, many lib32 related packages information
> are missing in that file.
> 
> The missing arch "x86" in arch.conf cause the above problem. Adding the
> condition for the content of arch.conf when enable multilib. If build
> multilib image, "ALL_MULTILIB_PACKAGE_ARCHS" will be used instead of
> "PACKAGE_ARCHS".
> 
> [YOCTO #1522]
> 
> Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
> ---
>  meta/recipes-devtools/opkg/opkg-config-base_1.0.bb |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-devtools/opkg/opkg-config-base_1.0.bb b/meta/recipes-devtools/opkg/opkg-config-base_1.0.bb
> index 3a559cb..f37b2db 100644
> --- a/meta/recipes-devtools/opkg/opkg-config-base_1.0.bb
> +++ b/meta/recipes-devtools/opkg/opkg-config-base_1.0.bb
> @@ -9,7 +9,12 @@ do_compile() {
>  	archconf=${S}/${sysconfdir}/opkg/arch.conf
>  
>  	rm -f $archconf
> -	ipkgarchs="${PACKAGE_ARCHS}"
> +	multilibs="${@d.getVar('MULTILIBS',True)}"
> +	if [ "X${multilibs}"  == "XNone" ]; then
> +		ipkgarchs="${PACKAGE_ARCHS}"
> +	else
> +		ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}"
> +	fi
>  	priority=1
>  	for arch in $ipkgarchs; do 
>  		echo "arch $arch $priority" >> $archconf

I've taken this but is there any reason we can't just use
${ALL_MULTILIB_PACKAGE_ARCHS} in all cases?

Cheers,

Richard




  reply	other threads:[~2012-04-10 12:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-10  7:26 [CONSOLIDATED PULL [v2] 00/14] Updated with more Fixes Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 01/14] create-pull-request: Assume remote branch from local branch Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 02/14] mesa-common: package gl.pc in libgl-dev Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 03/14] shadow-native: disable logging to syslog Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 04/14] qemu: Fix gl failure from 64b target on 32b host Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 05/14] package.bbclass: needs_ldconfig from linux_so is needed in global namespace Saul Wold
2012-04-10 12:17   ` Richard Purdie
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 06/14] grub-efi: Include GPT partition EXT FS support Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 07/14] git 1.7.7: remove perl.mak before compile Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 08/14] meta-toolchain: runqemu falied on FC16/Opensuse12.1 x86_64 Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 09/14] adt-installer: Fixed ppc kernel naming Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 10/14] opkg: Add the condition for the content of arch.conf when enable multilib Saul Wold
2012-04-10 12:16   ` Richard Purdie [this message]
2012-04-10 12:20   ` Richard Purdie
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 11/14] gdb: add --with-libexpat-prefix Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 12/14] at: Fix origin location of install pam.conf from from ${P} -> ${BP} Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 13/14] syslinux: Update distro-tracking fields Saul Wold
2012-04-10  7:26 ` [CONSOLIDATED PULL [v2] 14/14] hello-mod: Move hello-mod from meta to meta-skeleton Saul Wold
2012-04-10 12:31 ` [CONSOLIDATED PULL [v2] 00/14] Updated with more Fixes Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1334060197.6861.65.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox