* [PATCH 0/2] Serious regression in multiprocess_exec()
@ 2014-08-28 15:11 Peter Kjellerstedt
2014-08-28 15:11 ` [PATCH 1/2] lib/oe/utils: Make multiprocess_exec() return anything Peter Kjellerstedt
2014-08-28 15:11 ` [PATCH 2/2] package: Correct two typos in a comment Peter Kjellerstedt
0 siblings, 2 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2014-08-28 15:11 UTC (permalink / raw)
To: openembedded-core
This fixes a serious regression in multiprocess_exec() which prevented
it from returning anything. This caused package_do_filedeps() in
package.bbclass to no longer add any runtime dependencies based on
what oe.package.filedeprunner() was supposed to return...
Since the change to multiprocess_exec() will _not_ trigger do_package
to be rerun for the affected packages, I have also included a small
typo correction to a comment in do_package so its sstate is
invalidated.
The following changes since commit c16795477ea7e2159b5d3808268912b572887e2d:
qemu: add PACKAGECONFIG for numa (2014-08-27 12:13:38 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib pkj/multiprocess_exec
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/multiprocess_exec
Peter Kjellerstedt (2):
lib/oe/utils: Make multiprocess_exec() return anything
package: Correct two typos in a comment
meta/classes/package.bbclass | 6 +++---
meta/lib/oe/utils.py | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
--
1.9.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] lib/oe/utils: Make multiprocess_exec() return anything
2014-08-28 15:11 [PATCH 0/2] Serious regression in multiprocess_exec() Peter Kjellerstedt
@ 2014-08-28 15:11 ` Peter Kjellerstedt
2014-08-28 15:11 ` [PATCH 2/2] package: Correct two typos in a comment Peter Kjellerstedt
1 sibling, 0 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2014-08-28 15:11 UTC (permalink / raw)
To: openembedded-core
The variable "results" was accidentally used for multiple different
things at the same time, which unintentionally discarded anything that
was supposed to be returned from the function...
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta/lib/oe/utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 92e21a4..3544256 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -167,11 +167,11 @@ def multiprocess_exec(commands, function):
imap = pool.imap(function, commands)
try:
- results = list(imap)
+ res = list(imap)
pool.close()
pool.join()
results = []
- for result in results:
+ for result in res:
if result is not None:
results.append(result)
return results
--
1.9.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] package: Correct two typos in a comment
2014-08-28 15:11 [PATCH 0/2] Serious regression in multiprocess_exec() Peter Kjellerstedt
2014-08-28 15:11 ` [PATCH 1/2] lib/oe/utils: Make multiprocess_exec() return anything Peter Kjellerstedt
@ 2014-08-28 15:11 ` Peter Kjellerstedt
1 sibling, 0 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2014-08-28 15:11 UTC (permalink / raw)
To: openembedded-core
This quite coincidentally invalidates the sstate for do_package which
is needed due to the correction of oe.utils.multiprocess_exec().
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta/classes/package.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0ff5370..a877d28 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1930,9 +1930,9 @@ python do_package () {
# Optimisations
###########################################################################
- # Contunually rexpanding complex expressions is inefficient, particularly when
- # we write to the datastore and invalidate the expansion cache. This code
- # pre-expands some frequently used variables
+ # Continually expanding complex expressions is inefficient, particularly
+ # when we write to the datastore and invalidate the expansion cache. This
+ # code pre-expands some frequently used variables
def expandVar(x, d):
d.setVar(x, d.getVar(x, True))
--
1.9.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-28 15:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 15:11 [PATCH 0/2] Serious regression in multiprocess_exec() Peter Kjellerstedt
2014-08-28 15:11 ` [PATCH 1/2] lib/oe/utils: Make multiprocess_exec() return anything Peter Kjellerstedt
2014-08-28 15:11 ` [PATCH 2/2] package: Correct two typos in a comment Peter Kjellerstedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox