It seems MSYS2 nearly just works, with the following steps: 1. Install MSYS2 by [the official Windows x86-64 installer](https://github.com/msys2/msys2-installer/releases/latest) (msys2-x86_64-*) to `C:/mozilla-build/msys2` 2. Copy the files of `msys/etc/profile.d` to `msys2/etc/profile.d` 3. Replace `$LOGNAME` to `$(logname)` in `profile-homedir.sh` 4. Install some missing packages: `pacman -S m4 diffutils` 5. Add `export MOZILLABUILD_MSYS2=1` to `profile-extravars.sh` 6. Modify python scripts to point MSYS2 if `MOZILLABUILD_MSYS2` exists
Bug 1725895 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
It seems MSYS2 nearly just works, with the following steps: 1. Install MSYS2 by [the official Windows x86-64 installer](https://github.com/msys2/msys2-installer/releases/latest) (msys2-x86_64-*) to `C:/mozilla-build/msys2` 2. Copy the files of `msys/etc/profile.d` to `msys2/etc/profile.d` 3. Replace `$LOGNAME` to `$(logname)` in `profile-homedir.sh` 4. Install some missing packages: `pacman -S m4 diffutils` 5. Add `export MOZILLABUILD_MSYS2=1` to `profile-extravars.sh` 6. Modify python scripts to point MSYS2 if `MOZILLABUILD_MSYS2` exists 7. Add the following to `start-shell.bat` (or a separate `start-shell-msys2.bat`) ``` SET MSYS=winsymlinks:nativestrict IF DEFINED MOZ_NO_RESET_PATH ( SET MSYS2_PATH_TYPE=inherit ) ```
It seems MSYS2 nearly just works, with the following steps: 1. Install MSYS2 by [the official Windows x86-64 installer](https://github.com/msys2/msys2-installer/releases/latest) (msys2-x86_64-*) to `C:/mozilla-build/msys2` 2. Copy the files of `msys/etc/profile.d` to `msys2/etc/profile.d` 3. Replace `$LOGNAME` to `$(logname)` in `profile-homedir.sh` 4. Install some missing packages: `pacman -S m4 diffutils` 5. Add `export MOZILLABUILD_MSYS2=1` to `profile-extravars.sh` 6. Modify python scripts to point MSYS2 if `MOZILLABUILD_MSYS2` exists 7. Add the following to `start-shell.bat` (or a separate `start-shell-msys2.bat`) ``` SET MSYS=winsymlinks:nativestrict IF DEFINED MOZ_NO_RESET_PATH ( SET MSYS2_PATH_TYPE=inherit ) SET MOZILLABUILD_MSYS_BIN = %MOZILLABUILD%msys2\usr\bin IF DEFINED MOZILLABUILD_MSYS1 ( SET MOZILLABUILD_MSYS_BIN = %MOZILLABUILD%msys\bin ) ```
It seems MSYS2 nearly just works, with the following steps: 1. Install MSYS2 by [the official Windows x86-64 installer](https://github.com/msys2/msys2-installer/releases/latest) (msys2-x86_64-*) to `C:/mozilla-build/msys2` 2. Copy the files of `msys/etc/profile.d` to `msys2/etc/profile.d` 3. Replace `$LOGNAME` to `$(logname)` in `profile-homedir.sh` 4. Install some missing packages: `pacman -S m4 diffutils` 7. Add the following to `start-shell.bat` (or a separate `start-shell-msys2.bat`) ``` SET MSYS=winsymlinks:nativestrict IF DEFINED MOZ_NO_RESET_PATH ( SET MSYS2_PATH_TYPE=inherit ) SET MOZILLABUILD_MSYS_BIN = %MOZILLABUILD%msys2\usr\bin IF DEFINED MOZILLABUILD_MSYS1 ( SET MOZILLABUILD_MSYS_BIN = %MOZILLABUILD%msys\bin ) ``` 8. Replace all msys bin references to use `MOZILLABUILD_MSYS_BIN`
It seems MSYS2 nearly just works, with the following steps: 1. Install MSYS2 by [the official Windows x86-64 installer](https://github.com/msys2/msys2-installer/releases/latest) (msys2-x86_64-*) to `C:/mozilla-build/msys2` 2. Copy the files of `msys/etc/profile.d` to `msys2/etc/profile.d` 3. Replace `$LOGNAME` to `$(logname)` in `profile-homedir.sh` 4. Install some missing packages: `pacman -S m4 diffutils` 7. Add the following to `start-shell.bat` (or a separate `start-shell-msys2.bat`) ``` SET MSYS=winsymlinks:nativestrict IF DEFINED MOZ_NO_RESET_PATH ( SET MSYS2_PATH_TYPE=inherit ) SET MOZILLABUILD_MSYS_BIN = %MOZILLABUILD%msys2\usr\bin IF DEFINED MOZILLABUILD_MSYS1 ( SET MOZILLABUILD_MSYS_BIN = %MOZILLABUILD%msys\bin ) ``` 8. Replace all msys bin references to use `MOZILLABUILD_MSYS_BIN` if exists
It seems MSYS2 nearly just works, with the following steps: 1. Install MSYS2 by [the official Windows x86-64 installer](https://github.com/msys2/msys2-installer/releases/latest) (msys2-x86_64-*) to `C:/mozilla-build/msys2` 2. Copy the files of `msys/etc/profile.d` to `msys2/etc/profile.d` 3. Replace `$LOGNAME` to `$(logname)` in `profile-homedir.sh` 4. Install some missing packages: `pacman -S m4 diffutils` 7. Add the following to `start-shell.bat` (or a separate `start-shell-msys2.bat`) ``` SET MSYS=winsymlinks:nativestrict IF DEFINED MOZ_NO_RESET_PATH ( SET MSYS2_PATH_TYPE=inherit ) SET MOZILLABUILD_MSYS_BIN=%MOZILLABUILD%msys2\usr\bin IF DEFINED MOZILLABUILD_MSYS1 ( SET MOZILLABUILD_MSYS_BIN=%MOZILLABUILD%msys\bin ) ``` 8. Replace all msys bin references to use `MOZILLABUILD_MSYS_BIN` if exists