Wind River Support Network


LIN7-4132 : sanity.bbclass: check /bin/sh is dash or bash

Created: Jun 29, 2015    Updated: Sep 8, 2018
Resolved Date: Jul 6, 2015
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Build & Config


The build would fail when /bin/sh links to ksh or csh, we only test dash
and bash AFAIK.

A patch from upstream.

Steps to Reproduce

1. Step 1
  When /bin/sh -> csh:
  $ bitbake quilt-native
  $ bitbake quilt-native -c fetch
Illegal variable name.
Illegal variable name.
uname: extra operand `2' 
Try `uname --help' for more information.

2. Step 2
* When /bin/sh -> ksh:
  If there are only a few tasks running, for example,
  "bitbake quilt-native", the build would be OK, but it would fail if we
  run "bitbake world" for a while, there would be a lot of "Broken pipe"
  $bitbake world
Exception: CalledProcessError: Command
'cd /path/to/xx; find . -type d -print | tar -cf - -C /path/to/sysroot-destdir -p --files-from - --no-recursion | tar -xf - -C /path/to/xxx'
returned non-zero exit status 2 with output tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
find: `standard output': Broken pipe
find: write error

Other Downloads

Live chat