public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* attention alternatives maintainer
@ 2021-07-15 23:07 Doug Henderson
  2021-07-16  1:56 ` Ken Brown
  2021-07-16  5:18 ` ASSI
  0 siblings, 2 replies; 6+ messages in thread
From: Doug Henderson @ 2021-07-15 23:07 UTC (permalink / raw)
  To: Cygwin Apps

Please update alternatives to work properly for a first time install
of an alternative when CYGWIN=winsymlinks:nativestrict.

See the recent thread on the cygwin mailing list with subject

Setup shows errors from gnuplot-base.dash and python38-devel.sh

In essence, when CYGWIN=winsymlinks:nativestrict., the first time it
runs, a postinstall script for a package that uses alternatives will
fail. Once it has succeeded once, it will subsequently run without
error.

In order to make it run I must set  CYGWIN=winsymlinks:native, run the
postinstall script in an elevated shell (or from setup). Then I can
restore CYGWIN=winsymlinks:nativestrict. I think the link target must
be created before the symlink is created. Without looking at the code,
I suspect the order of two symlink needs to be reversed.

The basis for the problem is the difference between POSIX and Windows
symlinks.As I understand it, Windows symlinks need to :"know" if the
target is a file or directory, while the POSIX symlink does not
require the target to exist.

Thanks,
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-17  5:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 23:07 attention alternatives maintainer Doug Henderson
2021-07-16  1:56 ` Ken Brown
2021-07-16  1:58   ` Ken Brown
2021-07-16 19:19   ` Doug Henderson
2021-07-17  5:20     ` ASSI
2021-07-16  5:18 ` ASSI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).