[PATCH] Cygwin: tweak handling of native symlinks from chdir

Jeremy Drake cygwin@jdrake.com
Sun May 30 06:05:46 GMT 2021

On Sat, 29 May 2021, Jeremy Drake via Cygwin-patches wrote:

> On Sat, 29 May 2021, Jeremy Drake wrote:
> > First, revert the handling of virtual drives as non-symlinks.  This is no
> > longer necessary.
> >
> Spoke too soon, it seems that `makepkg` uses `pwd -P` and that still
> dereferences symlinks, as does `pwd -W` and `cygpath -w .`  :(

With the two patches from the OP, plus patching `makepkg` to change all
`pwd -P` to straight `pwd`, AND patching msys2's msys2_path_conv.cc
`posix_to_win32_path` to use the new flag to path_conv, I was finally able
to build the problematic package with the long name...  I imagine
`cygwin_conv_path` should have that flag too, for cygpath and `pwd -W`.

Hopefully there's a better (less invasive) approach that I'm not seeing.

More information about the Cygwin-patches mailing list