All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurentiu Palcu <laurentiu.palcu@intel.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v2 1/3] qemu.bbclass: add qemu_run_binary() function
Date: Thu, 20 Dec 2012 16:59:20 +0200	[thread overview]
Message-ID: <50D327C8.4040703@intel.com> (raw)
In-Reply-To: <CAJTo0LbMxNc4JJMw+F+sUnsQAWiBorty_Tfbyw+ZWuU0UPVg0Q@mail.gmail.com>


On 12/20/2012 04:45 PM, Burton, Ross wrote:
> On 20 December 2012 13:15, Laurentiu Palcu <laurentiu.palcu@intel.com> wrote:
>> dynamic_loader = rootfs_path + '$(readelf -l ' + rootfs_path + \
>>       binary + '| grep "Requesting program interpreter"|sed -e \'s/^.*\[.*: \(.*\)\]/\\1/\')'
> 
> Would it be easier to do the string manipulation in python?  Spawning
> grep and sed when Python can do string manipulation seems excessive.
Ok, I agree. But how do you call python routines from the postinstall
scriptlets which run in do_rootfs context? readelf needs to run at
postinstall time because the binary we run through qemu does not
necessarily belong to the same package. Let's take, for example, the
current patchset. You can have a recipe that provides an input method
module and call gtk-query-modules-2.0 binary to create the cache.

If you know a method to do it, feel free to share.

Thanks,
Laurentiu

> 
> Nice addition to the class though.
> 
> Ross
> 



  reply	other threads:[~2012-12-20 15:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-20 13:15 [PATCH v2 0/3] have input method modules cached at do-rootfs time Laurentiu Palcu
2012-12-20 13:15 ` [PATCH v2 1/3] qemu.bbclass: add qemu_run_binary() function Laurentiu Palcu
2012-12-20 14:45   ` Burton, Ross
2012-12-20 14:59     ` Laurentiu Palcu [this message]
2012-12-20 15:19       ` Burton, Ross
2012-12-20 13:15 ` [PATCH v2 2/3] gtk-immodules-cache.bbclass: allow for offline cache generation Laurentiu Palcu
2012-12-20 14:45   ` Burton, Ross
2012-12-20 13:15 ` [PATCH v2 3/3] matchbox-keyboard: use the gtk-immodules-cache.bbclass Laurentiu Palcu
2012-12-20 14:40   ` Burton, Ross
2013-01-09 11:14 ` [PATCH v2 0/3] have input method modules cached at do-rootfs time Laurentiu Palcu
2013-01-09 18:35   ` 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=50D327C8.4040703@intel.com \
    --to=laurentiu.palcu@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /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 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.