Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] package.py: log rpmdeps call
Date: Sun, 23 Feb 2014 10:07:53 +0100	[thread overview]
Message-ID: <20140223090753.GS3854@jama> (raw)
In-Reply-To: <1392726422-6634-1-git-send-email-Martin.Jansa@gmail.com>

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

On Tue, Feb 18, 2014 at 01:27:02PM +0100, Martin Jansa wrote:
> * I've noticed errors like this in log.do_package:
> 
>   DEBUG: Executing python function package_do_filedeps
>   sh: 1: Syntax error: "(" unexpected
>   sh: 1: Syntax error: "(" unexpected
>   DEBUG: Python function package_do_filedeps finished
> 
>   which are actually caused by some filenames included in package
>   containing '()' characters
> 
>   Maybe we should change meta/classes/package.bbclass to
>   fail when some filedeprunner call fails like this and fix
>   filedeprunner to escape '()' and other possibly dangerous chars
>   it's called like this:
>   processed = list(pool.imap(oe.package.filedeprunner, pkglist))

Please don't merge this one yet, It's possible that it's causing
ValueError: insecure string pickle:
http://lists.openembedded.org/pipermail/openembedded-core/2014-February/089805.html

> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta/lib/oe/package.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
> index 9a0ddb8..1f78a8d 100644
> --- a/meta/lib/oe/package.py
> +++ b/meta/lib/oe/package.py
> @@ -89,7 +89,9 @@ def filedeprunner(arg):
>  
>          return provides, requires
>  
> -    dep_pipe = os.popen(rpmdeps + " " + " ".join(pkgfiles))
> +    rpmdepscmd = rpmdeps + " " + " ".join(pkgfiles)
> +    bb.debug(1, "runrpmdeps: %s" % rpmdepscmd)
> +    dep_pipe = os.popen(rpmdepscmd)
>  
>      provides, requires = process_deps(dep_pipe, pkg, pkgdest, provides, requires)
>  
> -- 
> 1.8.5.3
> 

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

      parent reply	other threads:[~2014-02-23  9:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18 12:27 [PATCH] package.py: log rpmdeps call Martin Jansa
2014-02-18 21:09 ` Chris Larson
2014-02-23 10:44   ` [RFC][PATCH] package.py: use subprocess.Popen for " Martin Jansa
2014-02-23  9:07 ` Martin Jansa [this message]

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=20140223090753.GS3854@jama \
    --to=martin.jansa@gmail.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