<html><head></head><body><div>On Mon, 2022-04-04 at 18:24 +0300, Andrew Randrianasulu wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br><br>On Monday, April 4, 2022, mat <<a href="mailto:mnieuw@zap.a2000.nl">mnieuw@zap.a2000.nl</a>> wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><div>On Mon, 2022-04-04 at 17:30 +0300, Andrew Randrianasulu wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br><br>On Monday, April 4, 2022, mat <<a href="mailto:mnieuw@zap.a2000.nl" target="_blank">mnieuw@zap.a2000.nl</a>> wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div style="text-align:left;direction:ltr"><div>On Mon, 2022-04-04 at 16:18 +0300, Andrew Randrianasulu wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br><br>On Monday, April 4, 2022, <<a href="mailto:mnieuw@zap.a2000.nl" target="_blank">mnieuw@zap.a2000.nl</a>> wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hi Andrew,<br></div><div><br>In <a href="http://configure.ac" target="_blank">configure.ac</a> is a test for Android with "uname -o" .<br></div><div><br>The -o option is not available in macOS. On Linux and macOS, simply<br>"uname" returns the OS name (Linux or Darwin). Does this work for<br>Termux too (returning Android or at least something where you can act<br>on)?<br></div></blockquote><div><br></div><div>yeah, 'uname -o' also does not work on netbsd. </div><div><br></div><div>on termux I have</div><div><br></div><div>$ uname -o</div><div>Android</div><div>$ uname</div><div>Linux</div><div>$</div></blockquote><div><br></div><div>Ok, then a test first with "uname" seems best, if it does not return "Darwin" then "uname -o" . I can test freeBSD too.</div><div><br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>anyway, on some linux systems (void linux) default shell also dislikes += constructs, and I hand-edit configure as created by ./autogen.sh there.. </div><div><br></div><div>thing is, bash can be for example in/usr/pkg/bin, (netbsd) or in some other location. not sure how to convince autotools to search for bash and put this (non-default) interpreter at very first line in our configure...</div></blockquote><div><br></div><div>I think many of the thirdparty stuff only works properly with bash too.</div><div>So we should detect which system we're running on and make sure bash is the shell.</div><div>Or, if there is no /bin/bash, stop the process. If /bin/bash is missing, then probably more too.</div></div><div><br></div></blockquote><div><br></div><div>thing is, bash can be instalked by default in some other place. some say to use '/usr/bin/env bash' instead.. </div><div><br></div><div><a href="https://stackoverflow.com/questions/16365130/what-is-the-difference-between-usr-bin-env-bash-and-usr-bin-bash" target="_blank">https://stackoverflow.com/<wbr>questions/16365130/what-is-<wbr>the-difference-between-usr-<wbr>bin-env-bash-and-usr-bin-bash</a></div><div><br></div></blockquote><div>What about putting this in the beginning of bld.sh and bld_appimage.sh, just after the</div><div>#! /bin/bash </div><div><br></div><div>if [ $SHELL != /bin/bash" ] ; then</div><div> echo "Having shell /bin/bash is mandatory"</div><div> echo "Stopping build"</div><div> exit</div><div>fi</div></div><br></blockquote><div><br></div><div><br></div><div>apparently user shell and software building shell can be different things... </div><div><br></div><div><a href="https://openindiana.org/pipermail/openindiana-discuss/2021-January/023434.html">https://openindiana.org/pipermail/openindiana-discuss/2021-January/023434.html</a></div><div><br></div><div>i tried 'which bash' and it outputs correct path to bash on termux. does it work for Apple/Freebsd? </div><div><br></div></blockquote><div>Will check on macOS and freeBSD.</div><div><br></div><div><br></div><div><span></span></div></body></html>