Open paper42 opened 3 years ago
Works fine to build here. Debian 11. In 21.02 SDK. Did you install bash? It's a build requirement as per this link. My /bin/sh points to dash as well.
Works fine to build here. Debian 11. In 21.02 SDK. Did you install bash? It's a build requirement as per this link. My /bin/sh points to dash as well.
I have bash installed on this system, changing the /bin/sh symlink to point to bash instead of dash makes this work.
%: dash -c "set -o pipefail"
dash: 1: set: Illegal option -o pipefail
%: bash -c "set -o pipefail"
%: ash -c "set -o pipefail"
%: sh -c "set -o pipefail"
%: loksh -c "set -o pipefail"
%: mksh -c "set -o pipefail"
I also tested running this command on Ubuntu and it also failed.
Issue template (remove lines from top till here)
Maintainer: @dangowrt Environment: aarch64, Turris MOX, OpenWrt 21.02
Description: When /bin/dash on the host system points to dash instead of bash, the build fails, because lvm2 tries to run
set -o pipefail
which is not supported in dash. dash is the default /bin/sh at least in Ubuntu, Debian and Void (where I found it), so I think this should be fixed.