Re: [PATCH setup 0/3] Setup replacement for incver_ifdep

2015-09-23 Thread Jon Turney
On 22/09/2015 18:32, Achim Gratz wrote: Jon Turney writes: Since we now have scripts which run on every setup run, a package which requires another package to do some work after it is installed or uninstalled can create a file to act as a trigger for that to happen. There aren't any

[PATCH] Add ability to use NTFS native directory symlinks without admin rights on XP and later

2015-09-23 Thread Evgeny Grin
This patch will add ability to create directory junction which are supported from Windows 2000 and not require any special rights (unlike file/directory symbolic links). New three modes for symbolic links creation added: "safenative", "safenativestrict" and "safenativeonly". First two allow

Re: Unable to retain installation configuration on Windows 10

2015-09-23 Thread Brian Inglis
On 2015-09-23 03:15, Andrey Repin wrote: Greetings, Brian Inglis! $ echo $( < /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygwin/setup/rootdir ) and the package directory using: Err, why not just cat /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygwin/setup/rootdir No \n after value so

Re: Bash / cygwin process spawning (?) performance very slow

2015-09-23 Thread litter
>> for a file of 167 lines. Process Explorer showed a CPU load of 20% on >> bash.exe, which was almost completely Kernel time. >> Is such high Kernel load normal? > > may be. forks are time consuming and your command is spending all the > time in fork So why is it spending all its time in fork?

[PATCH] Fix compiler errors/warnings when compiling with -O3

2015-09-23 Thread Evgeny Grin
GCC find more suspicious places with -O3. Cygwin use -Werror so uninitialized variables prevent compilations. This patch allow compilation with CFLAGS='-O3' CXXFLAGS='-O3'. --- winsup/cygwin/fhandler_socket.cc | 4 ++-- winsup/cygwin/regex/regcomp.c| 2 +- 2 files changed, 3 insertions(+),

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread litter
> It seems a race problem, due to the repetitive fork of grep > for every line of some-file So why does it fail? Seems like a bug to me! Regards, Paul -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation:

ssh fails after joining domain

2015-09-23 Thread Hoot Thompson
I'm working on a group of Windows Server 2012 R2 systems. Prior to joining the systems to our domain controller, I install the openssh components after which I can ssh into the system using the Administrator account and password. However, as soon as I join a server to our domain controller, ssh no

Re: Bash / cygwin process spawning (?) performance very slow

2015-09-23 Thread litter
> lit...@null.net: > Wed, 23 Sep 2015 10:52:26 +0200 > --- >> Hi all, >> >> I noticed that doing simple loops in Bash takes unexpectedly long under >> Cygwin on a Windows XP 32 bit machine >> (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686

Re: Unable to retain installation configuration on Windows 10

2015-09-23 Thread litter
On 2015-09-23 14:46, Brian Inglis wrote: > On 2015-09-23 03:15, Andrey Repin wrote: >> Greetings, Brian Inglis! >> >>> $ echo $( < /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygwin/setup/rootdir >>> ) >>> and the package directory using: >> >> Err, why not just >> cat

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Walter L.
Thanks for the quick response! > 2) The 'touch' command creates a file with the executable bit set > [user@hostname ~]$ touch newfile.txt > [user@hostname ~]$ ls -l newfile.txt > -rwxrwx---+ 1 user Domain Users 0 Sep 22 17:21 newfile.txt > I am fully aware that Windows programs (e.g. Eclipse

Re: [PATCH setup 0/3] Setup replacement for incver_ifdep

2015-09-23 Thread Jon Turney
[replying to the right list, this time] On 22/09/2015 18:32, Achim Gratz wrote: Jon Turney writes: Since we now have scripts which run on every setup run, a package which requires another package to do some work after it is installed or uninstalled can create a file to act as a trigger for

Re: Bash / cygwin process spawning (?) performance very slow

2015-09-23 Thread Marco Atzeri
On 23/09/2015 17:17, lit...@null.net wrote: for a file of 167 lines. Process Explorer showed a CPU load of 20% on bash.exe, which was almost completely Kernel time. Is such high Kernel load normal? may be. forks are time consuming and your command is spending all the time in fork So why is

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread Marco Atzeri
On 23/09/2015 17:03, lit...@null.net wrote: It seems a race problem, due to the repetitive fork of grep for every line of some-file So why does it fail? Seems like a bug to me! Regards, Paul As does not fail on my computer, I suspect is a race between your AV and cygwin and sometimes

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Andrey Repin
Greetings, Walter L.! > Thanks for the quick response! >> > 2) The 'touch' command creates a file with the executable bit set >> >> > [user@hostname ~]$ touch newfile.txt >> > [user@hostname ~]$ ls -l newfile.txt >> > -rwxrwx---+ 1 user Domain Users 0 Sep 22 17:21 newfile.txt >> >> > I am fully

Re: Bash / cygwin process spawning (?) performance very slow

2015-09-23 Thread Helmut Karlowski
--- > I'm not running any antivirus as far as I'm aware of (I do run a Comodo > firewall with all "virus" scanning disabled). > I checked again, and it really is the Bash.exe which is consuming a lot of > Kernel time. I didn't spot another process

Re: [PATCH setup 0/3] Setup replacement for incver_ifdep

2015-09-23 Thread Achim Gratz
Jon Turney writes: > [replying to the right list, this time] I was slightly bewildered by that former reply… :-) > On 22/09/2015 18:32, Achim Gratz wrote: > I thought that permanent postinstall scripts run even when no packages > are being installed, or only packages are being removed, so they

Bash / cygwin process spawning (?) performance very slow

2015-09-23 Thread litter
Hi all, I noticed that doing simple loops in Bash takes unexpectedly long under Cygwin on a Windows XP 32 bit machine (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) I already followed the FAQ advice in trying to determine general causes, and made a 'shadow' copy of /etc/passwd

Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread Marco Atzeri
On 23/09/2015 09:52, lit...@null.net wrote: Hi all, On a Windows XP 32 bit machine with latest Cygwin installed (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) I frequently encounter errors which break bash while loops, making it practically unusable e.g. cat some-file |

Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor

2015-09-23 Thread litter
Hi all, On a Windows XP 32 bit machine with latest Cygwin installed (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) I frequently encounter errors which break bash while loops, making it practically unusable e.g. cat some-file | while read i;do grep text $i;done results in 2

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Andrey Repin
Greetings, Walter L.! > I've just performed a fresh install of the latest (2.2.1) Cygwin on 64-bit > Windows 7 and noticed 2 issues with the new version that I'd like to verify > whether or not they are bugs: > 1) The symlink to protocol file seems incorrect > [user@hostname /etc]$ ls -l |

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Walter L.
> > I believe the target of the symlink should be "protocol" (i.e. > > singular) > > Err. That is. How did no one found it earlier? --- Because it is plural on unix/linux? MS seems to have misspelt it? I believe it's "misspelt" due to the 8 character limit for legacy file names, and the

Re: workflow idiom to compare zip/tgz with folder subtree

2015-09-23 Thread Andrey Repin
Greetings, Eliot Moss! >>> Git, Subversion... basically any sane VCS out there. >> >> Ah, yesI've managed to avoid version control all these years >> because I wanted the convenience of bash file management and changing >> things on a whim as I see fit. And for lack of time to learn yet >>

Re: workflow idiom to compare zip/tgz with folder subtree

2015-09-23 Thread Andrey Repin
Greetings, Paul! > Andrey Repin yandex.ru> writes: >> Git, Subversion... basically any sane VCS out there. > Ah, yesI've managed to avoid version control /facepalm. 'nuff said. > all these years > because I wanted the convenience of bash file management and changing > things on a whim as

Re: Unable to retain installation configuration on Windows 10

2015-09-23 Thread Andrey Repin
Greetings, Brian Inglis! > $ echo $( < /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygwin/setup/rootdir ) > and the package directory using: Err, why not just cat /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygwin/setup/rootdir ? "Avoiding cats at all costs" ? -- With best regards, Andrey

Re: Bash / cygwin process spawning (?) performance very slow

2015-09-23 Thread Helmut Karlowski
lit...@null.net: Wed, 23 Sep 2015 10:52:26 +0200 --- > Hi all, > > I noticed that doing simple loops in Bash takes unexpectedly long under > Cygwin on a Windows XP 32 bit machine > (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) >

Re: Bash / cygwin process spawning (?) performance very slow

2015-09-23 Thread Marco Atzeri
On 23/09/2015 10:52, lit...@null.net wrote: Hi all, I noticed that doing simple loops in Bash takes unexpectedly long under Cygwin on a Windows XP 32 bit machine (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) I already followed the FAQ advice in trying to determine general

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Linda Walsh
Andrey Repin wrote: I believe the target of the symlink should be "protocol" (i.e. singular) Err. That is. How did no one found it earlier? --- Because it is plural on unix/linux? MS seems to have misspelt it? -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Linda Walsh
Walter L. wrote: Define "earlier" ? The permissions handling has been extensively rewritten since 1.7.34. Probably from a few months ago, but I can't confirm. I've been trying to figure out how to revert back to an earlier version to verify this. Where can I find archived versions of Cygwin?

Re: cygwin potentially corrupting permissions?

2015-09-23 Thread Linda Walsh
Greg Freemyer wrote: All, I've noticed on 2 different machines that if I copy (cp) a file I can read with cygwin, I don't have permission to read the copy. --- What does the acl say? (Attached a script, lsacl, that I use -- it works with linux or cygwin and allows wildcards).

cygwin potentially corrupting permissions?

2015-09-23 Thread Greg Freemyer
All, I've noticed on 2 different machines that if I copy (cp) a file I can read with cygwin, I don't have permission to read the copy. I don't recall that happening in that past. If this was Linux I would feel comfortable looking at umask, etc. to figure out what is going on. With cygwin I'm

Re: ssh fails after joining domain

2015-09-23 Thread Linda Walsh
Hoot Thompson wrote: I'm working on a group of Windows Server 2012 R2 systems. Prior to joining the systems to our domain controller, I install the openssh components after which I can ssh into the system using the Administrator account and password. However, as soon as I join a server to our

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Linda Walsh
Walter L. wrote: > > I believe the target of the symlink should be "protocol" (i.e. > > singular) > > Err. That is. How did no one found it earlier? --- Because it is plural on unix/linux? MS seems to have misspelt it? I believe it's "misspelt" due to the 8 character limit for legacy file

Re: Issues encountered with new Cygwin version

2015-09-23 Thread Marco Atzeri
On 23/09/2015 01:04, Walter L. wrote: Hi, I've just performed a fresh install of the latest (2.2.1) Cygwin on 64-bit Windows 7 and noticed 2 issues with the new version that I'd like to verify whether or not they are bugs: 2) The 'touch' command creates a file with the executable bit set