Bindmount problem with unpack

Hi, I’m using jethro and bumping resin to 2.12.1 and facing following issue:

| DEBUG: Executing python function do_unpack
| DEBUG: Executing python function base_do_unpack
| DEBUG: Fetching https://crates.io/api/v1/crates/errno/0.2.3/download to errno-0.2.3.crate
| DEBUG: Fetching https://crates.io/api/v1/crates/kernel32-sys/0.2.2/download to kernel32-sys-0.2.2.crate
| DEBUG: Fetching https://crates.io/api/v1/crates/libc/0.2.36/download to libc-0.2.36.crate
| DEBUG: Fetching https://crates.io/api/v1/crates/winapi-build/0.1.1/download to winapi-build-0.1.1.crate
| DEBUG: Fetching https://crates.io/api/v1/crates/winapi/0.2.8/download to winapi-0.2.8.crate
| DEBUG: Running export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/marek/projects/resin-test/build/tmp/sysroots/via-amos-3005/usr/bin/crossscripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/bin:/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/layers/poky/bitbake/bin:/home/marek/bin:/home/marek/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marek/bin:/home/marek/bin"; export HOME="/home/marek"; git -c core.fsyncobjectfiles=0 clone -s -n /home/marek/projects/resin-test/build/downloads/git2/github.com.resin-os.resinos-bindmount.git/ /home/marek/projects/resin-test/build/tmp/work/corei7-64-poky-linux/bindmount/0.0.1.AUTOINC+f597fb0266-r0/git/
| DEBUG: Running export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/marek/projects/resin-test/build/tmp/sysroots/via-amos-3005/usr/bin/crossscripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/bin:/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/layers/poky/bitbake/bin:/home/marek/bin:/home/marek/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marek/bin:/home/marek/bin"; export HOME="/home/marek"; git -c core.fsyncobjectfiles=0 remote set-url origin ssh://git@github.com/resin-os/resinos-bindmount.git
| DEBUG: Running export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/marek/projects/resin-test/build/tmp/sysroots/via-amos-3005/usr/bin/crossscripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/bin:/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/layers/poky/bitbake/bin:/home/marek/bin:/home/marek/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marek/bin:/home/marek/bin"; export HOME="/home/marek"; git -c core.fsyncobjectfiles=0 checkout -B master f597fb026636f0f1be1fbfe2f5a8c2edee3c4493
| DEBUG: Running export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/marek/projects/resin-test/build/tmp/sysroots/via-amos-3005/usr/bin/crossscripts:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/usr/bin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/sbin:/home/marek/projects/resin-test/build/tmp/sysroots/x86_64-linux/bin:/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/layers/poky/bitbake/bin:/home/marek/bin:/home/marek/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marek/bin:/home/marek/bin"; export HOME="/home/marek"; git -c core.fsyncobjectfiles=0 branch master --set-upstream-to origin/master
| NOTE: Unpacking /home/marek/projects/resin-test/build/downloads/errno-0.2.3.crate to /home/marek/projects/resin-test/build/tmp/work/corei7-64-poky-linux/bindmount/0.0.1.AUTOINC+f597fb0266-r0/
| /bin/sh: ${@extra_path_elements(d)}${COREBASE}/scripts:${STAGING_BINDIR_TOOLCHAIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}${base_bindir_native}:/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/layers/poky/bitbake/bin:/home/marek/bin:/home/marek/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marek/bin:/home/marek/bin: bad substitution
| DEBUG: Python function base_do_unpack finished
| DEBUG: Python function do_unpack finished
| ERROR: Function failed: Unpack failure for URL: 'https://crates.io/api/v1/crates/errno/0.2.3/download'. Unpack command PATH="${@extra_path_elements(d)}${COREBASE}/scripts:${STAGING_BINDIR_TOOLCHAIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}${base_bindir_native}:/home/marek/projects/resin-test/layers/poky/scripts:/home/marek/projects/resin-test/layers/poky/bitbake/bin:/home/marek/bin:/home/marek/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marek/bin:/home/marek/bin" tar -xz --no-same-owner -f /home/marek/projects/resin-test/build/downloads/errno-0.2.3.crate -C /home/marek/projects/resin-test/build/tmp/work/corei7-64-poky-linux/bindmount/0.0.1.AUTOINC+f597fb0266-r0/cargo_home/bitbake failed with return value 1

I’m using also jethro meta-rust but need to manually copy few clases and libstd-rs from latest meta-rust master to make poky happy. When run tar -xz … command manually it works fine. Any ideas? Thanks.

Marek

Looks like PATH was not yet properly expanded and thus bad substitution error. This comes from crate.py fetcher so maybe omit strings which doesn’t look like proper paths would help? Thanks.