summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2017-07-18 13:01:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 22:51:38 +0100
commit2b77e439f18c1a24deb0a4038dd286def6e45895 (patch)
tree970e54f441cf9b3777d9423eb2b59c70e120f7eb /meta
parentdfd6b60a31af5714ea0f95287d55fee4f3bb4a6f (diff)
downloadpoky-2b77e439f18c1a24deb0a4038dd286def6e45895.tar.gz
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@intel.com> (From OE-Core rev: 96665f8b204b0f0ba571bb6634203aada5983f8a) Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 9c40e017f4..8c8697761c 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -628,7 +628,7 @@ python () {
628 d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot') 628 d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot')
629 629
630 # .zip should DEPEND on unzip-native for unpacking 630 # .zip should DEPEND on unzip-native for unpacking
631 elif path.endswith('.zip'): 631 elif path.endswith('.zip') or path.endswith('.jar'):
632 d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot') 632 d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot')
633 633
634 # file is needed by rpm2cpio.sh 634 # file is needed by rpm2cpio.sh