From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] psplash: Add mising commands module import.
Date: Mon, 05 Mar 2012 22:48:31 +0000 [thread overview]
Message-ID: <2264127.4aVO04txSy@helios> (raw)
In-Reply-To: <1330986694-28199-1-git-send-email-tworaz666@gmail.com>
On Monday 05 March 2012 23:31:34 Peter Tworek wrote:
> Python commands module is used in the recipe, but never imported.
> This leads to build errors like:
>
> NameError: global name 'commands' is not defined
>
> ERROR: The stack trace of python calls that resulted in this
> exception/failure was: ERROR: File "do_compile", line 24, in <module>
> ERROR:
> ERROR: File "do_compile", line 11, in do_compile
> ERROR:
> ERROR: The code that was being executed was:
> ERROR: 0020: bb.build.exec_func("oe_runmake", d)
> ERROR: 0021: shutil.copyfile("psplash", outputfile)
> ERROR: 0022:
> ERROR: 0023:
> ERROR: *** 0024:do_compile(d)
> ERROR: 0025:
> ERROR: (file: 'do_compile', lineno: 24, function: <module>)
> ERROR: 0007: localfiles = d.getVar('SPLASH_LOCALPATHS',
> True).split() ERROR: 0008: outputfiles = d.getVar('SPLASH_INSTALL',
> True).split() ERROR: 0009: for localfile, outputfile in
> zip(localfiles, outputfiles): ERROR: 0010: if
> localfile.endswith(".png"):
> ERROR: *** 0011: outp =
> commands.getstatusoutput('./make-image-header.sh %s POKY' % localfile)
> ERROR: 0012: print(outp[1])
> ERROR: 0013: fbase =
> os.path.splitext(os.path.basename(localfile))[0] ERROR: 0014:
> shutil.copyfile("%s-img.h" % fbase, destfile) ERROR: 0015:
> else:
>
> Signed-off-by: Peter Tworek <tworaz666@gmail.com>
> ---
> meta/recipes-core/psplash/psplash_git.bb | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-core/psplash/psplash_git.bb
> b/meta/recipes-core/psplash/psplash_git.bb index 42ea615..bd405f9 100644
> --- a/meta/recipes-core/psplash/psplash_git.bb
> +++ b/meta/recipes-core/psplash/psplash_git.bb
> @@ -68,7 +68,7 @@ S = "${WORKDIR}/git"
> inherit autotools pkgconfig update-rc.d
>
> python do_compile () {
> - import shutil
> + import shutil, commands
>
> # Build a separate executable for each splash image
> destfile = "%s/psplash-poky-img.h" % d.getVar('S', True)
Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-03-05 22:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-05 22:31 [PATCH] psplash: Add mising commands module import Peter Tworek
2012-03-05 22:48 ` Paul Eggleton [this message]
2012-03-12 21:12 ` Saul Wold
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=2264127.4aVO04txSy@helios \
--to=paul.eggleton@linux.intel.com \
--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