[oe-commits] [openembedded-core] 31/40: base.bbclass: Make .jar file depend on unzip-native

git at git.openembedded.org git at git.openembedded.org
Fri Jul 21 11:38:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3ef6950bdc2b5af1a31493cc2ed1ed766840f8d1
Author: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
AuthorDate: Tue Jul 18 13:01:53 2017 +0200

    base.bbclass: Make .jar file depend on unzip-native
    
    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
    
    Suggested-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 9c40e01..8c86977 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -628,7 +628,7 @@ python () {
             d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot')
 
         # .zip should DEPEND on unzip-native for unpacking
-        elif path.endswith('.zip'):
+        elif path.endswith('.zip') or path.endswith('.jar'):
             d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot')
 
         # file is needed by rpm2cpio.sh

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list