* [PATCH 0/1] Fix for build lttng-modules build error
@ 2012-12-14 5:27 tom.zanussi
2012-12-14 5:27 ` [PATCH 1/1] module.bbclass: make sure do_make_scripts() executes after do_patch() tom.zanussi
0 siblings, 1 reply; 3+ messages in thread
From: tom.zanussi @ 2012-12-14 5:27 UTC (permalink / raw)
To: openembedded-core, bruce.ashfield
From: Tom Zanussi <tom.zanussi@intel.com>
This is an untested patch for a build error seen on the Yocto autobuilder.
I'm unable to reproduce the problem locally, so can't say whether it
actually fixes the problem or not - hoping it can be tested under mut
first to see if it works.
Basically the problem is that do_make_scripts with lttng-modules fails
because it can't cd into the workdir:
/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp/run.do_make_scripts.27949: line 113: cd: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/git: No such file or directory
Looking at the build I see that that directory is actually there, but
it obviously wasn't when do_make_scripts() was run. So apparently
we have a race and in the failed case the unpack happened after
do_make_scripts() instead of before as expected. So the patch makes
sure that doesn't happen
The following changes since commit da598d4f0fcf6faa62055084a51d70d735399d33:
eglibc: fix checksums of fetched patches (2012-12-13 18:02:21 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib.git tzanussi/module-do-make-scripts-fix
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=tzanussi/module-do-make-scripts-fix
Tom Zanussi (1):
module.bbclass: make sure do_make_scripts() executes after do_patch()
meta/classes/module.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] module.bbclass: make sure do_make_scripts() executes after do_patch()
2012-12-14 5:27 [PATCH 0/1] Fix for build lttng-modules build error tom.zanussi
@ 2012-12-14 5:27 ` tom.zanussi
2012-12-14 5:31 ` Bruce Ashfield
0 siblings, 1 reply; 3+ messages in thread
From: tom.zanussi @ 2012-12-14 5:27 UTC (permalink / raw)
To: openembedded-core, bruce.ashfield
From: Tom Zanussi <tom.zanussi@intel.com>
If do_make_scripts() executes before do_unpack()/do_patch(), the build
fails because it can't cd into the workdir of a recipe using this
class, so make sure do_make_scripts() doesn't run before the package
has been unpacked and patched.
Fixes [YOCTO #3589].
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
meta/classes/module.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index e8d32eb..ebb0880 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -3,7 +3,7 @@ DEPENDS += "virtual/kernel"
inherit module-base
-addtask make_scripts before do_compile
+addtask make_scripts after do_patch before do_compile
do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
do_make_scripts[deptask] = "do_populate_sysroot"
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] module.bbclass: make sure do_make_scripts() executes after do_patch()
2012-12-14 5:27 ` [PATCH 1/1] module.bbclass: make sure do_make_scripts() executes after do_patch() tom.zanussi
@ 2012-12-14 5:31 ` Bruce Ashfield
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2012-12-14 5:31 UTC (permalink / raw)
To: tom.zanussi; +Cc: openembedded-core
On 12-12-14 12:27 AM, tom.zanussi@intel.com wrote:
> From: Tom Zanussi<tom.zanussi@intel.com>
>
> If do_make_scripts() executes before do_unpack()/do_patch(), the build
> fails because it can't cd into the workdir of a recipe using this
> class, so make sure do_make_scripts() doesn't run before the package
> has been unpacked and patched.
I've never seen the problem myself, but having a more tightly defined
ordering for the task is a good thing in my books.
Since you aren't breaking the working use case, I have no objection.
So I'll throw out a fancy: Reviewed-by: Bruce Ashfield
<bruce.ashfield@windriver.com>
Cheers,
Bruce
>
> Fixes [YOCTO #3589].
>
> Signed-off-by: Tom Zanussi<tom.zanussi@intel.com>
> ---
> meta/classes/module.bbclass | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
> index e8d32eb..ebb0880 100644
> --- a/meta/classes/module.bbclass
> +++ b/meta/classes/module.bbclass
> @@ -3,7 +3,7 @@ DEPENDS += "virtual/kernel"
>
> inherit module-base
>
> -addtask make_scripts before do_compile
> +addtask make_scripts after do_patch before do_compile
> do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
> do_make_scripts[deptask] = "do_populate_sysroot"
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-14 8:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-14 5:27 [PATCH 0/1] Fix for build lttng-modules build error tom.zanussi
2012-12-14 5:27 ` [PATCH 1/1] module.bbclass: make sure do_make_scripts() executes after do_patch() tom.zanussi
2012-12-14 5:31 ` Bruce Ashfield
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.