bitbake.conf: Add unzip hosttool
PATCH 1/1 bitbake.conf: Add unzip hosttool
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
--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +1 -1
@@ -477,7 +477,7 @@ HOSTTOOLS += "ip ping ps scp ssh stty" HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo" # Temporary add few more detected in bitbake world -HOSTTOOLS_NONFATAL += "join nl size yes zcat" +HOSTTOOLS_NONFATAL += "join nl size unzip yes zcat" CCACHE ??= "" # ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and
Signature · 1 line
2.13.2
There is unzip-native available, so you should add it to DEPENDS only where needed.e.g. like in:
https://github.com/OSSystems/meta-browser/commit/bd2c39ddba00a3e0171e30ee4a4585b56122990a
Quoted 37 lines · Ricardo Ribalda Delgado
Unzip is required for jar files. Without this patch:
ERROR: junit4-4.3.1-r0do_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 127Signed-off-by Ricardo Ribalda Delgado <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +0
-0@@ -477,7 +477,7 @@ HOSTTOOLS += "ip ping ps scp ssh stty" HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socatsudo"
# Temporary add few more detected in bitbake world
meta/conf/bitbake.conf +1
-2-HOSTTOOLS_NONFATAL += "join nl size yes zcat" +HOSTTOOLS_NONFATAL += "join nl size unzip yes zcat" CCACHE ??= "" # ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and --2.13.2
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
On 18 July 2017 at 11:03, Ricardo Ribalda Delgado <[email protected]
Quoted 11 lines
wrote:
Unzip is required for jar files. Without this patch:
ERROR: junit4-4.3.1-r0do_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
Hi Ross
That did the trick. I have just posted a new patch!
Thanks!
Quoted 33 lines · Ross
Quoted 10 lines · Ricardo Ribalda Delgado
Unzip is required for jar files. Without this patch:
ERROR: junit4-4.3.1-r0do_unpack: Unpack failure for URL:
'http://downloads.sourceforge.net/junit/junit-4.3.1-src.jar'. Unpack commandPATH="/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 127Proper 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
Signature · 1 line
Ricardo Ribalda