the bootstrap script fails while bootstraping stage1 when compiling bash 4.2. it errors out with "undefined reference to cygwin_conv_to_full_posix_path". Reproducible: Always Steps to Reproduce: 1.setup cygwin64 according to https://wiki.gentoo.org/wiki/Prefix/Cygwin 2.download https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/bootstrap-prefix.sh 3.execute bootstrap-prefix.sh Actual Results: it fails Expected Results: it works As cygwin already has bash 4.4 installed it shouldnt even try to build that. The problem seems to be that the check for bash in bootstrap_stage1() is wrong. it checks for version 4.x whereas bash --version actualy returns something like 'GNU bash, Version 4.4.12(3)-release (x86_64-unknown-cygwin)' with a capital V, so that check always fails and it always tries to build bash 4.2.
Looks like it is cygwin-specific. As on Linux, "v" in version is lower case.
This is strange - I do get the lowercase v here: $ /bin/bash --version GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://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.
funny it seems to be a locale thing. mgolisch@mgolisch ~ $ echo $LANG de_DE.UTF-8 mgolisch@mgolisch ~ $ bash --version GNU bash, Version 4.4.12(3)-release (x86_64-unknown-cygwin) mgolisch@mgolisch ~ $ LANG=c bash --version GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a3761848e8af2c52171b485383a6f8f1e0323b47 commit a3761848e8af2c52171b485383a6f8f1e0323b47 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-01-06 15:21:59 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-01-06 15:21:59 +0000 scripts/bootstrap-prefix: run bash check under LANG=C, bug #642678 At least in German locales, words like version are capitalised. Closes: https://bugs.gentoo.org/642678 scripts/bootstrap-prefix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)