Open pietrushnic opened 1 year ago
shell difference? Script seems to be made for bash
Yes, it is a shell difference, but it should not matter. Why can't implement it in a shell agile way?
Yes, it is a shell difference, but it should not matter. Why can't implement it in a shell agile way?
No reason probably. Just nobody thought about it yet.
What is the shell in question, and how the problem is triggered, since the bash is explicitely called: https://github.com/Dasharo/ec/blob/master/build.sh#L3
I would argue that bash is standard enough for a shell scripts.
I use zsh and with some other people https://github.com/ohmyzsh/ohmyzsh
I would argue that bash is standard enough for a shell scripts.
And because of that, we should cryptically fail? Why can't we check if the dependencies were resolved?
I'm not seeing this issue on zsh 5.9 w/ omz on Fedora. Moreover there is a shebang #!/usr/bin/env bash
at the beginning of the script so I guess it shouldn't matter which shell the user is using as long as bash is installed?
@mkopec so it means the problem is different.
coreutiles version problem?
[15:33:26] pietrushnic:ec git:(c3984466f49e*) $ EC_BOARD_VENDOR=novacustom EC_BOARD_MODEL=ns5x_adl ./build.sh
./build.sh: 5: Bad substitution
dirname: missing operand
Try 'dirname --help' for more information.
./build.sh: 46: Bad substitution
[15:33:36] pietrushnic:ec git:(c3984466f49e*) $ dirname --version
dirname (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie and Jim Meyering.
[15:33:53] pietrushnic:ec git:(c3984466f49e*) $ bash
pietrushnic@nivrim:~/src/3mdeb/dasharo/v1.6.0-review/ec$ EC_BOARD_VENDOR=novacustom EC_BOARD_MODEL=ns5x_adl ./build.sh
Built '2023-03-20_c398446' for 'novacustom/ns5x_adl'
make: 'all' is up to date.
0+0 records in
0+0 records out
0 bytes copied, 7.2944e-05 s, 0.0 kB/s
pietrushnic@nivrim:~/src/3mdeb/dasharo/v1.6.0-review/ec$ dirname --version
dirname (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie and Jim Meyering.
pietrushnic@nivrim:~/src/3mdeb/dasharo/v1.6.0-review/ec$ zsh --version
zsh 5.8 (x86_64-debian-linux-gnu)
Dasharo version
v1.6.0
Dasharo variant
:man_shrugging:
Affected component(s) or functionality
EC
Brief summary
cannot build EC by following https://docs.dasharo.com/unified/novacustom/building-manual/#build-dasharo-ec-firmware
How reproducible
always
How to reproduce
https://docs.dasharo.com/unified/novacustom/building-manual/#build-dasharo-ec-firmware
Expected behavior
reproducible build
Actual behavior