Re: Native symlinks and setup.exe

2016-10-04 Thread Gene Pavlovsky
Never mind, I found it's in another repository. The code looks quite different, adapting the symlink code from newlib to setup doesn't look straightforward, at least to my limited C skills. By the way, if I have an already created symlink, how do I check (e.g. in a bash script) whether it's native

Re: Native symlinks and setup.exe

2016-10-04 Thread Gene Pavlovsky
Eric, Before writing a patch it's wise to check if it would be accepted, now that your position is clear, somebody might do it. I don't think I'm up for the task, but I'd like to at least take a look at the sources. I've downloaded the git sources and found the link creation function is in winsup/

Re: Native symlinks and setup.exe

2016-10-04 Thread Eric Blake
On 10/04/2016 03:53 PM, Vince Rice wrote: >>> Obviously, a political discussion is required, to decide whether it is >>> ok, as is, or if a change in package logic would have benefits. The easiest way to have the discussion would be to write a patch, instead of debating about different behaviors b

Re: Native symlinks and setup.exe

2016-10-04 Thread Vince Rice
Please don’t https://cygwin.com/acronyms/#TOFU. > On 4 October 2016 at 17:56, Gerrit Haase wrote: >> Hello Gene, >> >> in my opinion, it is not a setup.exe or tar problem, but I think >> packages should not include symlinks at all. All can be created >> postinstallation by the postinstall script

Re: Native symlinks and setup.exe

2016-10-04 Thread Gene Pavlovsky
That is a good point as well, however I'm not sure what are the opinions of Cygwin's "elders". Would everyone vote for creating a policy like that and pushing it to the package maintainers? A political discussion is what I'm trying to start here :) On 4 October 2016 at 17:56, Gerrit Haase wrote:

Re: Native symlinks and setup.exe

2016-10-04 Thread Gene Pavlovsky
That is a good solution indeed, if I just want to get the result I want, for myself. But it's just local solution. On 4 October 2016 at 09:57, Vlado wrote: > On 3.10.2016 23:15, Gene Pavlovsky wrote: >> >> How about this kind of modification for the setup program: extract tar >> archives into tem

Re: Native symlinks and setup.exe

2016-10-04 Thread Linda Walsh
Thorsten Kampe wrote: Tar's task is to unpack what's in the archive. So converting is out of question. You can ask the maintainer of the affected packages to create the symlinks in the postinstall script. --- Is it a "special" tar, or is it the normal version of tar that runs under Cygwin? I

Re: Native symlinks and setup.exe

2016-10-04 Thread Gerrit Haase
Hello Gene, in my opinion, it is not a setup.exe or tar problem, but I think packages should not include symlinks at all. All can be created postinstallation by the postinstall script, inside Cygwin and the users environment it is running on. Obviously, a political discussion is required, to deci

Re: Native symlinks and setup.exe

2016-10-03 Thread Vlado
On 3.10.2016 23:15, Gene Pavlovsky wrote: How about this kind of modification for the setup program: extract tar archives into temp dir, after that search that temp dir for symlinks, Hi, Gene. Maybe You can consider to write and run simple script: - find all links (find -type l) - read target

Re: Native symlinks and setup.exe

2016-10-03 Thread Gene Pavlovsky
That makes sense but it would be a LOT of work for many people (well, a lot of small work for many people). How about this kind of modification for the setup program: extract tar archives into temp dir, after that search that temp dir for symlinks, if they don't match the current winsymlinks optio

Re: Native symlinks and setup.exe

2016-10-03 Thread Thorsten Kampe
* Gene Pavlovsky (Mon, 3 Oct 2016 00:46:54 +0300) > > So, when installing, the type of symlinks doesn't honor the CYGWIN > option since they are just unpacked by tar as is. > > The question I'm proposing now - should `tar` be modified to honor the > CYGWIN option and automatically convert symlink

Re: Native symlinks and setup.exe

2016-10-02 Thread Gene Pavlovsky
Thorsten, That's a great pointer. I've just investigated using the `flex` package as an example. Untarring flex-2.6.1-1.tar.xz, usr/bin/flex++ is extracted as a Cygwin symlink to usr/bin/flex.exe. If I create a native symlink to flex.exe, tar it all up to a new tar archive, then extract it somewhe

Re: Native symlinks and setup.exe

2016-10-02 Thread Andrey Repin
Greetings, Gene Pavlovsky! > I'm installing Cygwin 64-bit on a fresh Win 7 x64 installation. > Before running setup.exe I've set the system env var CYGWIN=winsymlinks:native > After that I ran setup-x86_64.exe and installed cygwin64. > The symlinks to .exe files in bin, created by setup, are not n

Re: Native symlinks and setup.exe

2016-10-02 Thread Thorsten Kampe
* Gene Pavlovsky (Sat, 1 Oct 2016 18:52:47 +0300) > > I'm installing Cygwin 64-bit on a fresh Win 7 x64 installation. > Before running setup.exe I've set the system env var CYGWIN=winsymlinks:native > After that I ran setup-x86_64.exe and installed cygwin64. > The symlinks to .exe files in bin, cr

Re: Native symlinks and setup.exe

2016-10-01 Thread Herbert Stocker
On 01.10.2016 23:32, Vlado wrote: > On 1.10.2016 17:52, Gene Pavlovsky wrote: >> Before running setup.exe I've set the system env var >> CYGWIN=winsymlinks:native >> After that I ran setup-x86_64.exe and installed cygwin64. >> The symlinks to .exe files in bin, created by setup, are not native >>

Re: Native symlinks and setup.exe

2016-10-01 Thread Vlado
On 1.10.2016 17:52, Gene Pavlovsky wrote: Before running setup.exe I've set the system env var CYGWIN=winsymlinks:native After that I ran setup-x86_64.exe and installed cygwin64. The symlinks to .exe files in bin, created by setup, are not native symlinks, they are cygwin symlinks. Apparently, se

Native symlinks and setup.exe

2016-10-01 Thread Gene Pavlovsky
I'm installing Cygwin 64-bit on a fresh Win 7 x64 installation. Before running setup.exe I've set the system env var CYGWIN=winsymlinks:native After that I ran setup-x86_64.exe and installed cygwin64. The symlinks to .exe files in bin, created by setup, are not native symlinks, they are cygwin syml