[OE-core] [PATCH] bitbake.conf: Add unzip hosttool

Burton, Ross ross.burton at intel.com
Tue Jul 18 10:47:31 UTC 2017


On 18 July 2017 at 11:03, Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com
> wrote:

> Unzip is required for jar files. Without this patch:
> ERROR: junit4-4.3.1-r0 do_unpack: Unpack failure for URL:
> 'http://downloads.sourceforge.net/junit/junit-4.3.1-src.jar'. Unpack
> command
> PATH="/var/lib/jenkins/workspace/qt5122-dyspro/build/
> tmp/sysroots-uninative/x86_64-linux/usr/bin ......."
> unzip -q -o '/var/lib/yocto/downloads/junit-4.3.1-src.jar' failed with
> return value 127
>

Proper fix is to fix the automatic dependency generation.

The bitbake fetcher handles jar files:

            elif file.endswith('.zip') or file.endswith('.jar'):
                ...
                cmd = 'unzip -q -o'

But the dependency generation in base.bbclass just handles .zip:

        # .zip should DEPEND on unzip-native for unpacking
        elif path.endswith('.zip'):
            d.appendVarFlag('do_unpack', 'depends', '
unzip-native:do_populate_sysroot')

So the fix is to extend that test in base.bbclass to handle .zip and .jar.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170718/e61b08ae/attachment-0002.html>


More information about the Openembedded-core mailing list