-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12.06.2013 18:51, Alexpux wrote:
> среда, 12 июня 2013 г. в 18:00, Corinna Vinschen написал:
>> On Jun 12 15:50, Alexpux wrote:
>>> среда, 12 июня 2013 г. в 14:47, Corinna Vinschen написал:
>>>> On Jun 11 21:10, Алексей Павлов wrote:
>>>>> 4. Replaced Cygwin symlinks with copying (we can investigate an option for
>>>>> mklink symlinks on Vista and above but this is a topic for discussion -
>>>>> MSYS compliant software tend to work around most ln-as-cp issues when
>>>>> possible anyway).
>>>>>  
>>>>  
>>>> I said my share about what I think of copying files when the application
>>>> expects to get a symlink. It's wrong. It's dangerous. You still have
>>>> the CYGWIN=winsymlinks:lnk and CYGWIN=winsymlinks:native or
>>>> CYGWIN=winsymlinks:nativestrict options available when using Cygwin
>>>> unchanged (http://cygwin.com/cygwin-ug-net/using-cygwinenv.html)
>>>>  
>>>  
>>>  
>>> Yes it dangerous but native symlinks work need elevated shell and OS Vista+
>>  
>> Again, if you need a copy, use cp, not ln -s. It's plainly a bug in the
>> scripts or tools you're using, if they use ln -s (or symlink(2)) when
>> called in a Mingw environment. Neither of them must rely on symlinks.
>>  
>>  
> 
> And I need patch every configure script and Makefile to fix it?
To be fair here, i've tried the MSYS=winsymlinks:nativestrict, and first
thing i hit was AC_PROG_LN_S. That macro explicitly refuses to use `ln
- -s' provided by MSYS or Cygwin, asking for 100% POSIX compliance.
So it might turn out that `ln -s' hack would only affect corner-cases
(where people just write `ln -s' in makefiles and such).

Later today, when i get a new MSYS2 build (based upon the latest Cygwin
with fixed symlinks in case of a different cygdrive prefix), i'll hack
AC_PROG_LN_S to allow MSYS2's `ln -s' to be used, and will check if that
works (i expect that it would).

I could also replace /usr/bin/ln with a wrapper script that would log
all invocations of `ln' with `-s' to count exactly how much it is being
used (that said, it won't cover things like `lndir' which is use when
needed).

Also, to make sure correct things end up being archived: you need a
special privilege to create symlinks. Administrators have it by default,
but you can give it to users as well.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJRwWbqAAoJEOs4Jb6SI2CwpN8H/jgHGRp8BshfIEzqZhk2XC4O
SvxbqmzOteuE8Hg5bhlTaL0S5KNY4Riy1DZBQgXZc6m/Gtno8U9IQEVqmm3O+o1H
HomWxvQojTnp6Ur1GYuNpfwXmAFzZq3zOB40H3Zd717B7Y7vwrT8EcgjbUsJYiSN
xVYTWlKxU0v+lQ+R84V4ISAaJDjNJFRAHW5zJ9pmHU2zV+bwAnUzZtxMYRoHByuv
09nYmXrdb5kr6xQPehonG1ENjjPAI8v5KCfag8Q25DdqTTq1pnWDXsif9e7CfF1e
IsYSEaz6kJe1vgoGZ5EioW2qISwwk3IHMPZqQLOTQY7n4GVMi9sC9+ef+VVHMBM=
=jKoK
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to