[OE-core] [wic][PATCH] wic: extended list of paths in find_binary_path

Otavio Salvador otavio at ossystems.com.br
Mon Apr 6 14:28:24 UTC 2015


On Mon, Apr 6, 2015 at 11:15 AM, Ed Bartosh <ed.bartosh at linux.intel.com> wrote:
> On Mon, Apr 06, 2015 at 09:00:50AM -0300, Otavio Salvador wrote:
>> On Sun, Apr 5, 2015 at 4:16 PM, Philip Balister <philip at balister.org> wrote:
>> > On 04/04/2015 10:20 AM, Ed Bartosh wrote:
>> >> wic requires tools that are not always possible to find in $PATH.
>> >> This causes wic to fail with confusing errors like this:
>> >>  External command 'parted' not found, exiting.
>> >>    (Please install 'parted' on your host system)
>> >>
>> >> Adding ~/bin/, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin,
>> >> /sbin and /bin to the list of paths makes find_binary_path to
>> >> produce more reliable results.
>> >
>> > I'm with Otavio. Given wic is intimately dependent on internal build
>> > artifacts, it should use utilities from the sysroot and not depend on
>> > tools from the path. Let's make wic 100% before creating a tool to build
>> > images from packages.
>>
>> If we want to have it as a 'standalone' tool we will need to somehow
>> package the tool set for it to use, otherwise we have a maintenance
>> nightmare (does patch X has been applied to Parted?).
>>
> Can you elaborate a bit on how tool set can be packaged?

We could do a tarball like the buildtools toolchain.

> Back to the original topic. wic never used native parted as it's not useable(there is no executable in systoor).
> Anybody knows the reason?

bitbake parted-native

> Documentation also suggests to install parted on the host: http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#wic-requirements

So it also needs fixing.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list