Skip to content

Commit

Permalink
Uncomment clangarm64 section from pacman.conf.
Browse files Browse the repository at this point in the history
Add attempted workaround for install-info.exe hanging, by disabling the
pacman hooks that call it.  msys2/msys2-autobuild#62
  • Loading branch information
jeremyd2019 committed Aug 27, 2022
1 parent d75df2e commit 11954f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion msys2-runner-setup/setupscripts/setup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ IF [%MSYS2VERSION%]==[nightly] (
curl -Lo msys2-base-x86_64.sfx.exe "%MSYS2URL%"
"%TEMP%\msys2-base-x86_64.sfx.exe" -y -oC:\
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "true"
REM https://github.com/msys2/msys2-autobuild/issues/62
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "mkdir -p /etc/pacman.d/hooks && touch /etc/pacman.d/hooks/texinfo-{install,remove}.hook"
REM the caret is messing with CMD parsing, try it another way
C:\msys64\usr\bin\sed.exe -i -e 's/^^\(SigLevel\s\+=\s\+Required\)\s*$/\1 DatabaseNever/' /etc/pacman.conf
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "pacman --noconfirm --overwrite '*' -Syuu && true"
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf"
REM the caret is messing with CMD parsing, try it another way
C:\msys64\usr\bin\sed.exe -i -e 's/^^\(SigLevel\s\+=\s\+Required\)\s*$/\1 DatabaseNever/' /etc/pacman.conf
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "pacman --noconfirm --overwrite '*' -Suu"
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "sed -i -e '/\[msys\]/i [clangarm64]\nInclude = /etc/pacman.d/mirrorlist.mingw\n' /etc/pacman.conf"
REM the caret is messing with CMD parsing, try it another way
C:\msys64\usr\bin\sed.exe -i -e '/^^# \[clangarm64\]/,/^^$/ s|^^# ||g' /etc/pacman.conf
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "pacman --noconfirm --overwrite '*' -Sy --needed base-devel git mingw-w64-clang-aarch64-toolchain procps-ng psmisc zip unzip vim etc-update"
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "pacman --noconfirm -Scc"
CALL C:\msys64\msys2_shell.cmd -defterm -no-start -c "echo export EDITOR=vim >> ~/.bash_profile"
Expand Down

0 comments on commit 11954f5

Please sign in to comment.