On 18 July 2017 at 11:03, Ricardo Ribalda Delgado <ricardo.riba...@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
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to