All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] staging.bbclass: avoid staging native components for target sysroot
@ 2018-08-27  8:46 Chen Qi
  2018-08-27  8:46 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2018-08-27  8:46 UTC (permalink / raw)
  To: openembedded-core

*** BLURB HERE ***
The following changes since commit 87d3a9685dd9613e4f6718031d4ebd9344b01c47:

  bitbake: parse/ast: ensure saved event handlers really do get restored (2018-08-24 07:53:14 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/staging-native
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/staging-native

Chen Qi (1):
  staging.bbclass: avoid staging native components for target sysroot

 meta/classes/staging.bbclass | 3 +++
 1 file changed, 3 insertions(+)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] staging.bbclass: avoid staging native components for target sysroot
  2018-08-27  8:46 [PATCH 0/1] staging.bbclass: avoid staging native components for target sysroot Chen Qi
@ 2018-08-27  8:46 ` Chen Qi
  2018-09-06  6:41   ` ChenQi
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2018-08-27  8:46 UTC (permalink / raw)
  To: openembedded-core

In the staging_populate_sysroot_dir function, components are staged
by pkgarch matching. In case of x86-64 targets, it's possible that
the native components are also matched, and thus are expectedly installed.

The negative effect is at least unnecessary installation, and in some
cases is compilation error. For example, when using eSDK and we are trying
to cross compile some project in lib32 environment, the compilation will
fail.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/classes/staging.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 27b012e..1b9803a 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -198,6 +198,9 @@ def staging_populate_sysroot_dir(targetsysroot, nativesysroot, native, d):
             if manifest.endswith("-initial.populate_sysroot"):
                 # skip glibc-initial and libgcc-initial due to file overlap
                 continue
+            if not native and manifest.endswith("-native.populate_sysroot"):
+                # avoid native components to be installed into target sysroot
+                continue
             tmanifest = targetdir + "/" + os.path.basename(manifest)
             if os.path.exists(tmanifest):
                 continue
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] staging.bbclass: avoid staging native components for target sysroot
  2018-08-27  8:46 ` [PATCH 1/1] " Chen Qi
@ 2018-09-06  6:41   ` ChenQi
  0 siblings, 0 replies; 3+ messages in thread
From: ChenQi @ 2018-09-06  6:41 UTC (permalink / raw)
  To: openembedded-core

ping

On 08/27/2018 04:46 PM, Chen Qi wrote:
> In the staging_populate_sysroot_dir function, components are staged
> by pkgarch matching. In case of x86-64 targets, it's possible that
> the native components are also matched, and thus are expectedly installed.
>
> The negative effect is at least unnecessary installation, and in some
> cases is compilation error. For example, when using eSDK and we are trying
> to cross compile some project in lib32 environment, the compilation will
> fail.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   meta/classes/staging.bbclass | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
> index 27b012e..1b9803a 100644
> --- a/meta/classes/staging.bbclass
> +++ b/meta/classes/staging.bbclass
> @@ -198,6 +198,9 @@ def staging_populate_sysroot_dir(targetsysroot, nativesysroot, native, d):
>               if manifest.endswith("-initial.populate_sysroot"):
>                   # skip glibc-initial and libgcc-initial due to file overlap
>                   continue
> +            if not native and manifest.endswith("-native.populate_sysroot"):
> +                # avoid native components to be installed into target sysroot
> +                continue
>               tmanifest = targetdir + "/" + os.path.basename(manifest)
>               if os.path.exists(tmanifest):
>                   continue




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-06  6:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-27  8:46 [PATCH 0/1] staging.bbclass: avoid staging native components for target sysroot Chen Qi
2018-08-27  8:46 ` [PATCH 1/1] " Chen Qi
2018-09-06  6:41   ` ChenQi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.