mingw-git and msys2

87 views
Skip to first unread message

Thomas Braun

unread,
May 7, 2014, 1:55:56 PM5/7/14
to mingwgi...@googlegroups.com
Today I managed to get mingw-git compiled under msys2.

So if some of you might want to have a try too, here is what I did:
- Grab and extract
http://sourceforge.net/projects/msys2/files/Base/i686/msys2-base-i686-20140216.tar.xz/download
- Clone https://github.com/Alexpux/MSYS2-packages,
https://github.com/Alexpux/MINGW-packages and
https://github.com/sschuberth/git.git into a subfolder of the extracted
msys2 folder
- Start msys2_shell.bat, wait, close it, start and close it again
- Start mingw32_shell.bat
- Do some pacman magic (thanks to alexpu for the hints):
###
pacman -Sy
pacman -Su —ignoregroup base
pacman -Su
pacman -S base-devel
###
- Install other packages (that list is from what I remember, the exact
list of installed packages are attached)
###
pacman -S gcc mingw-w64-i686-gcc asciidoc xmlto perl python openssh
###
- Compile and install curl and zlib for mingw
cd MINGW-packages/mingw*curl && makepkg-mingw && pacman -U *tar.xz
cd MINGW-packages/mingw*zlib && makepkg-mingw && pacman -U *tar.xz
- Adapt your HOME path in /etc/passwd
- Change to /git
- patch -p1 <../git-msys2.patch
- touch ../THIS_IS_MSYSGIT
- make all doc
- cd t
- export PATH=/mingw32/bin:/usr/local/bin:/usr/bin:/bin (not sure here!?)
- prove -j 8 t[0-9]*.sh | tee ../../testlog

My git patch was done to get it compiled nothing more fancy ;)
The tests execution does halt at t7610-mergetool.sh.
I was not able to clone a remote repository with that git so there still
stuff to do.

Msys2 feels quite usable, especially
- pacman is much nicer than mingw-get
- man <cmd> works
- mintty is the default terminal emulator
- nearly all packages we need are already there

Have phun
Thomas
git-msys2.patch
installed-packages.txt
testlog.txt

Sebastian Schuberth

unread,
May 8, 2014, 2:52:11 AM5/8/14
to Thomas Braun, mingwgi...@googlegroups.com
On Wed, May 7, 2014 at 7:55 PM, Thomas Braun
<thomas...@virtuell-zuhause.de> wrote:

> Today I managed to get mingw-git compiled under msys2.

Thanks for giving this a try and posting the necessary steps.

> - mintty is the default terminal emulator

Just as a reminder: You are aware that running any (interactive)
non-MSYS (and non-Cygwin) Windows console program (including
mingw-git) will *not* work reliably inside mintty (and probably never
will) due to [1], are you? Other than than, we could easily make
mintty also the default terminal for mingwGitDevEnv, too, but I
deliberately decided against it for that very reason.

[1] https://code.google.com/p/mintty/issues/detail?id=56

--
Sebastian Schuberth

Thomas Braun

unread,
May 8, 2014, 4:31:47 PM5/8/14
to Sebastian Schuberth, mingwgi...@googlegroups.com
Nope I was not aware of that, thanks for mentioning.
This also make the test output from my last mail obsolete and explains
some problems I had.
Reply all
Reply to author
Forward
0 new messages