Re: [Mingw-w64-public] MSYS2: wrong disk space used reported by `du'

2013-11-13 Thread Alexey Pavlov
2013/11/13 Corinna Vinschen vinsc...@redhat.com On Nov 12 22:52, Óscar Fuentes wrote: Corinna Vinschen vinsc...@redhat.com writes: On Nov 12 13:59, Óscar Fuentes wrote: $ du -sh /lib/git-core 13M /lib/git-core Windows Explorer says that d:/msys32/lib/git-core uses 169

Re: [Mingw-w64-public] windres vs. rc.exe: Different resource alignment

2013-11-13 Thread Kai Tietz
2013/11/12 Martin Mitáš m...@morous.org: Hi all, I've been resolving some strange issues with resources ([1]). Although I did not succeed so far, I've spent some time in hex editor and reading objdump -s output (not much fun). My analyzes has exhibited some differences in how windres and

Re: [Mingw-w64-public] MSYS2: wrong disk space used reported by `du'

2013-11-13 Thread Adrien Nader
On Tue, Nov 12, 2013, Corinna Vinschen wrote: On Nov 12 22:52, Óscar Fuentes wrote: Corinna Vinschen vinsc...@redhat.com writes: On Nov 12 13:59, Óscar Fuentes wrote: $ du -sh /lib/git-core 13M /lib/git-core Windows Explorer says that d:/msys32/lib/git-core uses 169

Re: [Mingw-w64-public] windres vs. rc.exe: Different resource alignment

2013-11-13 Thread mity
2013/11/12 Martin Mitáš m...@morous.org: Hi all, I've been resolving some strange issues with resources ([1]). Although I did not succeed so far, I've spent some time in hex editor and reading objdump -s output (not much fun). My analyzes has exhibited some differences in how windres and

[Mingw-w64-public] Linking issue: _lock_file

2013-11-13 Thread André Guerreiro
Hello all, sorry if this is a really basic question, I'm a MingW newbie. I'm trying to build this code with Mingw-w64 4.6.3 #include stdio.h int main() { FILE *fp = fopen(SOME_FILE, r); _lock_file(fp); return 0; } Using the following command: /usr/bin/i686-w64-mingw32-gcc -o hello.exe

[Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
I'm an old cygwin user who went astray years ago and would like to confirm my MSYS2 setup. Here's what I'm doing to have a sandboxed style setup that isolates my normal windows setup. For example, I don't want MSYS2's default /etc/profile to think HOME is C:\Users\Jon. I want it to think HOME is

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Alexpux
14 нояб. 2013 г., в 0:31, Jon jon.for...@gmail.com написал(а): I'm an old cygwin user who went astray years ago and would like to confirm my MSYS2 setup. Here's what I'm doing to have a sandboxed style setup that isolates my normal windows setup. For example, I don't want MSYS2's default

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
On Wed, Nov 13, 2013 at 3:36 PM, Alexpux alex...@gmail.com wrote: 14 нояб. 2013 г., в 0:31, Jon jon.for...@gmail.com написал(а): I'm an old cygwin user who went astray years ago and would like to confirm my MSYS2 setup. Here's what I'm doing to have a sandboxed style setup that isolates my

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
Jon@Black ~ $ cd ~ Jon@Black /home/Jon $ pwd /home/Jon Sorry, the above is not correct in the default case. The correct version is: Jon@Black ~ $ cd ~ -bash: cd: /home/Jon: No such file or directory Jon@Black ~ $ pwd /c/Users/Jon My earlier experiments with HOME in msys2_shell.bat had

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Jon
On Wed, Nov 13, 2013 at 3:53 PM, Alexpux alex...@gmail.com wrote: 14 нояб. 2013 г., в 0:48, Jon jon.for...@gmail.com написал(а): On Wed, Nov 13, 2013 at 3:36 PM, Alexpux alex...@gmail.com wrote: 14 нояб. 2013 г., в 0:31, Jon jon.for...@gmail.com написал(а): I'm an old cygwin user who

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Alexpux
14 нояб. 2013 г., в 0:56, Jon jon.for...@gmail.com написал(а): Jon@Black ~ $ cd ~ Jon@Black /home/Jon $ pwd /home/Jon Sorry, the above is not correct in the default case. The correct version is: Jon@Black ~ $ cd ~ -bash: cd: /home/Jon: No such file or directory Jon@Black ~

Re: [Mingw-w64-public] MSYS2 correct HOME setup

2013-11-13 Thread Ray Donnelly
I unify my windows home with my MSYS2 homes using mklink /D so that e.g. C:\msys32\home\ray is a symlink to C:\Users\ray .. I haven't run into any problems with this recently. msysgit didn't used to like cloning to a folder within a symlink folder, but MSYS2 git is fine with it. Of course you'd

Re: [Mingw-w64-public] semaphore wrappers

2013-11-13 Thread Edscott Wilson
Here's the code for using named and unnamed semaphores in Mingw-w64. The only function I have not tested (but looks OK now) is _sem_timedwait(). Code is included in libtubo release 5.0.12 (http://xffm.org/libtubo.html) with GPLV3, so if it is of any use, feel free to use it. I've prepared

Re: [Mingw-w64-public] Linking issue: _lock_file

2013-11-13 Thread JonY
On 11/14/2013 01:34, André Guerreiro wrote: Hello all, sorry if this is a really basic question, I'm a MingW newbie. I'm trying to build this code with Mingw-w64 4.6.3 #include stdio.h int main() { FILE *fp = fopen(SOME_FILE, r); _lock_file(fp); return 0; } Using the