Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure
@ 2017-06-09  9:45 Dengke Du
  2017-06-09  9:45 ` [PATCH 1/1] " Dengke Du
  0 siblings, 1 reply; 4+ messages in thread
From: Dengke Du @ 2017-06-09  9:45 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 4a7612c7a12b9a381fb8343ba9586272b889fc15:

  buildhistory: skip tests if GitPython module is missing (2017-06-07 16:00:49 +0100)

are available in the git repository at:

  https://github.com/DengkeDu/openembedded-core.git dengke/fix-archiver-configure-failed

Dengke Du (1):
  archiver.bbclass: add task do_prepare_recipe_sysroot before
    do_configure

 meta/classes/archiver.bbclass | 1 +
 1 file changed, 1 insertion(+)

-- 
2.8.1



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

* [PATCH 1/1] archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure
  2017-06-09  9:45 [PATCH 0/1] archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure Dengke Du
@ 2017-06-09  9:45 ` Dengke Du
  2017-06-09 16:38   ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Dengke Du @ 2017-06-09  9:45 UTC (permalink / raw)
  To: openembedded-core

When recipe inherit archiver.bbclass and enable:

    ARCHIVER_MODE[src] = "configured"

output errors:

    automake: command not found

This is because no recipe-sysroot-native directory, so there is no native
environment before executing do_configure, we can check it at the line 254
in archiver.bbclass:

    prefuncs = d.getVarFlag('do_configure', 'prefuncs')
    for func in (prefuncs or '').split():
        if func != "sysroot_cleansstate":
            bb.build.exec_func(func, d)
    bb.build.exec_func('do_configure', d)

So it is necessary to add the task do_prepare_recipe_sysroot before executing
the do_configure task.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 meta/classes/archiver.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 18c5b96..4775786 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -247,6 +247,7 @@ python do_ar_configured() {
                 bb.build.exec_func('do_kernel_configme', d)
             if bb.data.inherits_class('cmake', d):
                 bb.build.exec_func('do_generate_toolchain_file', d)
+            bb.build.exec_func('do_prepare_recipe_sysroot',d)
             prefuncs = d.getVarFlag('do_configure', 'prefuncs')
             for func in (prefuncs or '').split():
                 if func != "sysroot_cleansstate":
-- 
2.8.1



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

* Re: [PATCH 1/1] archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure
  2017-06-09  9:45 ` [PATCH 1/1] " Dengke Du
@ 2017-06-09 16:38   ` Burton, Ross
  2017-06-12  5:42     ` Dengke Du
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2017-06-09 16:38 UTC (permalink / raw)
  To: Dengke Du; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

On 9 June 2017 at 10:45, Dengke Du <dengke.du@windriver.com> wrote:

> When recipe inherit archiver.bbclass and enable:
>
>     ARCHIVER_MODE[src] = "configured"
>
> output errors:
>
>     automake: command not found
>

I think oe-core aa2240657b015d46e9ba4bcb6264709a82313d83 fixes this
already, can you verify?

Ross

[-- Attachment #2: Type: text/html, Size: 854 bytes --]

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

* Re: [PATCH 1/1] archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure
  2017-06-09 16:38   ` Burton, Ross
@ 2017-06-12  5:42     ` Dengke Du
  0 siblings, 0 replies; 4+ messages in thread
From: Dengke Du @ 2017-06-12  5:42 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

Thanks, that commit works, please ignore this patch.

On 2017年06月10日 00:38, Burton, Ross wrote:
>
> On 9 June 2017 at 10:45, Dengke Du <dengke.du@windriver.com 
> <mailto:dengke.du@windriver.com>> wrote:
>
>     When recipe inherit archiver.bbclass and enable:
>
>         ARCHIVER_MODE[src] = "configured"
>
>     output errors:
>
>         automake: command not found
>
>
> I think oe-core aa2240657b015d46e9ba4bcb6264709a82313d83 fixes this 
> already, can you verify?
>
> Ross


[-- Attachment #2: Type: text/html, Size: 1755 bytes --]

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

end of thread, other threads:[~2017-06-12  5:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-09  9:45 [PATCH 0/1] archiver.bbclass: add task do_prepare_recipe_sysroot before do_configure Dengke Du
2017-06-09  9:45 ` [PATCH 1/1] " Dengke Du
2017-06-09 16:38   ` Burton, Ross
2017-06-12  5:42     ` Dengke Du

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox