Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642678 - [prefix cygwin64] bootstrap-prefix.sh fails boostraping bash 4.2
Summary: [prefix cygwin64] bootstrap-prefix.sh fails boostraping bash 4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Other
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-29 21:39 UTC by Michael Golisch
Modified: 2018-01-06 15:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Golisch 2017-12-29 21:39:50 UTC
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.
Comment 1 Benda Xu gentoo-dev 2018-01-02 06:32:36 UTC
Looks like it is cygwin-specific.  As on Linux, "v" in version is lower case.
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2018-01-02 09:14:57 UTC
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.
Comment 3 Michael Golisch 2018-01-02 13:32:20 UTC
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)
Comment 4 Larry the Git Cow gentoo-dev 2018-01-06 15:23:26 UTC
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(-)