Fix #4778: autorun autoreconf
on Windows too
#4781
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In module
Stack.Setup
,pacman
is used to add theperl
andautoconf
packages to stack's MSYS2.In module
Stack.Build.Execute
, the code uses commandsh autoreconf -i
for Windows, instead of justautoreconf -i
.The implementation involves two hacks:
pacman
andsh autoreconf -i
seem to clear and not restore ANSI capability on native Windows terminals. A hack restores the ANSI capability (using the same hack that was once used forgit clone
- fix Fix #3992 Windows 10: Work around upstream git clone issue #4121).perl
package (5.28.1-2) is broken. So theperl
installed by stack is downgraded to 5.28.0-1, which works. This will need to be revisited onceperl
is fixed on MSYS2.This has been tested on Windows 10 (only) by deleting stack's MSYS2 (so that stack reinstalls it) and by then building the
process
package (which makes use ofconfigure
) using stack.Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!