Re: Dir not mounted when logging in through ssh

2006-06-20 Thread Igor Peshansky
On Tue, 20 Jun 2006, Alexander.Farber wrote:

 Hello,

 I have a problem that a directory ( /cygdrive/h mounted
 to the H:\ which is in turn mounted to \\bonfs01\afarber )
 is visible in the normal Cygwin console, but disappears
 when I login into the same PC via OpenSSH:

 [EMAIL PROTECTED] ~
 $ mount
 C:\apps\Cygwin\bin on /usr/bin type system (binmode)
 C:\apps\Cygwin\lib on /usr/lib type system (binmode)
 \\bonfs01\afarber on /cygdrive/f type system (binmode,noexec)
 C:\apps\Cygwin on / type system (binmode)
 c: on /cygdrive/c type system (binmode,noumount)
 e: on /cygdrive/e type system (binmode,noumount)
 h: on /cygdrive/h type system (binmode,noumount)

 [EMAIL PROTECTED] ~
 $ hostname
 BOWEC101

 [EMAIL PROTECTED] ~
 $ ssh bowec101 mount
 Warning: Permanently added 'bowec101,172.25.91.22' (RSA) to the list of
 known hosts.
 [EMAIL PROTECTED]'s password:
 C:\apps\Cygwin\bin on /usr/bin type system (binmode)
 C:\apps\Cygwin\lib on /usr/lib type system (binmode)
 \\bonfs01\afarber on /cygdrive/f type system (binmode,noexec)
 C:\apps\Cygwin on / type system (binmode)
 c: on /cygdrive/c type system (binmode,noumount)
 e: on /cygdrive/e type system (binmode,noumount)


 There is some /cygdrive/f dir instead,
 but I can't access it, when logged in via OpenSSH:

 $ ll /cygdrive/f
 ls: /cygdrive/f: No such file or directory


 Does anybody please have an idea what is happening?
 Using newest Cygwin (but not a snapshot) and Win 2003.

http://cygwin.com/faq/faq.using.html#faq.using.shares.
Depending on your setup, you might be able to issue a 'net use' command
from your ssh session to allow connecting to that share.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: checkdir: cannot create extraction directory

2006-06-20 Thread Igor Peshansky
On Tue, 20 Jun 2006, bh77 wrote:

 I am trying to unzip a file using the following command from a bash script
 under cygwin and receive the following error - which looks as though it may
 be permissions related. Does anyone have any idea what may be causing it ?

 code :
 # if the target directory does not exist, create it.
 if [ ! -d ${TARGET_DIR} ]
 then
   echo making target dir
   mkdir ${TARGET_DIR}
 fi
 unzip -u ${SRC_DIR} **/*.jar -d ${TARGET_DIR}

 error:
 checkdir:  cannot create extraction directory /cygdrive/c/target
 any ideas ?

Yes: use quotes around variable references.  The above is what you can get
when your directory names contain spaces.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: bash and CSRSS consuming 100% of CPU

2006-06-20 Thread Igor Peshansky
On Tue, 20 Jun 2006, Science Guy wrote:

 From message http://cygwin.com/ml/cygwin/2006-06/msg00534.html:

  Dave, I think you missed this:
 
 sciguy wrote:
 I am networked to a Linux machine, so I moved the tar file
 cygwin-inst-20060614.tar.bz2 over to the Linux machine, created a dummy
 cygwin directory to hold the file, and un-tarred it there using this
 command:
 
 % /bin/tar -jxvf cygwin-inst-20060614.tar.bz2
 
 Then I ftp'd the entire un-tarred file and directory structure over the
 cygwin directory of the affected Windows PC.
 
 This is why I kept mentioning that the snapshot cygwin DLL wasn't
 installed in the right location.  I correctly assumed that this step did
 not put the cygwin DLL (or any of the cygwin programs) in c:\cygwin\bin.
 The cygcheck output made this pretty clear.
 
 cgf

 Yes, when I untarred the file with /bin/tar -jxvf
 cygwin-inst-20060614.tar.bz2, I found it contained only these two
 top-level directories:  /etc and /usr.  It did not contain a /bin
 directory.

Well, untarring on Linux in itself wouldn't have been so bad, but you've
probably used a Windows ftp to copy the files to your PC -- and that's
where the problem lies.  Cygwin's ftp would have understood Cygwin mounts,
and placed all the files in /bin (which /usr/bin is an alias for, as far
as Cygwin applications are concerned), though, of course, it too would not
have been able to replace cygwin1.dll, for the obvious reasons.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: find dir expr1 -o expr2 does not work

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, root wrote:


 Hi,
 I posted my request for help, but the client i used truncated the message.
 I post it again for your attention.
 By the way
 find common -type f -o -type l -print  does not works either.
 I think the -o flag  is returning false.

I have a nagging suspicion that you're using a non-Cygwin find...  I think
it's time you read and followed
 Problem reports:   http://cygwin.com/problems.html
(especially the bit about attaching, as an uncompressed text *attachment*,
the output of cygcheck -svr on your system).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh password-less cmds to Windows 2003 don't return any output

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, John McNulty wrote:

 Hello,

 I've been testing executing command via password-less SSH (public key)
 logins from  MacOSX and OpenVMS clients to a Redhat EL AS 4 server,
 and a WinXP Home system (with Cygwin's OpenSSH).  All works ok and I
 can issue test commands like:

 $  ssh [EMAIL PROTECTED] ipconfig

 and see the output from ipconfig on the client.

 However I've just installed and configured Cygwin OpenSSH on a Windows
 2003 server, and setup password-less logins (via public keys) as
 before. But when I try and issue a command via ssh from the client I
 get no command output back at all.  The remote command just completes
 silently.  The password-less login is working just fine.

 Does anyone else see this and have any idea why I'm getting this
 behavior?

Cygwin ssh (and basically all terminals except the Windows console) use
pipes to emulate ttys (so-called ptys).  Some Windows applications don't
like these ptys and won't write data to them (and they will certainly not
detect them as a console, so any console-specific functions won't work
either).

 I followed the instructions in ssh-host-config and opted to use the
 sshd_server account (which kind of caught me by surprise).  Obviously
 this changes the way ssh works on Cygwin a little.

On Windows 2003, SYSTEM does not have the appropriate privileges to switch
user contexts, so ssh-host-config needs to create an account that does.
Read http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch for
details.

 Ultimately the object of the exercise here is to drive a CLI app on
 Windows 2003 from batch jobs on OpenVMS.  Cygwin OpenSSH is the only
 way I've been able to think of to solve this problem.  The other
 clients and servers are only being used to test my methodology is
 correct, and it works flawlessly on WinXP Home.

You are not guaranteed that the program you want to drive will work with a
pty.  The easiest way to check is to run the application in rxvt.  If that
works, your app will probably work over ssh as well.  If it doesn't, don't
even bother to set up ssh.  Whether or not this works is specific to the
application you intend to run.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Re: window resizing not updating COLUMNS and LINES

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, Valster Nico-anv009 wrote:

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  On Behalf Of mwoehlke
  Sent: Thursday, June 01, 2006 1:47 AM
  To: [EMAIL PROTECTED]

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

 [snip]
 P.S. rxvt behaves the same but that mentioning that would make this mail
 inappropriate for this list if I read this thread correctly

Only if you are running rxvt in X mode and talking about things that have
to do with visual rendering of the window (e.g., fonts, positioning, etc).
Then this would belong on the cygwin-xfree list.  Otherwise, mentioning
rxvt should be fine.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: sed: 4.1.5 breaks libtool generation

2006-06-21 Thread Igor Peshansky
http://cygwin.com/acronyms/#TOFU reformatted.

On Wed, 21 Jun 2006, Stepp, Charles wrote:

 -Original Message-
 From: Christopher Faylor [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 17, 2006 12:30 AM
 To: [EMAIL PROTECTED]

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

 Subject: Re: sed: 4.1.5 breaks libtool generation

  On Sat, Jun 17, 2006 at 02:24:00PM +1000, Mark Hessling wrote:
  Given the fact that cygwin runs on a machine where the native linend
  is CRLF, having a major component not recognise CRLF as a linend when
  handling text files is, AFAIAC, a major problem.
 
  ...unless you stop to consider that sed is supposed to work correctly
  on binary files.
 
  cgf

 It is?

Yes.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problems using 'mkdirhier'

2006-06-21 Thread Igor Peshansky
On Wed, 21 Jun 2006, Angelo Graziosi wrote:

 Trying to build an application downloaded from the web, the make fails
 using 'mkdirhier'. I have reproduced this with the following example:

 As Administrator:
 -
 $ cd
 $ mkdirhier /home/Administrator/foo1/foo2/lib
 mkdir: cannot create directory `//home': No such host or network path
 mkdir: cannot create directory `//home/Administrator': Permission denied
 mkdir: cannot create directory `//home/Administrator/foo1': Permission denied
 mkdir: cannot create directory `//home/Administrator/foo1/foo2': Permission 
 denied
 mkdir: cannot create directory `//home/Administrator/foo1/foo2/lib': 
 Permission denied
 -

 The system is W2K SP4 with ALL CYGWIN installed.
 I am using the snapshot : 1.5.20s(0.155/4/2) 20060614 16:21:31
 In cygwin am using the following test packages:

coreutils-5.96-1
emacs-21.3.50-2.*
findutils-4.3.0-1
lesstiff-0.94.4-1
tar-1.15.90-1
xorg-6.8.99.901-1.*

Most of the above is irrelevant.  This sounds like a bug in mkdirhier, and
I also seem to recall that it was mentioned on the Cygwin lists before,
with proposed fixes.  Apparently, the fixes haven't been incorporated in
6.8.99.901-1.

Googling for mkdirhier site:cygwin.com inurl:ml/cygwin should turn up
the fixes you need.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: updwtmpx

2006-06-21 Thread Igor Peshansky
On Thu, 22 Jun 2006, Luis P Caamano wrote:

 The latest gnome-terminal, which works nicely btw, complaints before
 first start that it cannot find updwtmpx in cygwin1.dll.  I see that
 it was added back in February but I can't figure out which version
 includes it.

 http://article.gmane.org/gmane.os.cygwin.cvs/2345/match=updwtmpx+cygwin

 Perhaps it's in an experimental version?

It's a snapshot (http://cygwin.com/faq/faq.setup.html#faq.setup.snapshots).
It'll also be in 1.5.20, whenever that comes out.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: updwtmpx

2006-06-22 Thread Igor Peshansky
http://cygwin.com/acronyms/#TOFU reformatted.

On Thu, 22 Jun 2006, Luis P Caamano wrote:

 On 6/22/06, Igor Peshansky [EMAIL PROTECTED] wrote:

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  On Thu, 22 Jun 2006, Luis P Caamano wrote:
 
   The latest gnome-terminal, which works nicely btw, complaints before
   first start that it cannot find updwtmpx in cygwin1.dll.  I see that
   it was added back in February but I can't figure out which version
   includes it.
  
   http://article.gmane.org/gmane.os.cygwin.cvs/2345/match=updwtmpx+cygwin
  
   Perhaps it's in an experimental version?
 
  It's a snapshot
  (http://cygwin.com/faq/faq.setup.html#faq.setup.snapshots).
  It'll also be in 1.5.20, whenever that comes out.
  Igor

 Thanks for your reply Igor.

 Does that mean that the gnome-terminal I got from standard setup was
 compiled with the cygwin1.dll file from a snapshot?

First, you did not get gnome-terminal from the official Cygwin
distribution, since a search for gnome-terminal on the Cygwin package
search page turns up only the icons and the themes.  The fact that you
used Cygwin setup to install gnome-terminal doesn't really matter, since
you can supply any mirror to Cygwin setup and it'll happily give you all
the packages on that mirror alongside the official Cygwin packages.

That means you will need to take it up with whoever provides
gnome-terminal.  I'm guessing it's the CygwinPorts project, and they have
their own mailing lists.  Since I can't find anything after a quick search
of CygwinPorts about gnome-terminal requiring a snapshot, I can only
assume that it's an unintentional packaging error, but Yaakov would be the
person to answer that (on a CygwinPorts list).

Also, a minor clarification: it was built against the snapshot *headers*,
not just the snapshot cygwin1.dll, but the upshot of that is that it
requires a snapshot DLL.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Pb with bash script under cygwin

2006-06-22 Thread Igor Peshansky
On Thu, 22 Jun 2006, ydubost wrote:

 Hello,

 Thank you for all your suggestions.
 I have finally managed to do what I wanted.

 There was several reasons:
1) the different -name options of find have to be enclosed in protected
   bracket \( ... \)
3) the need to use the eval function
2) in a script, one need to protect the different special characters from
   being interpreted before the final command. For exemple, I have to
   write \\\( in order to obtain \(.

I suspect that learning about single vs. double quoting, and bash arrays,
would have saved you a lot of grief.

 The problem, is that I don't really understand what happens, why I nedd to
 put 3\ and not 2 or 4, but the main point is that it now works.

The paired-up backslashes produce one escaped backslash.  The last one
escapes the parenthesis.

  my new script is :

 TYPELIST=._bc ._ch ._cl ._cm ._df ._dl ._ev ._fl ._gr ._hl ._is ._mb ._mm
 ._mp ._ov ._pr ._sn ._sy ._ti ._tr ._sf

 Extension=$(echo ${TYPELIST} | sed -es:[ ][.]:' -delete \\\) -o \\\( -iname 
 '*.:g | sed -es:^[.]:\\\( -iname '*.: | sed -es:$:' -delete \\\):)

Oh, and learning about sed would help too.  In particular, you can do all
of the above in one expression.  Incidentally, you can also do this all in
bash, without spawning the sed processes...

 MaCommande=find . ${Extension}

 eval ${MaCommande}

...and you need quotes here too, i.e.,

eval ${MaCommande}

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: PCYMTNQREAIYR (was: window resizing not updating COLUMNS and LINES)

2006-06-22 Thread Igor Peshansky
On Thu, 22 Jun 2006, Buchbinder, Barry (NIH/NIAID) [E] wrote:

 Valster Nico-anv009 wrote:
  -Original Message-
  From: Igor Peshansky
  Sent: Wednesday, June 21, 2006 5:42 PM
  To: Valster Nico-anv009
  Cc: mwoehlke; cygwin at cygwin.com
  Subject: RE: Re: window resizing not updating COLUMNS and LINES
 
  On Wed, 21 Jun 2006, Valster Nico-anv009 wrote:
 
  http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.
 
  I got above reply, which leads to:
  Please Configure Your Mailer To Not Quote Raw E-mail Addresses In
  Your Replies. Some mailers include the raw e-mail address in the Joe
  [EMAIL PROTECTED] wrote: line. The web archives for the mailing
  lists are publicly available. Let's not feed the spam harvesters!
  (Some people express doubt that munging addresses actually works, but
  a spam report from CDT.org shows that spam harvesters often don't
  bother decoding even the simplest anti-spam measures such as
  replacing @ with AT and . with DOT).
  Of course, there may be other raw e-mail addresses in messages, e.g.,
  in signatures, but that's the choice of the person sending the
  message
 
  I would happily follow the suggestion, but the MS Outlook help,
  directs me to Tools/Options/Preferences/Email options.
  I do not see anything there that selectively manipulates quoted
  addresses. Is the idea that I manually remove the address from the
  quote. Not that I mind, but it seems prone to being forgotten once in
  a while

 Outlook QuoteFix is what I use.
 http://home.in.tum.de/~jain/software/outlook-quotefix/
 I load it when replying to cygwin and get rid of it afterwards.  No big
 deal.

 And there is OE-QuoteFix for Outlook Express
 http://home.in.tum.de/~jain/software/oe-quotefix/

 And to not take credit from others, see the archives:
 http://sourceware.org/cgi-bin/search.cgi?q=quotefixcmd=Search%21form=e
 xtendedm=allps=50fmt=longwm=wrdsp=1sy=1wf=2221type=GroupBySite=
 noul=%2Fml%2Fcygwin%2F%25

 Maybe this should be a FAQ or added to the explanation of the
 PCYMTNQREAIYR acronym.

I don't see why, since Googling for PCYMTNQREAIYR Outlook turns up the
pointers that you quoted above.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: how to create static library in cygwin

2006-06-22 Thread Igor Peshansky
On Thu, 22 Jun 2006, cxf wrote:

 Hello, everyone:
I compile source files, create a dll file cygtspi.dll , an import file
 libtspi.dll.a and a link file libtspi.la,How can I use the dll in
 windows(such as using the dll in VC). the cygtspi.dll seems depends on
 several cygwin's dll.

Well, of course -- you are compiling a Cygwin program.  If you want a pure
Win32 program, check out the MinGW project.  Cygwin's gcc provides a
pseudo-crosscompiler that will build MinGW executables when given the
-mno-cygwin option, but any questions about that mode should be addressed
to the MinGW lists.

Another question: How can I create the static library, So I can use
 the static library only( such that can import the static library in VC),
 not using the dll.

You create a static library the normal way -- using ar.  But keep in
mind that if you create a static library targeted for Cygwin, it will
still depend on cygwin1.dll.  You can again use the MinGW mode (with the
corresponding redirection to the MinGW lists on any questions).
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to Create Static library or dll file not depending on cygwin's dll

2006-06-22 Thread Igor Peshansky
On Thu, 22 Jun 2006, cxf wrote:

 I have a source file crypto.c,in this file I use the functions which in
 openssl library.
 So I compile the file with the following command
 gcc -c crypto.c
 gcc -shared -mno-cygwin -o crypto.dll crypto.o -lcrypto

 But the compiled dll file crypto.dll depends on the
 cygcrypto-0.9.8.dll, can I have any methods compile a dll file not
 depending on the cygcrypto-0.9.8.dll.

If you build a Cygwin static or shared library, it will depend on Cygwin
(not surprisingly).  If you need to build a non-Cygwin library, your best
alternative would be MinGW (see my other message), but that may involve
some porting effort on your part.

 Another question:
 I want compile the static library,so using the following command :
 gcc -c crypto.c
 gcc -static -o crypto.lib crypto.o -lcrypto.

 That will give a error. how to compile the static library?

http://cygwin.com/acronyms/#STFW.  The first result returned by Google
for gcc static library gives detailed instructions on how to do that.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: 1.5.19: tar runs normally from command line but terminates early when run from crontab

2006-06-22 Thread Igor Peshansky
On Thu, 22 Jun 2006, G.W. Haywood wrote:

 Hi Eric, Charles,

 Thanks for the help guys, that got me going in the right direction.

 On Mon, 19 Jun 2006, Eric Blake [EMAIL PROTECTED] wrote:

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  According to G.W. Haywood on 6/19/2006 3:53 AM:
 
   When run from the command line the job works ... and when run from
   the crontab it fails...
 
  It's probably a bug in your cron setup, rather than a bug in tar.  Have
  you run cron-diagnose?  Can you get simpler cron tasks to work?  Remember
  that cron is run as a different user than the normal command line, so
  permissions do play a role on what the cron script can do.

 The cron instance was running as the same user that could successfully
 run the tar job from the command line, so it wasn't permissions, but I
 think you're right, Eric, about it being the cron setup.  I think that
 the problem is there's no MTA running on the box.  Even though there's
 no mail to be sent by cron it seems to be trying to connect to an MTA
 before finding that there's no mail to send.  Unfortunately, when it
 finds there's no MTA it terminates the job.  (If I had syslog running
 it might tell me... :)

Check the Windows event log.  Or install a syslog daemon (Cygwin has 2 --
the original syslog in inetutils, and syslogng in syslog-ng).

 When I redirected tar's stdout (as well as the existing redirection of
 its stderr) to a file, the tar job in the crontab ran to completion.

Yes, cron will try to email you the output of a job if it's not redirected
into a file, even if the output is empty.

 Funny thing is, I'm sure I have several Linux machines kicking around
 which are running jobs from crontabs but not running MTAs.  I'd better
 check that, I suppose...

You don't need to *run* an MTA, only to have an MTA installed (e.g.,
sendmail).  FWIW, Cygwin has a few MTAs that you can use (ssmtp, exim).

 On Wed, 21 Jun 2006, Stepp, Charles wrote:

  running from cron does not set the environment the same as with an
  interactive session.

 Charles, I was pretty sure that it wasn't an environment problem as
 the command shouldn't be relying on anything in the environment for
 its execution (sure, you never know until you try:).

Well, if your cron job says tar instead of /usr/bin/tar, you're
relying on the environment.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Issue with shmget

2006-06-23 Thread Igor Peshansky
On Fri, 23 Jun 2006, Rahul Gulati wrote:

 Hi,

 I am new to cygwin and trying to port existng Linux
 based implementation of shared memory on cygwin.

 I am having issues with shmget call. I tried to debug
 and found out that everytime I try to call shmget
 function I get an error and the main thread exits:
 Program exited with code 06000

 I checked cygwin documentation and mailing lists:
 I have ipc-daemon2 running

FYI, ipc-daemon2 is now obsolete, and unless you have an unofficial
package that depends on it, I suggest you stop it, as it's only wasting
system resources.

 cygserver is also running with default options which
 includes :
 XSI IPC Shared Memory support.

 Would appreciate if someone could point out what is
 the real issue.

 Thanks...
 Rahul

 ps -aef output::

  rgulati29843980 con  15:04:43
 /usr/bin/ipc-daemon2
   SYSTEM2088   1   ?  17:31:08
 /usr/bin/cygrunsrv
   SYSTEM27962088   ?  17:31:08
 /usr/sbin/cygserver
  rgulati38521432 con  17:59:05 /usr/bin/ps


 Here is a snippet of my code:

 int main{)
 {
int i;
for (i=0; iSHM_TAB_SZ; i++) {
   shm_tab[i].free=1;
}
shm_id = shmget(LOADGEN_SHM_KEY, SHM_TAB_SZ*sizeof(SHM_DATA),
0777|IPC_CREAT);
if (shm_id 0) {
   if (debug) printf(\nLGEN:shmget failed...\n);
  perror(LGEN:shmget:);
}
 }

Not nearly enough information, the problem reporting guidelines at
http://cygwin.com/problems.html were not followed (e.g., no attached
cygcheck output), and your code snippet isn't self-contained, doesn't
compile (even discounting Yahoo's line wrapping -- next time, please
attach the code), and doesn't reproduce the bug.  In the absense of the
facts, I can only offer a WAG: does $CYGWIN contain server when you run
your program?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Issue with shmget

2006-06-23 Thread Igor Peshansky
http://cygwin.com/acronyms/#TOFU reformatted.

On Fri, 23 Jun 2006, Rahul Gulati wrote:

 --- Igor Peshansky [EMAIL PROTECTED] wrote:

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  On Fri, 23 Jun 2006, Rahul Gulati wrote:
 
   Hi,
  
   I am new to cygwin and trying to port existng Linux
   based implementation of shared memory on cygwin.
  
   I am having issues with shmget call. I tried to debug
   and found out that everytime I try to call shmget
   function I get an error and the main thread exits:
   Program exited with code 06000
  
   cygserver is also running with default options which
   includes :
   XSI IPC Shared Memory support.
 
  Not nearly enough information, the problem reporting guidelines at
  http://cygwin.com/problems.html were not followed (e.g., no attached
  cygcheck output), and your code snippet isn't self-contained, doesn't
  compile (even discounting Yahoo's line wrapping -- next time, please
  attach the code), and doesn't reproduce the bug.  In the absense of
  the facts, I can only offer a WAG: does $CYGWIN contain server when
  you run your program?
  Igor

 Will the system call work if i stop the daemon and
 just have cygserver running with default options???

You have not provided enough information for anyone to help you.  Please
read and follow the instructions at
 Problem reports:   http://cygwin.com/problems.html

Moreover, if I understand your question correctly, it does not follow at
all from the guess I offered and the question I asked above: when you run
your code (the program that you provided a snippet of, not the cygserver
daemon), does the environment variable CYGWIN contain the word server in
it, as mentioned in /usr/share/doc/Cygwin/cygserver.README?  FYI,
following the instructions above would have provided us with the output of
a tool (cygcheck) that would have answered my question.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cron only sees local HD mounts

2006-06-24 Thread Igor Peshansky
On Sat, 24 Jun 2006, Han Yuan wrote:

 I'm on a windows XP pro based system.  I've been trying to get cron to
 run some scheduled scripts but it unfortunately only is able to
 recognize my locally mounted hds and not the network drives I have
 mapped (c and e are my local drives).

 I have installed cron to run as a service as myself (instead of system).
 I've run all the various utilities, uninstalled, reinstalled several
 times:

 cygrunsrv --stop cron
 cygrunsrv --remove cron
 cygrunsrv --install cron -p /usr/sbin/cron -a -D -e CYGWIN=tty ntsec 
 binmode -u hyuan
 cygrunsrv --start cron

 I have also googled extensively.  At this point in time, I am at a
 complete loss.  Any help would be appreciated.  Could it be a
 permissions/group issue?  I cannot tell.  I ran cron_diagnose.sh 1.10
 and it said all was well.

cron_diagnose.sh has been known to miss a few cron setup issues,
especially in tricky situations like yours.  In particular, I don't think
it was designed to test installations where cron does not run as SYSTEM
(though that information may be out of date by now).  However, Mark (the
author of cron_diagnose.sh) usually strives to make it more comprehensive.

 Any wisdom that the group can provide would be MUCH appreciated.  I've
 spent at least 5 hours banging my head on this issue.

  c:\Program Files\Common Files\Sonic Shared
  %
  c:\Program Files\Executive Software\Diskeeper\

There's the '%' in your PATH that looks a bit suspicious.  Not that it
would normally hinder accessing network shares, but something to
investigate.

 Output from C:\cygwin\bin\id.exe (ntsec)
 UID: 11454(hyuan)GID: 10513(Domain Users)
 544(Administrators)  545(Users)   11621(company)
 11620(corp)  10513(Domain Users)  11203(Eng)
 13615(qa)13752(qaall) 11148(Remote Access)
 14137(Wireless)

That looks fine.

 m:  net NTFS 10240Mb   7% CP CS UN PA FC Data
 u:  net NTFS  2048Mb   1% CP CS UN PA FC Users
 x:  net NTFS 10240Mb   7% CP CS UN PA FC Data
 y:  netN/AN/A
 z:  netN/AN/A

It would also help to know exactly what your cron script looks like (at
least the part that fails to access the shares.

 Service : cron
 Current State   : Running
 Controls Accepted   : Stop
 Command : /usr/sbin/cron -D
 stdin path  : /dev/null
 stdout path : /var/log/cron.log
 stderr path : /var/log/cron.log
 Environment : CYGWIN=tty ntsec binmode
 Process Type: Own Process
 Startup : Automatic
 Account : MOVARIS\hyuan

This also looks fine -- it seems to authenticate as the right (domain)
user.  One thing to note is that you might want to introduce a dependence
on the tcpip service, so that cron doesn't start before that service...
But then it should still work if you restart the service manually.

Another thing to try is adding a 'net use' command (with a password) to
authenticate the cron script to the shares.  I'm not suggesting this as a
permanent solution, but it would help rule out cron authentication issues
vs. other environment issues.  Also, is your machine connected to the
network and to the domain when your cron script runs?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Suggestion: split vim support files into separate package

2006-06-26 Thread Igor Peshansky
On Mon, 26 Jun 2006, Marshall Abrams wrote:

 I want to suggest splitting vim support files (installed in
 /usr/share/vim/vimmajor-version) into a separate package from the
 binaries.  There are two versions of vim binaries in Cygwin, the no-X
 version (vim), and the version with X GUI compiled in (gvim), but their
 (major) versions are not always in sync (as recent posts on this list
 illustrated).  The problem is that if you install the newer version in
 the most obvious way, the support files for the older version get
 deleted, and all of a sudden the older version which you're still using
 doesn't function properly.  (For example, at the moment, installing the
 latest no-X vim in Cygwin, at version 7.0, deletes the support files for
 the latest version of gvim in Cygwin, at version 6.4.)

 Of course there are various ways to work around this problem without too
 much trouble, but why not just make the support files a separate package
 with dependencies linking both versions of the binaries to it.  That
 way, I assume, the older support files wouldn't go away if something
 still depends on them.

Sorry, but that's not how it works.  Cygwin package dependences are not
implicitly versioned, so if you release a newer version of the support
files package, it will overwrite the old one, just as it does in the
current setup.  Even now, gvim requires vim, and that doesn't help, as you
can see.

The vim and gvim packages are really intended to be released in lock-step.
The gvim maintainer was already asked to prepare a 7.0 version -- we'll
just have to wait until he does.

An alternative is to introduce explicitly versioned dependencies (i.e.,
where the version becomes part of the package name).  This is already done
for shared library packages -- whenever a new version gets released, a
compatibility package with the old version gets split off.  The problem is
that this is quite a bit of effort, http://cygwin.com/acronyms/#SHTDI,
and the vim/gvim maintainers are (appropriately) not willing to invest
that much effort.  While it's necessary for shared libraries (since you
never know who will be needing the old DLL version), I don't think this
would be too useful for two sister packages like vim and gvim.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: UTF-8 Cygwin

2006-06-26 Thread Igor Peshansky
On Mon, 26 Jun 2006, Linda Walsh wrote:

 Christopher Faylor wrote:
  On Tue, Jun 06, 2006 at 02:24:29PM -0700, Linda Walsh wrote:
 
   SUZUKI Hisao wrote:
  
I made a patch to cygwin1.dll to support UTF-8.
It allows you to use all of characters and file (or path) names
allowed in Windows, while keeping binary-compatibility with the
current Cygwin.  It is fairly perfect except for lack of locale
support etc.  So it may remind you of the good old BeOS.  See:
http://www.okisoft.co.jp/esc/utf8-cygwin/
   
   (and for bottom readers...)
   When will we see this in the main-stream cygwin?
   Soon? :-)
  
  You can answer your own question.
  Look here: http://cygwin.com/ml/cygwin-patches/ and see if you notice
  any patch submissions.
 
 
I am not certain, but I'm interpreting that as a no.

For people who know and are experts in a topic, the answers are
 self-evident. For those who are not, we may not, not only not know where
 to look but may not even know the right question.

Also, I don't expect my interpretation of some information or reality
 to be the same as someone else's interpretation.  Often I find my
 interpretation is different from other's.

The answer is fairly simple, and has been reiterated on this list many
times.  http://cygwin.com/acronyms/#PTC.  Links to external projects
that are forks off the main Cygwin source aren't.  For something to get
into Cygwin, someone needs to submit a patch (or, preferably, a series of
patches) against the source in CVS.  The patches will be discussed, and,
hopefully, eventually accepted into the main source.  Once that happens,
the next release will contain the changes.  Until then, the answer, as you
correctly surmised, is no.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: snapshots: first resort, or last resort?

2006-06-26 Thread Igor Peshansky
 be invaluable to the Cygwin project.  If done
poorly, it would be a great hindrance.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: snapshots: first resort, or last resort?

2006-06-26 Thread Igor Peshansky
On Tue, 27 Jun 2006, Markus Schönhaber wrote:

 Igor Peshansky wrote:
  On Mon, 26 Jun 2006, Linda Walsh wrote:
  If it were me, (and I know it's not, thank-you), I'd feel better
   about getting updated releases into user's hands as soon as reasonable.
   If I fix something, or change something, I wouldn't want to wait 6
   months to release it, (ideally,) so if a change I make introduces an
   untested and unthought-of incompatibility I'm more likely to remember
   the changes that went into the code.  Five-Six months later, on active
   code and the changes might as well have been made by someone else and
   I'm more likely to have to go in cold to figure out which change broke
   things for some isolated user test case. If there have been many
   changes, it's all the more difficult to find out which change introduced
   the problem (IMNSHO).
  
  I would take advantage of the Test release present in setup to give
   people time to check things, then rotate it into the Current slot, and
   the older one to Previous.  I know other people have different working
   styles, but it helps to understand where they are coming from and their
   rationale for doing it the way they do it. Linda
 
  What is the difference between installing a test release of Cygwin and
  installing a snapshot of Cygwin (other than the mechanism by which you
  do it)?  How would it help you if the current snapshot were made available
  as a release today?  It would be as (un)stable as the snapshot it was
  packaged from.  The Cygwin developers intentionally do not make snapshots
  installable via setup, because of exactly that mindset: releases are
  stable, snapshots aren't.  If you got something via setup, you would feel
  you have the right to complain about it if something breaks and demand
  that it be fixed.  If you install a snapshot, well, you were warned.
  You'd still complain (and we want you to), but you'll probably invest more
  effort in tracking down the problem and producing a simple testcase.

 Nevertheless I'd like to propose that the cygwin snapshots shouldn't
 merely be called snapshot in the future but stable snapshot. This
 might help to provide the cozy and warm feeling which seems to be so
 desperately needed.

Ah, I can just imagine the subject of a message: Please do not install
the 20060624 stable snapshot -- it is hopelessly broken. :-D

Though jokes aside, snapshots that multiple people used with no (or few)
problems could be marked stable so that people who are too cautious to
live on the bleeding edge of Cygwin can bring themselves to get the
benefit of the latest fixes in the snapshots.  Of course, that would
involve actually having the people that test the snapshots and report
successes somewhere (and hopefully on a separate mailing list), and then
someone to collate the results and notify the Cygwin developers to mark
the snapshot as stable (with pointers to success messages as proof of
stability).  But, as usual, http://cygwin.com/acronyms/#SHTDI.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

RE: Fortran Compiler Error CMBFAST

2006-06-27 Thread Igor Peshansky
On Tue, 27 Jun 2006, Williams, Gerald S (Jerry) wrote:

 I just recreated the problem with some minimal code,
 and got some more information in the process:

 Create a file foo.for that contains one line:
 include 'foo.inc'

 Create an empty file named foo.inc in the same
 directory.

 Copy foo.for to foo.f, foo.FOR, and foo.F and
 try to compile all four of them from that directory:

 $ f77 -c foo.for# runs OK
 $ f77 -c foo.f  # runs OK
 $ f77 -c foo.FOR# runs OK
 $ f77 -c foo.F
 foo.F:1:
include 'foo.inc'
^
 Unable to open INCLUDE file `foo.inc' at (^)
 $ _

Doesn't foo.F represent a FORTRAN file that needs to be preprocessed by
the C preprocessor?  Changing foo.F to contain

#include foo.inc

makes it work for me.

 So it seems that the rules by which the preprocessor
 looks in the current directory and/or the directory
 containing the source file does not apply to files
 named *.F for some reason. It's possible that this
 was intentional, although I don't get this behavior
 on my Linux box (which granted is using GCC version
 3.2.3, so it could have changed since then...).

Does running f77 with '-v' help?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problems compiling ImageMagick

2006-06-27 Thread Igor Peshansky
On Wed, 28 Jun 2006, Daniela Duerbeck wrote:

  Deleting Cygwin means you don't have the linker (and compiler) so
  where could the errors come from?

 No, I meant that I deleted the whole C:\cygwin directory and all tmps
 and installed new in d:\cygwin

Whoops, is this a typo?  If not, and you really did delete c:\cygwin, but
installed in *D*:\cygwin (emphasis mine), then you could be in trouble
because the mount table (which you didn't remove) still points to
c:\cygwin.

I think it's time you followed the Cygwin problem reporting guidelines at
http://cygwin.com/problems.html and attached (as an uncompressed text
*attachment*) the output of cygcheck -svr on the failing machine.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problems compiling ImageMagick

2006-06-27 Thread Igor Peshansky
On Wed, 28 Jun 2006, Daniela Duerbeck wrote:

 Hi Igor!

  Whoops, is this a typo?  If not, and you really did delete c:\cygwin,
  but installed in *D*:\cygwin (emphasis mine), then you could be in
  trouble because the mount table (which you didn't remove) still points
  to c:\cygwin.

 Where is this mount table?

For now -- in the registry.  However, the best way to look at or
manipulate the mount table is with the mount command.

 And how can cygwin really be uninstalled?

http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all

  I think it's time you followed the Cygwin problem reporting guidelines
  at http://cygwin.com/problems.html and attached (as an uncompressed
  text *attachment*) the output of cygcheck -svr on the failing
  machine.

 OK, tomorrow.

Good -- that'll tell us about the PATH settings, the mount information,
the installed packages, and many other bits of Cygwin configuration useful
in diagnosing your problem.  If possible, please run cygcheck from the
same setting as that from which you run the problem command.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh and SYSTEM

2006-06-28 Thread Igor Peshansky
On Wed, 28 Jun 2006, L Anderson wrote:

 Christopher Faylor wrote:
  On Wed, Jun 28, 2006 at 04:50:26PM -0400, McGraw, Robert P. wrote:
 
   I am running WinXP SP2
  
   I installed openssh and followed the instructions at
   http://pigtail.net/LRP/printsrv/cygwin-sshd.html on how to install.
 
  Nicholas Fong ([EMAIL PROTECTED]) is the person responsible for those 
  instructions.
  ^^
 Perhaps a new Cygwin acronym is in order--something like:

 PDPSHFIYR--Please Don't Put Spam Harvester Food In Your Replies.

Or, in other words, PDP-6 (which had a whopping 256 kilowords of main
memory, more than enough to run spam harvester software).

There is a sort of poetic justice in including that email address in the
message.  Since Mr. Fong's broken instructions on installing ssh caused so
much spam to be sent to this list, it's only fair that some will now go
his way...  Also, the lucky ones that do get chastized for using his
directions are set on the right path by the people on this list, but think
of all the hapless souls blissfully unaware of the error of their ways
that continue to run ssh according to those instructions (until something
breaks, that is).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Help Understanding Path Issue

2006-06-29 Thread Igor Peshansky
On Wed, 28 Jun 2006, mwoehlke wrote:

 Scott Purcell wrote:
  I have CLASSPATHS and PATHS and some HOME directories set up.
  Eg: ANT_HOME value=C:/ant/bin

 I assume you meant CLASSPATH and PATH.

I think he meant CLASSPATHs and PATHs. :-)

  When I run ant from a cmd window all is good. It picks up the value
  and runs fine. But I do not want to use the cmd prompt, and would
  like to use cygwin. But when I issue ant I get the dreaded error:
  Error: JAVA_HOME is not defined correctly. We cannot execute
  /cygdrive/c/jdk1.5.0_02/bin/java

This is actually a bug in ant -- you want to set JAVA_HOME in such a way
that $JAVA_HOME/bin/java exists (i.e., for the Sun JVM you'd set it to
/cygdrive/c/jdk1.5.0_02/jre).

  I do not want to change all my HOME, PATH, values because some of the
  system software uses them as they are. Can I get around this? Is there
  where it makes sense to use a symbolic link?

 Nope, symlinks will not help you (or at least, they probably won't).
 If the program that looks at a particular environment variable is a
 Cygwin program, then the var should give a POSIX path. Otherwise it
 should give a Windows path. You should only have problems switching
 between the two if you have programs of both flavors looking at the same
 variable (other than PATH which Cygwin handles automagically).

Actually, the list of variables automatically translated by Cygwin was
posted here at some point (it may even be in the FAQ).  At the very least
it's PATH, HOME, and LD_LIBRARY_PATH, but there may be others.

In this particular case, ant is the program that does the translation.
Also, the path is used by the Cygwin program (the shell), so the POSIX
version is the right one.

 Example: I assume you are using a non-Cygwin Java (I don't believe I
 have even heard of a Cygwin JVM, so that seems likely), therefore your
 JAVAHOME should be a Windows path, regardless of what shell (A cygwin
 *sh vs. Windows cmd) you are using.

For Java, there are wrapper scripts that make Java understand some POSIX
paths (i.e., it won't translate paths passed as arguments to your Java
program, but it will translate POSIX paths in properties, CLASSPATH, etc).
Currently, the only way to get them is from CVS[1], but I would appreciate
testing and feedback.  However, you don't need those scripts to run ant.
[1] http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps

 Also see 'man cygpath'.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Access to Network Drive under ssh

2006-06-29 Thread Igor Peshansky
On Thu, 29 Jun 2006, David Greene wrote:

 mwoehlke wrote:

  You need to first do:
  net use /delete h:
 
  ...so that you don't get prompted

 Now I get this, which is what happened before I started
 sshd as dag.  Except I can still cd to //samba-drive/dag:

 $ net use H: \\samba-drive\dag
 System error 67 has occurred.

 The network name cannot be found.

You probably need to use quotes, i.e.,

$ net use H: '\\samba-drive\dag'

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: uninstall cygwin

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, f g wrote:

 I would like to uninstall a Cygwin installation under
 Windows XP: to do this I follow the instruction in

 http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all

 but I have several problems.

 Point 1) I type cygrunsrv -L at Cygwin prompt, but I get the message
 bash: cygrunsrv: command not found. What does this mean? Is it safe to
 assume that I have non Cygiwn services running, and that I can pass to
 point 2?

Yes, that basically means that you have no way of running Cygwin services
(well, technically, some Cygwin programs, notably inetd, know how to
install themselves as a service, but cygrunsrv wouldn't've helped you find
them anyway).  The FAQ could be clearer on this point.

 Point 2) What is the X11 server? How do I know if there are any Cygwin
 programs that might be running in the background, and in case there are
 some, how do I terminate them?

Use ps -ef to list all Cygwin processes (from all users).  Again,
probably something for the FAQ.

 If I complete these points, there should be no problem with the
 following ones: basically, I just delete Cygwin directory from the hard
 disk. I didn't add Cygwin to system path, neither did I set CYGWIN
 environment variable, so unless the installer did it, I shouldn't need
 to do anything else. Thanks for your attention,

You'll also want to delete the registry key, as outlined in the above
instructions.  Oh, and deleting the directory won't remove any shortcuts
created by the Cygwin installation packages (like those in the Start Menu
or on the desktop, or the associations created by the chere package), so
it's better to use setup.exe to uninstall everything first, *then* delete
the directory and the registry key.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: uninstall cygwin

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, Dave wrote:

 Igor Peshansky wrote:
  On Fri, 30 Jun 2006, f g wrote:
 
   I would like to uninstall a Cygwin installation under
   Windows XP: to do this I follow the instruction in
 
  You'll also want to delete the registry key, as outlined in the above
  instructions.  Oh, and deleting the directory won't remove any
  shortcuts created by the Cygwin installation packages (like those in
  the Start Menu or on the desktop, or the associations created by the
  chere package), so it's better to use setup.exe to uninstall
  everything first, *then* delete the directory and the registry key.

 Just to clarify, Igor's procedure won't remove the chere associations
 that he mentioned.

 If you don't recognise chere, then you don't have any associations to
 remove. If someone else set things up for you, run the following command
 (before uninstalling cygwin) to identify any associations:

 chere -l

 To remove the associations, run

 chere -u -s shell

 for each shell, where shell is the shell you installed
 (cmd/ash/bash/tcsh/pdksh/zsh). That's from memory (and I don't uninstall
 that often:), see man chere for accurate information.

Right, thanks for the clarification, Dave.  I forgot that chere needed to
be explicitly invoked to add the association (and thus explicitly invoked
to remove it as well).  This also applies to other packages that need to
be explicitly configured (e.g., sshd, cron, etc).

In any case, the advice still applies -- any package that was installed
using Cygwin setup will need to be uninstalled using Cygwin setup to give
the preremove scripts a chance to run.  Technically, the preremove scripts
should undo whatever the postinstall scripts did (if they don't, it's a
packaging bug).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Need help running expect script under CYGWIN...

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, cledford wrote:

 Sorry to all for skewing the index - in the future is should be made
 much more obvious the requirements/process to post a technical question.
 (I posted through the web interface and instructions would be nice)

The instructions are at http://cygwin.com/problems.html (just a short
click away from the Cygwin home page, with the link named Problem
Reports -- I don't know how much more obvious you can get).  You posted
through the web interface at Nabble (which is not associated with Cygwin).
You might want to do some lobbying for them to include a link to the above
instructions.  And while you're at it, please tell them to allow posting
attachments using their web interface.

 For anyone running into this issue - the problem was the default use (by
 CYGWIN) of the windows telnet app.  By downloading and installing the
 suggested / inetutils package (located in the - net category under the
 package installer) CYGWIN then uses its own telnet app instead.

The default use is of whatever telnet app is in the PATH first.  That is
not a problem -- that is expected behavior.  The problem was that you were
missing the inetutils package, as Brian pointed out.  You could've
searched for bin/telnet\b on the package search page at
http://cygwin.com/packages/, or via cygcheck -p, to get this
information yourself.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwing list subscription

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, Abdellatif Ezzouhairi wrote:

 Hi,

 i'm currently doing simulations with ns-2 using cygwin,
 and i need to subscribe to cygwin mailing list
 how can i subscribe to this group !

Try http://cygwin.com/ml/#faq, which is one link away from

 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwing list subscription

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, mwoehlke wrote:

 Igor Peshansky wrote:
  On Fri, 30 Jun 2006, Abdellatif Ezzouhairi wrote:
   i'm currently doing simulations with ns-2 using cygwin,
   and i need to subscribe to cygwin mailing list
   how can i subscribe to this group !
 
  Try http://cygwin.com/ml/#faq, which is one link away from
 
   Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 
  HTH,
  Igor

 You can also check out gmane.org (group gmane.os.cygwin) if you would
 prefer an NTP interface to the list.

...but note that any problems with accessing the Cygwin mailing lists via
Gmane should be reported to Gmane.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Customizing setup.exe (How to specify default packages)

2006-06-30 Thread Igor Peshansky
On Fri, 30 Jun 2006, Harry Dellicker wrote:

 I know this has been asked before but I have not yet found a real answer.

  --- How does setup.exe decide which packages are to be installed by
 default?  ---

Simple.  Everything in the Base and Misc categories is installed by
default.  Any package that an installed package requires is installed by
default.  Shampoo, rinse, repeat.

 I do not see anything in setup.ini that controls this.

You didn't look hard enough.  It's everything with category:.* Base or
category:.* Misc.

 It is also not hard-coded in the setup program itself, as far as I can
 tell, nor does there seem to be any other obvious external source (file)
 which provides the necessary information.

Ah, but it *is* hard-coded in setup.  In two places.  See
PickView::defaultTrust() and packagemeta::set_action().

 I have seen the suggestion that any packages placed in Base will be
 included in the default package list, but that seems like a bit of a
 kluge.

Perhaps, but that's how it is.

 I have spent hours with google, and hours studying the setup.exe source
 code without any success.

 Does anyone have a answer to this?  Is it just so simple that any six
 year old could see it, but I'm no longer six?

It is pretty simple.  And, to answer the question you've put in your
subject line but never asked in the body of the message, the easiest way
to make some packages install by default is to create an empty dummy
package, put it in the Base category, and make it require all the
packages you want installed.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: /usr/bin/getopt executable, which package is it in ?

2006-07-01 Thread Igor Peshansky
On Sat, 1 Jul 2006, Darryl Miles wrote:

 CVS cygwin build of winsup module uses xmlto that uses getopt executable.

 Bash has a builtin implementation of getopt.  But the 'xmlto' tool which is
 used to build CYGWIN winsup module is expecting to be able to run an
 application version of getopt.  There does not appear to be a package called
 'getopt' so maybe this tool is hidden away inside another CYGWIN package.
 Does anyone know what package that is called, maybe the website CVS build
 instructions can be updated to include that pre-requisite package.

The Cygwin package search page (http://cygwin.com/packages/) knows.  So
does cygcheck (if the file is present on your machine, use cygcheck -f
/usr/bin/getopt; if it isn't, use cygcheck -p usr/bin/getopt).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Execute command at shutdown

2006-07-02 Thread Igor Peshansky
On Sun, 2 Jul 2006, Maurício wrote:

   Hi,

   Is it possible, using some cygwin functionality, to tell Windows to
 execute a command at shutdown? For instance, I would like to have:

 ipconfig.exe /release

 executed everytime I shutdown Windows, since I need that to avoid
 problems with my cable provider when using dual-boot. How can I do that?

One thing that comes to mind is a program that invokes the command you
want on SIGHUP, installed as a service with cygrunsrv that will terminate
at shutdown, with HUP as the termination signal.  Beware, though, that
services have a certain period of time in which to stop, after which the
service process will be terminated by Windows.

If I were you, I'd look into using the Windows hooks for this, instead.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: Execute command at shutdown

2006-07-02 Thread Igor Peshansky
On Sun, 2 Jul 2006, Maurício wrote:

 Igor Peshansky wrote:
  On Sun, 2 Jul 2006, Maurício wrote:
 
Is it possible, using some cygwin functionality, to tell Windows to
   execute a command at shutdown? For instance, I would like to have:
  
   ipconfig.exe /release
  
   executed everytime I shutdown Windows, since I need that to avoid
   problems with my cable provider when using dual-boot. How can I do that?
 
  One thing that comes to mind is a program that invokes the command you
  want on SIGHUP, installed as a service with cygrunsrv that will terminate
  at shutdown, with HUP as the termination signal.  Beware, though, that
  services have a certain period of time in which to stop, after which the
  service process will be terminated by Windows.
 
  If I were you, I'd look into using the Windows hooks for this, instead.

 I am not able to find those Windows hooks :(

You weren't looking very hard.  The first match in a Google search for
windows shutdown hooks -java produces exactly what you're looking for.
Igor
P.S. Interestingly enough, I was going to suggest exactly what Larry
proposed as the third alternative in my original message, but then figured
you'd want to have this when you shutdown via Windows Start menu, so
dismissed that possibility.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: FW: xemacs freezes when latexing a file

2006-07-02 Thread Igor Peshansky
Ugh, top-posting...  Reformatted.

On Sun, 2 Jul 2006, Yuval Grossman wrote:

  -Original Message-
  From: Yuval Grossman
  Sent: Sunday, July 02, 2006 3:49 PM
  To: The Cygwin ML
  Subject: xemacs freezes when latexing a file
 
  Hi,
 
  I am running xemacs (21.4.19) under cygwin/X (1.5.19.4). When I am in
  latex mode and I latex my file (C-c C-f) sometimes xemacs freezes. That
  is, I cannot edit the buffer, the cursor does not move, and I
  cannot close the window. All I could do is just to kill it. I can,
  however, minimize the window or move it around.  Xemacs does not
  always hang, and I am unable to be able to predict when it will
  fail. All I can tell is that if it works well the first time, it does
  not fail later. That is, all the times it does fail it is in the first
  time I try to latex my file. I also tried to run other shell commands
  from inside xemacs (that is, with M-!), but they always work without a
  problem.
 
  I look in the cygwin mail archive, and found that a similar problem
  (not with latex, however) were discussed in 2002. The latest one I
  found was http://sourceware.org/ml/cygwin/2002-09/msg00521.html
  but it is not clear to my how the problem was solved. Any ideas how
  this problem can be fixed? Presumably, I just missed the post with the
  explanation.
 
  Thanks for any tips.

 Hi,

 Thanks. I tested it now under cygwin and I had the same problem. That
 is, I did not start x and run latex directly from the cygwin window and
 I got the same problem. So maybe it is belong to the cygwin mailing
 list.

I think it's time to read and follow the Cygwin problem reporting
guidelines at http://cygwin.com/problems.html.  It would also help to
have a copy of the file that makes LaTeX freeze (and would help even
more if you could reduce it to a minimal example that still reproduces the
problem).  Also, are you sure LaTeX actually freezes?  If it's a first
run, sometimes LaTeX needs to make some font files used in your documents
(in different sizes, etc), and that takes a lot of CPU and may look like
the rest of the window is frozen.  Have you looked at the LaTeX log?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Need help in making passwordless sftp work for cygwin

2006-07-03 Thread Igor Peshansky
On Mon, 3 Jul 2006, Tzung-Cheng Yang wrote:

 I tried to make passwordless sftp work between a Windows 2000 system
 running cygwin and a Redhat Linux Enterprise 4 box.

 After I putting the id_rsa.pub in ~/.ssh/authorized_keys on remote
 host(linux box), the sftp still keeps asking password.

 I also changed the following on the /etc/ssh/sshd_config file on remote
 hosts

 RSAAuthentication yes
 PubkeyAuthentication yes
 AuthorizedKeysFile  .ssh/authorized_keys

 Can anybody help to solve the problem?

 Here is the message

 $ sftp -v [EMAIL PROTECTED]
 [snip]

Try reading and following

 Problem reports:   http://cygwin.com/problems.html

especially the part about attaching the output of cygcheck -svr on your
machine.

Also, sftp -vvv ... should produce more debugging info which may point
to the source of the problem.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: apache2 on xp

2006-07-03 Thread Igor Peshansky
Ugh, top-posting...  Reformatted.

On Tue, 4 Jul 2006, Ken Perl wrote:

 On 7/3/06, Max Bowsher [EMAIL PROTECTED] wrote:

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  Ken Perl wrote:
   the test says that I have a syntax error but I didn't change the
   httpd.conf file after the install,
   $ /usr/sbin/apachectl2 -t
   httpd2: Syntax error on line 233 of /etc/apache2/httpd.conf: Cannot
   load /usr/lib/apache2/mod_access.so into server: No such file or
   directory
  
   and the .so file is in the /usr/lib/apache2 directory, why I still got
   this error?
 
  mod_access does NOT exist in the current version of Apache distributed
  via Cygwin setup.
 
  I think you have a mess of 2.0.x and 2.2.x blended together.
 
  Uninstall apache2 using setup.exe, then manually remove any remaining
  /etc/apache2/ and /usr/lib/apache2/, then reinstall and try again.

 thanks, the syntax is ok now, but still can't be started.

 $  /usr/sbin/httpd2.exe -v
 Server version: Apache/2.0.55
 Server built:   Jan 24 2006 23:23:08

 $ /usr/sbin/apachectl2 -k start
 /usr/sbin/apachectl2: line 78:  6228 Bad system call $HTTPD $ARGV

Umm, http://cygwin.com/faq/faq.programming.html#faq.programming.ipc?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin cpio with tape support?

2006-07-07 Thread Igor Peshansky
On Fri, 7 Jul 2006, Beauchamp, Warren J wrote:

 Hi,

 I have poked around on the web trying to find this for a while and am
 out of luck.

 I have a DAT drive on a Win2000 server, have installed the latest build
 of cygwin(1.5.20), and am able to mount and access the DAT drive with mt
 and tar but not with cpio. There's a cpio archive on the tape I need to
 read. I have seen references to cygwin builds of cpio that contain tape
 support. Can you point me in the right direction for the current
 binaries?

Can you access the drive with dd?  You should be able to use dd to write
the archive to stdout, and then pipe it to cpio -i...
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: cygwin cpio with tape support?

2006-07-10 Thread Igor Peshansky
http://cygwin.com/acronyms/#PPIOSPE.  Thanks.
Also, top-posting reformatted.

On Mon, 10 Jul 2006, Beauchamp, Warren J (GE Comm Fin) wrote:

 -Original Message-
 From: Beauchamp, Warren J (GE Comm Fin)
 Sent: Friday, July 07, 2006 9:57 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: cygwin cpio with tape support?

  -Original Message-
  From: Igor Peshansky [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 07, 2006 9:34 AM
  To: Beauchamp, Warren J (GE Comm Fin)
  Cc: [EMAIL PROTECTED]

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  Subject: Re: cygwin cpio with tape support?
 
   On Fri, 7 Jul 2006, Beauchamp, Warren J wrote:
  
Hi,
   
I have poked around on the web trying to find this for a while and am
out of luck.
   
I have a DAT drive on a Win2000 server, have installed the latest
build of cygwin(1.5.20), and am able to mount and access the DAT drive
  
with mt and tar but not with cpio. There's a cpio archive on the tape
I need to read. I have seen references to cygwin builds of cpio that
contain tape support. Can you point me in the right direction for the
current binaries?
  
   Can you access the drive with dd?  You should be able to use dd to write
   the archive to stdout, and then pipe it to cpio -i...
   HTH,
 Igor
 
  Hi Igor,
 
  dd appears to access the drive , but I get dd: reading '/dev/st0':
  cannot allocate memory
 
  I tried: dd -if=/dev/st0 of=test123.bin
  And: dd -if=/dev/st0 | cpio -i
 
  Thanks again,
 
  -Warren.

 Hi Igor,

 Looks like I needed to add the block size.

 dd bs=5120 if=/dev/st0 of=test1.bin works fine

 I'll try piping it to cpio next. Does the following syntax look right?

 dd bs=5120 if=/dev/st0 | cpio -i

That's what Corinna replied 3 days ago in
http://cygwin.com/ml/cygwin/2006-07/msg00181.html.

As for the syntax, I'm not a dd or cpio expert, so I would have to consult
the manpages, which you can do just as easily.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Find working improperly causes updatedb to take forever

2006-07-11 Thread Igor Peshansky
On Tue, 11 Jul 2006, Victor E. Vaile, IV wrote:

 Hello,

   I upgraded my cygwin today from 1.5.19-4 to 1.5.20-1 (along with
 other various packages to their current versions).  I ran updatedb, and
 instead of it taking less than a few minutes, the prompt hadn't returned
 after several minutes.  I fired up procexp.exe (from sysinternals.com)
 and saw that the find.exe process was opening several registry keys in
 HKCR.  This process was taking between 20-45% of my cpu as well.  I did
 a quick test of the following command:

 /usr/bin/find / \( -fstype proc \) -prune -o -print0

 Sure enough, the find command happily started traversing the /proc
 registry keys.  I reverted the cygwin base (keeping everything else
 installed as is, although I don't know if there are any dependencies
 that might be reverted automatically) back to 1.5.19-4, and did the same
 test, and find exited properly before descending into /proc as expected.
 I'm currently using 1.5.19-4 again. :(

   As far as I know the syntax for the find command should work as
 above.  (I actually made a copy of the updatedb script and changed it to
 echo the find command it was using to make sure.)  Anyway, I saw another
 post to this list with the subject Updatedb does not finish, however I
 didn't see any replies, or updates, and just thought I'd mail the list
 in case anyone is interested, or has any other insights. Thanks.

The most likely change from 1.5.19 to 1.5.20 that caused this is the fact
that virtual directories (/proc, /dev, etc) are now enumerated as part of
the root directory listing.  So, not only would your find recurse into
/proc, it would probably also recurse into /cygdrive, unless you use the
-xdev option (which updatedb doesn't by default).

As for -fstype proc not matching /proc, that is probably a real bug,
though it's unclear whether the bug is in findutils or Cygwin.
Basically, findutils reads through the mount table entries, and expects
all filesystems to be there (including /proc, etc).  Under Cygwin, /proc
doesn't appear as a separate mount table entry, and thus is missed by
findutils.  Depending on whether POSIX mandates that /proc appear in the
mount table or not, either Cygwin or findutils needs to be fixed.  Since
findutils uses GNUlib's read_file_system_list(), it's also possible that
the fix needs to be made there.

For more info, see the findutils source (find/fstype.c is the most
relevant source file, I believe).  As a workaround, you might want to add
/proc to PRUNEPATHS.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Double backslashed registry names can't be found?

2006-07-14 Thread Igor Peshansky
On Fri, 14 Jul 2006, Stephen D Lindner wrote:

 Since windows maintains ROT13 entries of every document that was ever on
 the recent documents list going back (at least) five years, I decided to
 clean things up. But windows maintains backslashed pathnames for the
 name that follows the key. So if you forward slash the key hierarchy and
 double backslash the Microshaft pathname, it should work. Right? I
 typed...

 regtool check 
 '/user/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count/HRZR_EHACVQY\:P\:\\Qbphzragfnaq
  Frggvatf\\Fgrcura Yvaqare\\Erprag\\QFP00055.WCT.yax'

 and it sez:
 Error (2): The system cannot find the file specified.

 I also tried get and remove, etc. I also tried every combinatorial
 of fore and aft slashes. I also tried escaping and not escaping the :'s
 and spaces. I tried combinatorials of the above. I've been careful to
 match case. I also tried both a forward slash and a double backslash
 between the key and the name. I always get the same error.

Ah, but have you tried the -K regtool option?  BTW, your quoting looks
wrong -- either use the single quotes, or backslashes to escape stuff, but
not both.

 I ran the Cygwin updater just 5 days ago. I tried rebooting. I tried all
 the usual suspects. Now I'm bothering all of you. Apologies in advance
 if I've omitted something obvious.

 Steve Lindner

 BTW: Why does Microsoft encrypt my own information on my own machine and
 retain it forever?

Because they can. :-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Double backslashed registry names can't be found?

2006-07-14 Thread Igor Peshansky
Ugh, top-posting...  Reformatted.

On Fri, 14 Jul 2006, Stephen D Lindner wrote:

 - Original Message -
 From: Igor Peshansky [EMAIL PROTECTED]
 To: Stephen D Lindner [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

 Sent: Friday, July 14, 2006 6:04 PM
 Subject: Re: Double backslashed registry names can't be found?

  On Fri, 14 Jul 2006, Stephen D Lindner wrote:
 
   Since windows maintains ROT13 entries of every document that was ever on
   the recent documents list going back (at least) five years, I decided to
   clean things up. But windows maintains backslashed pathnames for the
   name that follows the key. So if you forward slash the key hierarchy and
   double backslash the Microshaft pathname, it should work. Right? I
   typed...
  
   regtool check
   '/user/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count/HRZR_EHACVQY\:P\:\\Qbphzragfnaq
   Frggvatf\\Fgrcura Yvaqare\\Erprag\\QFP00055.WCT.yax'
  
   and it sez:
   Error (2): The system cannot find the file specified.
  
   I also tried get and remove, etc. I also tried every combinatorial
   of fore and aft slashes. I also tried escaping and not escaping the :'s
   and spaces. I tried combinatorials of the above. I've been careful to
   match case. I also tried both a forward slash and a double backslash
   between the key and the name. I always get the same error.
 
  Ah, but have you tried the -K regtool option?  BTW, your quoting looks
  wrong -- either use the single quotes, or backslashes to escape stuff, but
  not both.
 
   I ran the Cygwin updater just 5 days ago. I tried rebooting. I tried all
   the usual suspects. Now I'm bothering all of you. Apologies in advance
   if I've omitted something obvious.
  
   Steve Lindner
  
   BTW: Why does Microsoft encrypt my own information on my own machine and
   retain it forever?
 
  Because they can. :-)
  Igor

 Thanks for responding so quickly but no joy.
 I tried the -K option but info sez that's only for set and unset.
 Is it useful for others?

Yes, it can be used for any option that specifies a key/value pair.
Documentation http://cygwin.com/acronyms/#PTC.

 I tried...

 regtool -K+ check 
 '/user/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count+HRZR_EHACVQY:P:\Qbphzragf
  naq Frggvatf\Fgrcura Yvaqare\Erprag\QFP00055.WCT.yax'

Actually, I was wrong.  You do need to escape the backslashes twice
(inside the single quotes) when using regtool, because that's how regtool
historically expects them to be.  So,

regtool -K+ check 
'/user/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count+HRZR_EHACVQY:P:\\Qbphzragf
 naq Frggvatf\\Fgrcura Yvaqare\\Erprag\\QFP00055.WCT.yax'

should work.  Unfortunately, this is probably something we're stuck with
for the sake of backwards compatibility.  Again, documentation patches
thoughtfully considered (and this is probably worth mentioning in the
User's Guide).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Double backslashed registry names can't be found?

2006-07-14 Thread Igor Peshansky
On Fri, 14 Jul 2006, Stephen D Lindner wrote:

 OK, no more top posting...I can take a hint...erp, excuse me.

Actually, there were two hints.  The other is repeated just under the
reply header.

 - Original Message -
 From: Igor Peshansky [EMAIL PROTECTED]
 To: Stephen D Lindner [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, July 14, 2006 8:04 PM
 Subject: Re: Double backslashed registry names can't be found?

http://cygwin.com/acronyms/#PCYMTNQREAIYR.

  Ugh, top-posting...  Reformatted.
 
  On Fri, 14 Jul 2006, Stephen D Lindner wrote:
 
   - Original Message -
   From: Igor Peshansky [EMAIL PROTECTED]
   To: Stephen D Lindner [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
 
  http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.
 
   Sent: Friday, July 14, 2006 6:04 PM
   Subject: Re: Double backslashed registry names can't be found?
  
On Fri, 14 Jul 2006, Stephen D Lindner wrote:
   
 Since windows maintains ROT13 entries of every document that was
 ever on the recent documents list going back (at least) five
 years, I decided to clean things up. But windows maintains
 backslashed pathnames for the name that follows the key. So if
 you forward slash the key hierarchy and double backslash the
 Microshaft pathname, it should work. Right? I typed...

 regtool check
 '/user/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count/HRZR_EHACVQY\:P\:\\Qbphzragfnaq
 Frggvatf\\Fgrcura Yvaqare\\Erprag\\QFP00055.WCT.yax'

 and it sez:
 Error (2): The system cannot find the file specified.

 I also tried get and remove, etc. I also tried every
 combinatorial of fore and aft slashes. I also tried escaping and
 not escaping the :'s and spaces. I tried combinatorials of the
 above. I've been careful to match case. I also tried both a
 forward slash and a double backslash between the key and the
 name. I always get the same error.
   
Ah, but have you tried the -K regtool option?  BTW, your quoting
looks wrong -- either use the single quotes, or backslashes to
escape stuff, but not both.
   
 I ran the Cygwin updater just 5 days ago. I tried rebooting. I
 tried all the usual suspects. Now I'm bothering all of you.
 Apologies in advance if I've omitted something obvious.

 Steve Lindner

 BTW: Why does Microsoft encrypt my own information on my own
 machine and retain it forever?
   
Because they can. :-)
Igor
  
   Thanks for responding so quickly but no joy.
   I tried the -K option but info sez that's only for set and unset.
   Is it useful for others?
 
  Yes, it can be used for any option that specifies a key/value pair.
  Documentation http://cygwin.com/acronyms/#PTC.
 
   I tried...
  
   regtool -K+ check
   '/user/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count+HRZR_EHACVQY:P:\Qbphzragf
   naq Frggvatf\Fgrcura Yvaqare\Erprag\QFP00055.WCT.yax'
 
  Actually, I was wrong.  You do need to escape the backslashes twice
  (inside the single quotes) when using regtool, because that's how regtool
  historically expects them to be.  So,
 
  regtool -K+ check
  '/user/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count+HRZR_EHACVQY:P:\\Qbphzragf
  naq Frggvatf\\Fgrcura Yvaqare\\Erprag\\QFP00055.WCT.yax'
 
  should work.  Unfortunately, this is probably something we're stuck with
  for the sake of backwards compatibility.  Again, documentation patches
  thoughtfully considered (and this is probably worth mentioning in the
  User's Guide).
  Igor

 Rats! Still didn't work. I cut'n-pasted your kind example. Still sez:
 Error (2): The system cannot find the file specified.

Ugh.  In my kind example, I neglected to notice that you were using
check instead of set, unset, or get.  You might want to browse
regtool's documentation again.

 Sumpin' is screwy. Overflowing a buffer? Let me be REALLY clear so we're
 sure I'm not sending bad info.
 The key sequence is:
 /HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count
 The name sequence is:
 HRZR_EHACVQY:P:\Qbphzragf naq Frggvatf\Fgrcura Yvaqare\Erprag\QFP00055.WCT.yax
 The value of this name is something in hex...doesn't matter right?

 I emacsed together a script to wipe years of junk out of the rotten-13
 sections. But until I can do one, none will work.
 I want to check symbols on all before I let the removals fly.

You'll probably want to run a check on a key, then a list to get all
the values, and then iterate over each value and do an unset.  Again,
please review the regtool man page.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor

Re: dselect - formally Re: Running as root

2006-07-17 Thread Igor Peshansky

On Mon, 17 Jul 2006, Stephen Grant Brown wrote:


Hi Dave and all the other people on this list,

- Original Message -
From: Dave [EMAIL PROTECTED]
To: Stephen Grant Brown [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]


Hi, Stephen.  First off, http://cygwin.com/acronyms/#PCYMTNQREAIYR.
Thanks.  Secondly, attaching a BMP file to show the output of a text-only
program is pretty wasteful (not to mention bothersome to open).  More
below.


Sent: Monday, July 17, 2006 7:17 PM
Subject: Re: dselect - formally Re: Running as root

 Stephen Grant Brown wrote:
 snip

  The output of the program (which is dselect) I am having trouble
  with is in the attached file.
  How do I find out which file has read-only access?
 
  I am making the assumption that if a program is in the cygwin
  distribution, the cygwin community would like to get it working
  properly. Is this assumption valid? assume = ass + U + me.

 As Brian said in a separate thread:
 http://www.cygwin.com/ml/cygwin/2006-01/msg00632.html

I have reread that post.

 Just to repeat. If you trying to update cygwin, please use setup.exe,
 the only supported mechanism for doing so.

I used setup.exe only a night or two before I did the post. I installed
the latest of everything.
dselect is a package installed by the cygwin setup.exe.


I believe what Dave meant was that you cannot update Cygwin using dpkg.


 If you are looking for a mechanism to do updates via the command line,
 there isn't a tool do this. However setup.exe can be fooled into doing
 this (please Google), and there are attempts to make setup.exe more
 useful from the command line.

 There are a few package managers from Linux distributions available
 (dselect and rpm are the ones I can think of). As far as I know these
 are only present for two reasons:
 - to allow inspection of packages for these distributions

I am unable to use dselect for the inspection of packages in the Debian
distribution.


Eh?  I don't see this in your screen dump.  All it says is that you will
be unable to *install* the packages, only preview the available
selections.  Looks like that's exactly what you want to do as you stated
above.  I also don't see any mention of the root user.

Please let us know what the exact error message was, and why it made you
think you needed root access.


 - to help investigations of the feasability of other packaging methods
 for cygwin.

 None of them are currently capable of maintaining a cygwin
 installation.

 Also, you will note that dpkg was last updated in 2002 and IIRC is
 looking for a maintainer (or may be culled at any time).

 If you still want help with dselect, I suggest you describe exactly
 what you are trying to do with it, and the steps you take which lead
 to the problem. It will them become clear whether or not that
 behaviour is expected to work or not.

I open a bash shell. I type dselect at the command line. The error comes
up as in the attached screen dump.


I see no error -- only an informational message that no packages can be
installed (but you didn't expect to be able to install Debian packages on
Cygwin anyway, did you?).
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
 |\  _,,,---,,_ [EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
|,4-  ) )-,_. ,\ (  `'-'old name: Igor Pechtchanski
   '---''(_/--'  `-'\_) fL  a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Compilation with cygwin

2006-07-18 Thread Igor Peshansky
On Tue, 18 Jul 2006, Guenther Sohler wrote:

 [snip]
 How can I find out, which dll's are required for a EXE File ?

cygcheck EXE_File.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: window command in bash

2006-07-18 Thread Igor Peshansky
On Tue, 18 Jul 2006, Buchbinder, Barry (NIH/NIAID) [E] wrote:

 McGraw, Robert P. wrote:
  I have a window command that I want to execute in a bash script.
 
  In my .bat file the command is
 
  AgBackup.exe /notext c:\Alligate\agbackupfiles
 
  I tried to execute this command in a bash window and the command
  works but is does not seem to recognize the parameters. The
  c:\alligate is the path where a backup is written. In the bash
  script the backup file is written in the default location.
 [snip]
  In a shell script what is the proper way to pass parameters to a
  window program?

 A Windows program will think that /cygdrive/c/Alligate/agbackupfiles are
 options, not a path.

 Did you quote the path or escape the backslashes to protect the
 backslashes from the shell interpreting them as escape characters?
 E.g.,
   AgBackup.exe /notext 'c:\Alligate\agbackupfiles'
 or
   AgBackup.exe /notext c:\Alligate\agbackupfiles

A minor correction: you still need to escape the backslashes when using
double quotes, so the right way is

AgBackup.exe /notext c:\\Alligate\\agbackupfiles

 or
   AgBackup.exe /notext c:\\Alligate\\agbackupfiles

 You should read http://cygwin.com/cygwin-ug-net/using-effectively.html
 in the Cygwin User's Guide http://cygwin.com/cygwin-ug-net/, and
 especially
 http://cygwin.com/cygwin-ug-net/using-effectively.html#id4735437.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Suggestions for cygcheck

2006-07-18 Thread Igor Peshansky
On Tue, 18 Jul 2006, Bengt-Arne Fjellner wrote:

 Hi
 I would like to suggest that cygcheck file should know about symlinks
 i.e.
 $ ls -la `which xmgrace`
 lrwxrwxrwx 1 Administratör Användare 32 Jul 18 16:37 /usr/bin/xmgrace -
 /usr/share/grace/bin/xmgrace.exe*

 $ cygcheck xmgrace  # now gives
 Found: C:\cygwin\bin\xmgrace.exe
 C:/cygwin/bin/xmgrace.exe

 $ cygcheck xmgrace  # Suggested behaviour
 Found: C:\cygwin\bin\xmgrace.exe
 which is a symlink to /usr/share/grace/bin/xmgrace.exe

 Or something like that

I recall making a patch for this.  I'll dig it out, and see if it's been
submitted, or if it still needs more work.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: Two different cygwin environments

2006-07-18 Thread Igor Peshansky
On Tue, 18 Jul 2006, Andrei Stebakov wrote:

 I am using the current cygwin installed by cygwin.exe.
 Also on the same machine I need to use an older versin of Cygwin so I
 wonder what's the best way to have two cygwin environments on the same
 machine, under the same user so they don't collide.

The Cygwin DLL strives to be backward-compatible (i.e., any applications
that run using the older Cygwin1.dll should also run using the newer DLL).
Is there a reason you really need the older DLL around?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: window command in bash

2006-07-18 Thread Igor Peshansky
On Tue, 18 Jul 2006, mwoehlke wrote:

 Buchbinder, Barry (NIH/NIAID) [E] wrote:
  Igor Peshansky wrote:
   On Tue, 18 Jul 2006, Buchbinder, Barry (NIH/NIAID) [E] wrote:
Did you quote the path or escape the backslashes to protect the
backslashes from the shell interpreting them as escape characters?
E.g., AgBackup.exe /notext 'c:\Alligate\agbackupfiles'
or
AgBackup.exe /notext c:\Alligate\agbackupfiles
   A minor correction: you still need to escape the backslashes when
   using double quotes, so the right way is
 AgBackup.exe /notext c:\\Alligate\\agbackupfiles
 
  Here's what bash does:
 
  /c echo  c:\Alligate\agbackupfiles
  c:\Alligate\agbackupfiles
 
  Maybe if one has a variable following the backslash:
 
  /c echo xyz\$USER
  xyz$USER
  /c echo xyz\\$USER
  xyz\BBuchbinder

'PAGER=less +/QUOTING man bash'.

 I think the point is that \\ is ALWAYS safe, whereas \? (where ?
 is some character) may not be.

Exactly.  Case in point: UNC paths.  Both \\machine\share and
\machine\share will refer to the string '\machine\share'.  To really
reference a UNC path, you'll need to say machine\\share.  So why not
double the backslashes anyway and save yourself the confusion?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: exe handling

2006-07-19 Thread Igor Peshansky
On Wed, 19 Jul 2006, Oliver Walsh wrote:

  http://cygwin.com/acronyms/#PCYMTNQREAIYR

 Sigh...Outlook. Sorry, about that.

http://google.com/search?q=PCYMTNQREAIYR+Outlook.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygutil 1.3.0-1 missing programs

2006-07-19 Thread Igor Peshansky
On Wed, 19 Jul 2006, Eric Schweitz wrote:

 I notice that cal, col, colcrt, etc. are no longer in the
 cygutil package (as of version 1.3.0-1).  Did they get
 conscripted to some other package or where they just purged?

The Cygwin package search page at http://cygwin.com/packages/ is usually
the place to find answers to such questions.  Searching for
bin/c[ao]l(crt)?\b shows that all of the three utilities above migrated
to util-linux (along with a bunch of others).
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin services using uid 400, not SYSTEM. Why?

2006-07-21 Thread Igor Peshansky
On Fri, 21 Jul 2006, Shaddy Baddah wrote:

 Hi again,

 On 7/20/2006 1:30 AM, Shaddy Baddah wrote:
  I'm so sorry I didn't pick up on this earlier. Thanks for your
  attention. If you have any ideas on the UID 400 problem, I'd still be
  very interested to hear what was happening on that.

 One last bit of diagnosis. In my earlier email, I claimed that the
 displaying of UID 400 instead of SYSTEM was solved after running
 cygserver-config.

 Well, I got a little muddled. I finally got back to the original system
 that I experienced the problem on (now perhaps not really so much a
 problem as I thought. I'll elaborate).

 The attachment is a log of commands that I executed that highlights the
 problem very clearly. You will see that after running *exim-config* (not
 cygserver-config), the Cygwin services correctly display as uid SYSTEM,
 and not 400.

 Looking at the exim-config script, I am totally bewildered how this
 could have had any effect on the problem. It looks quite tame (in terms
 of editing rights, etc...). Perhaps someone might have better insight
 into this.

 I am now also not so sure that the processes showing UID 400 was really
 a problem in the first place. In my earlier email, inetd was not working
 because of an unrelated problem. I am actually trying to reproduce the
 problem now, and just ascertain if there was a *rights* problem
 associated, as it did very much appear to me to be earlier.

Cygwin programs display UIDs as they appear in /etc/passwd.  Is your
/etc/passwd up-to-date?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: permissions on .exe files

2006-07-21 Thread Igor Peshansky
On Fri, 21 Jul 2006, Hemal Pandya wrote:

 Hello,

 If I create a file somefile.exe outside cygwin then cygwin reports
 that it is executable. But if the file is created by cygwin then it
 does not become executable unless explicitly set.

This is correct and expected behavior.

 One implication of this is that when I extract a .zip using cygwin
 unzip then the .exe, .dll, .bat etc do not get the executable
 permission.

That's a problem with the ZIP format, which does not keep permissions.
Try tar.

 Is there a way to tell cygwin to assign u+x for the files created from
 cygwin for which it would have otherwise assumed this permission?

Cygwin does not assume any permissions.  Neither does Windows.  However,
Windows does have ACL inheritance rules that set everything to be
executable.

You can tell Cygwin to use default Windows permissions by temporarily
setting CYGWIN to nontsec, i.e., run

CYGWIN=nontsec unzip somefile.zip

This would not assign u+x, but rather a+x.  There is no way that I know of
to get Cygwin to automatically assign only u+x.

 [EMAIL PROTECTED] /tmp/ll Fri Jul 21 11:47:43 2006
 $ cmd /c dir  in_windows.exe
 [EMAIL PROTECTED] /tmp/ll Fri Jul 21 11:47:50 2006
 $ ls  in_cygwin.exe
 [EMAIL PROTECTED] /tmp/ll Fri Jul 21 11:47:58 2006
 $ ls -l
 total 2
 -rw-r--r-- 1 hpandya -Users  29 Jul 21 11:47 in_cygwin.exe
 -rwxr-xr-x 1 hpandya -Users 345 Jul 21 11:47 in_windows.exe
 [EMAIL PROTECTED] /tmp/ll Fri Jul 21 11:48:02 2006

BTW, the above would happen even if you didn't have the .exe extension.
Windows does not do special magic for .exe files -- it just makes
everything executable.  A pretty annoying feature, if you ask me.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: permissions on .exe files

2006-07-21 Thread Igor Peshansky
On Fri, 21 Jul 2006, Frank Fesevur wrote:

 Hemal Pandya wrote:
  One implication of this is that when I extract a .zip using cygwin
  unzip then the .exe, .dll, .bat etc do not get the executable
  permission.

 I'm experiencing similar problems when I download an .exe with wget.
 Since my question on this issues didn't get a real satisfying answer, I
 still download to a FAT32 drive. So I hope this problem can be solved.

Ever try saving a Linux executable via Mozilla on Linux?  It would not
have the execute bit set -- you'd need to explicitly chmod it.  The point
is that wget retrieves a stream of bytes, and possibly saves it to a file.
It does not try to interpret that stream of bytes.

As I replied to Hemal, you can force Cygwin to use the Windows ACL
inheritance rules for newly created files by setting CYGWIN to nontsec
temporarily, i.e.,

CYGWIN=nontsec wget someurl

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: virtual dirs bug

2006-07-21 Thread Igor Peshansky
On Fri, 21 Jul 2006, Dave Korn wrote:

   STC:

 [EMAIL PROTECTED] / mkdir mnt
 [EMAIL PROTECTED] / cd mnt
 [EMAIL PROTECTED] /mnt mkdir foo
 [EMAIL PROTECTED] /mnt ls
 foo
 [EMAIL PROTECTED] /mnt mount -s C:\\ /mnt/foo/
 [EMAIL PROTECTED] /mnt mount -u C:\\ /mnt/foo/
 [EMAIL PROTECTED] /mnt mount | grep foo
 C: on /mnt/foo type user (binmode)
 C: on /mnt/foo type system (binmode)
 [EMAIL PROTECTED] /mnt ls
 foo  foo
 [EMAIL PROTECTED] /mnt

   I take it this is not desired behaviour, and that the right thing
 would be for the system-mount to override - and hence hide - the
 user-mount?  If so, I could whip up a patch over the weekend.

Definitely not desired, but historically user mounts overrode system
mounts (the rationale being that the user can always change user mounts,
but not everyone has permissions to change the system ones).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Ctrl-C kills ssh -X with notty

2006-07-21 Thread Igor Peshansky
This has been reported as far back as 2002 [1], and there were a few
reports in 2004 [2] and 2005 [3].  Corinna claimed [4] that this was
fixed, but I can still easily reproduce this with both 1.5.20 and the
latest snapshot (20060718), using the latest openssh/openssl.
STC (from a console bash):

$ uname -svr
CYGWIN_NT-5.1 1.5.21s(0.156/4/2) 20060718 11:35:58
$ echo $CYGWIN
check_case:strict ntsec notitle binmode nosmbntsec notty
$ DISPLAY=127.0.0.1:0.0 /bin/ssh -X [EMAIL PROTECTED]
[EMAIL PROTECTED] Ctrl-CKilled by signal 2.
$

I will try to investigate this as time permits, but if someone better
versed in Cygwin signal handling cares to take a look, I won't complain.
As Rob said, adding tty to $CYGWIN is a workaround.
Igor

[1] http://cygwin.com/ml/cygwin/2002-07/msg02586.html,
http://cygwin.com/ml/cygwin/2002-09/msg01032.html
[2] http://cygwin.com/ml/cygwin/2004-09/msg00406.html,
http://cygwin.com/ml/cygwin/2004-05/msg00376.html,
http://cygwin.com/ml/cygwin-xfree/2004-02/msg00163.html
[3] http://cygwin.com/ml/cygwin/2005-09/msg00777.html
[4] http://cygwin.com/ml/cygwin/2005-09/msg00780.html
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: C compiler question

2006-07-21 Thread Igor Peshansky
On Fri, 21 Jul 2006, Benn Fine wrote:

 I had this working last week..then uninstalled
 cygwin and installed mingw..now I reinstalled
 cygwin and its not working. dang it.

 Windows xp..

 Can compile
 [snip program]
 A file listing shows a.exe

 When I type a.exe I get the following:

 bash: a.exe: command not found

 What ? I don't get it.

 Any help would be most appreciated. /bin is in my
 path.

http://cygwin.com/faq/faq.using.html#faq.using.not-found
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Rebuilding Cygwin From Sources

2006-07-24 Thread Igor Peshansky
On Mon, 24 Jul 2006, CARTER Alan wrote:

 Hi,

 Perhaps someone who knows can confirm that I've got this right:

 The executables in a Cygwin download can be much older than the download
 date, where much  3 years.

 This suggests that executables are only rebuilt when their own sources
 change. Previously built executables can continue to be bundled into
 downloadable packages, even if the version of gcc in the download is
 much newer.

 Therefore, it is not reasonable to attempt to rebuild the executables in
 a download using the sources and gcc in the same download, and expect an
 *exact* reconstruction.

 (And that's before thinking about the compilation date strings that end
 up in the executables, or the CFLAGS arguments to the various configure
 scripts which also aren't necessarily obvious.)

 If I know an exact rebuild isn't possible, I won't try to achieve it
 before kludging the source :-)

An exact rebuild *is* possible, if you can reconstruct the exact
environment (package versions, variables, etc) the maintainer had on her
machine when she built the package.  Otherwise, it's not.

 
 This message and any files transmitted with it are legally privileged
 [snip annoying and unenforceable disclaimer]

You might want to lobby with your IT people to lose the disclaimer, which
is void anyway.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why are Windows paths broken in make 3.81?

2006-07-24 Thread Igor Peshansky
On Mon, 24 Jul 2006, Christopher Faylor wrote:

 On Mon, Jul 24, 2006 at 01:01:55PM -0500, mwoehlke wrote:
 Joachim Achtzehnter wrote:
 Christopher Faylor wrote:
 On Fri, Jul 21, 2006 at 06:03:43PM -0700, Joachim Achtzehnter wrote:
 My second post was specifically in response to the claim by mwoehlke
 suggesting that the changes were not an inconvenience. In this post
 all the issues I mentioned were intended as illustrations of such
 inconveniences, so there was even less implied expectation of somebody
 acting on these. Note, that I wrote that I had already addressed the
 issues caused by deliberate incompatibilities, all I intended to do was
 point out that it *had been* inconvenient.
 
 For the record, I was just trying to point out that the general
 consensus around here seems to be 'don't use DOS paths in Cygwin', and
 was using that to explain what I feel to be one major reason for the
 change. I accept and acknowledge that this change may be inconvenient
 for some people, but it is also my opinion that if you are affected by
 it, you are doing something that was never condoned or officially
 supported in the first place. (And, after all, WJM. ;-))
 
 I am glad you got things working and (I assume, since you say things are
 working) looking POSIX-like.
 
 Personally, every time I see mention of someone using DOS paths in
 Cygwin, or a Cygwin program, I wonder to myself why this works at all :-).

 Could I get a gold star here?

Absolutely.

 Thanks for explaining things, mwoehlke.

http://cygwin.com/acronyms/#TITTTL fodder: Why does this remind me of

The Old Grey Donkey, Eeyore, stood by himself in a thistly corner
of the forest, his front feet well apart, his head on one side,
and thought about things.

? :-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Where is complex.h

2006-07-24 Thread Igor Peshansky
On Mon, 24 Jul 2006, mwoehlke wrote:

 Christopher Faylor wrote:
  On Mon, Jul 24, 2006 at 05:00:37PM -0400, Larry Hall (Cygwin) wrote:
   TV JOE wrote:
I've a C program referencing complex.h.  But make can't find it and the
only copy I see is in /usr/include/mingw which I don't think is the
right version.  Advice welcomed.
   Try:
   http://cygwin.com/cgi-bin2/package-grep.cgi?grep=complex.h
  
   That will tell you what packages have complex.h in them.  I expect you
   can reasonably narrow down from there the package you need and how to
   get at the file you want.
 
  I don't think that there is any cygwin package which provides a usable
^^
  complex.h is there?  I don't see one from the above list and, if one was
  going to exist, it should come from newlib -- which doesn't seem to be
  the case.

 I did find these:
 (cygwin-1.5.21-1)
 cygwin-1.5.21-1/newlib/libc/sys/linux/include/complex.h
 (gcc-g++-3.4.4-2)
 usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/complex.h
 usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/complex

 Now that I noticed the third one, the second one makes sense; it is
 probably a wrapper complaining that you should '#include complex'.
 However those are C++ headers, not C headers.

 The first one does have newlib in the path, for whatever that's worth.

It also has sys/linux in the path, which would explain why it's not
installed as part of Cygwin.  Note the underlined word above.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why are Windows paths broken in make 3.81?

2006-07-26 Thread Igor Peshansky
On Wed, 26 Jul 2006, Michael Hirsch wrote:

 On 7/21/06, mwoehlke [EMAIL PROTECTED] wrote:

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  Michael Hirsch wrote:
  [snip]
   Is it broken only on Windows?
 
  That sounds like a silly question... 'are Windows paths only broken on
  Windows?'

 It sounds like a silly question, but it isn't.  I tested, and yes, if
 you have a directory named c: in Linux, make is broken on that
 directory, too.  Since c: is a valid name in Linux (and POSIX, I
 believe) I consider that a bug in make.  I'll have to report that to
 GNU, as it is not a cygwin issue.  The error message on Linux is just
 as incomprehensible as it is Cygwin, too, so at least I know who to
 talk to about it.

While ':' is a valid filename character on Linux (though not on all
filesystems, obviously), it is a special character in make.  So you need
to be careful when using it in Makefiles.  Just like '' is a valid
filename character, but you would not expect to be able to use it unquoted
in your shell.

   Is this a cywin only bug?  What possible reason could there be to
   introduce this deliberately?
 
  No, as it is not a bug. However it is specific to Cygwin. See the
  aforementioned announcement. CGF would have to speak to why (and I
  would appreciate if he would, just because I am curious :-)), but I
  would guess it is to encourage people to use correct (i.e. POSIX)
  paths.

 I guess that was the reason.  How disappointing.  I always thought
 that cygwin provided a great service by allowing me to use both
 windows and posix paths.  I'll miss that capability a lot.

I don't think any of the Cygwin package maintainers would deliberately
break existing functionality for some purist reasons.  Besides, there's no
need to guess.  CGF already stated the reason: maintaining a
Cygwin-specific patch to support this functionality has become too
cumbersome, and CGF decided that his volunteer effort is better spent
doing other, more important things for Cygwin.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why are Windows paths broken in make 3.81?

2006-07-26 Thread Igor Peshansky
On Wed, 26 Jul 2006, Christopher Faylor wrote:

 On Wed, Jul 26, 2006 at 10:12:51AM -0600, Michael Hirsch wrote:
 Yes. See http://cygwin.com/ml/cygwin-announce/2006-07/msg8.html.
 If you are using a POSIX-like OS (i.e. Cygwin), you should be using
 POSIX paths. That's not an inconvenience, that's called writing a bad
 makefile. If you aren't using Cygwin for the POSIX environment, you
 should be using MinGW.
 
 I see.  Unfortunately, I am trying to use cygwin to make my life
 easier on Windows, but I am still constrained to use windows programs.
 Many of them cannot use the cygwin paths, but require a path like
 c:/my/path.exe.  It will be very difficult to switch back and forth
 between path representations.  I guess I do need to look into MinGW.

 Maybe someone here would be willing to post a sed transformation which
 would change c:\some\dos\path to /cygdrive/c/some/dos/path.

Here you go:

sed -e 's/\\//g;s/^/cygpath /;e'

HTH.  ;-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Why are Windows paths broken in make 3.81?

2006-07-26 Thread Igor Peshansky
On Wed, 26 Jul 2006, William Sheehan wrote:

 I have been following this discussion closely, as we were also hit by
 this change.  However, in all the emails and the ChangeLog, I still
 can't find an official reason why the change was made in the first
 place.  Was it for technical reasons?  And if so, would the Cygwin team
 accept a patch that readded win32 path support?  Or was it for
 idealistic reasons?

 Thanks for any replies; I am genuinely curious about the official
 reason.

The official reason, as stated by the maintainer, was that he was tired of
maintaining an out-of-tree patch (which is also why it doesn't appear in
the official upstream ChangeLog).  It's not Cygwin that needs to be
patched, it's make.  Try making the above pitch to the make maintainers
(on the GNU make list or through Savannah -- see
http://gnu.org/software/make/).  If the vanilla make sources start
supporting Win32 paths in Cygwin, with someone else providing and
maintaining this functionality upstream, I'm sure the Cygwin make package
maintainer will not go out of his way to remove this support.

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problem using ftp with rxvt

2006-07-26 Thread Igor Peshansky
On Wed, 26 Jul 2006, Charles D. Russell wrote:

 When ftp is opened in rxvt, some of the incoming text that should be
 written to the screen is lost.  Simplest example: at shell prompt, enter
 ftp.  One does not get the ftp prompt, but one is indeed running ftp,
 since if one next types help you get the header for the help screen,
 with the rest of the help screen missing.  Again no ftp prompt, but
 typing quit gets you back to the bash prompt. type ftp shows that
 this is using the cygwin ftp, not the windows ftp.

 ftp works ok from the bash console, and rxvt seems to work ok for
 capturing local output and for using vim with mark/copy/paste, but ftp
 and rxvt don't work together.

I can't reproduce your problem on my machine (WinXP, Cygwin 1.5.21+).
However, I *can* easily reproduce this behavior with the Windows native
ftp.  Are you sure you're using the Cygwin version of ftp?  One way to
check is the output of help -- the Cygwin ftp supports the umask and
chmod commands, for example, as well as macro definition commands ($
and macdef).

I suspect that you're running type ftp from the console bash, and not
from rxvt.  Note that, by default, rxvt does not start a login shell, so
the environment isn't going to be the same as that in the console bash
started from cygwin.bat.  Try rxvt -e bash -li instead and see if it
works better for you.

If you are certain that you're using the Cygwin ftp, we need to know more
about your Cygwin installation.  Please re-read and follow the Cygwin
problem reporting guidelines at http://cygwin.com/problems.html,
especially the bit about *attaching* the output of cygcheck -svr on your
system.  For example, there was a problem with program output reported in
Cygwin 1.5.20 that was fixed in 1.5.21.

 My problem is that when I try to get directory information on a
 remote machine using ftp commands ls or dir, it scrolls off the bash
 screen faster than I can read it.  On Unix, I used the command script
 to deal with this problem, but there seems to be no script command in
 cygwin.

Au contraire.  Try searching for bin/script\b on the Cygwin package
search page at http://cygwin.com/packages/.  Though I suspect that the
Windows native ftp, if you do indeed use that, is going to have similar
sorts of problems with script as it does with rxvt.

 rxvt is the only way I know to capture output before it scrolls
 away.  Without directory information, I can't navigate the remote
 machine.

Or (not Cygwin-related at all), you can go to the window properties of the
Cygwin bash shell and set the screen buffer height to some large number
( is what I use, and it's almost always enough).
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Q] About halting problems at installation of cygwin

2006-07-27 Thread Igor Peshansky
On Thu, 27 Jul 2006, Eric Blake wrote:

 In your setup.log.full, you had lots of these messages:
  2006/07/25 17:12:47 io_stream_cygfile: fopen failed 2 No such file or 
  directory

 My recollection is that this has been improved in a recent snapshot of
 setup.exe - who is in charge of releasing the next setup.exe version?

Indeed.

  2006/07/25 17:32:58 running: C:\Apps\cygwin\bin\bash.exe -c 
  /etc/postinstall/aalib.sh
  /usr/bin/bash: /etc/postinstall/aalib.sh: /bin/sh: bad interpreter: No such 
  file or directory
  2006/07/25 17:33:01 running: C:\Apps\cygwin\bin\bash.exe -c 
  /etc/postinstall/apache.sh
  /usr/bin/bash: /etc/postinstall/apache.sh: /bin/sh: bad interpreter: No 
  such file or directory
  2006/07/25 17:33:01 running: C:\Apps\cygwin\bin\bash.exe -c 
  /etc/postinstall/apache2.sh
  /usr/bin/bash: /etc/postinstall/apache2.sh: /bin/sh: bad interpreter: No 
  such file or directory
  2006/07/25 17:33:01 running: C:\Apps\cygwin\bin\bash.exe -c 
  /etc/postinstall/00ash.sh
  2006/07/25 17:33:02 abnormal exit: exit code=0

 Hmm - when doing a global install of every single cygwin package (which
 usually isn't recommended, but is what you did),

Frankly, one reason it wasn't recommended was probably the fact that
postinstall scripts wouldn't run correctly on a full install, so you'd end
up with a broken one.  Read on.

 it looks like the setup.exe sort method of postinstall scripts is
 alphabetical by package name, not by postinstall name.  I wish we could
 get a setup.exe that sorted by dependency order instead.

Setup *does* sort in dependency order, but there was a bug in script
detection that caused setup to fail to associate the scripts with their
packages, so all scripts were run in the catch-all clause, which sorted
alphabetically.  This has also been improved in the recent setup
snapshots.  I wish we could get a setup.exe release...  Brian?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Windows popup/message box?

2006-07-27 Thread Igor Peshansky
On Thu, 27 Jul 2006, Richard Foulk wrote:

 Looking for a simple way to popup a message box on Windows via
 a Perl script on a system with Cygwin.

 Looking for portability, light weight, foolproof.  The `net send'
 option doesn't seem very reliable or portable.

Theoretically, it should be as simple as

use Win32::GUI qw(MessageBox);
MessageBox(0, message, title, 64);

However, the Win32::GUI module fails to load for me at the moment,
claiming the DLL is not found.  I have no time to investigate and create a
proper bug report, but if it works for you -- great.

If you want portability, however, your best bet is to rely on something
that will be found on every system (which libwin32 isn't).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How to run a cygwin command from the window scheduler

2006-07-27 Thread Igor Peshansky
On Thu, 27 Jul 2006, McGraw, Robert P. wrote:

 I need to schedule a job and it is not worth installing cron on our W2K3
 hosts for just for this one backup application.

 I have a name.sh script that if I run in a bash window it runs fine.

 In a W2K3 command prompt window I have tried

   C:\cygwin\usr\bin\bash.exe -c \local\adminscripts\name.sh
^^^[1]^^[2]

First off, if [1] works, something's seriously wrong with your system.
c:\cygwin\usr\bin should be empty, and all of the executables you find in
/usr/bin under Cygwin (notably bash) should be in c:\cygwin\bin.

Secondly, the way you specified the path ([2] above) is not going to work
in bash.  You really want to specify a POSIX path to your script.

 And I get

   bash-3.15$

Oh, really?  Assuming the above is not a typo, you're not running the
Cygwin bash.  The latest version that comes with Cygwin is 3.1, which uses
bash-3.1$ as its default prompt.  In fact, that's the latest official
release of bash, too.

 If I type exit at the command prompt then the script runs bin at the
 command prompt mode.

Sorry, I can't quite parse the above.  Can you please describe the exact
steps you've taken to run the script?  Perhaps even with a small
self-contained script example?

 So the question is how do you start a unix shell script from the window
 command prompt.

The usual way (that would also replicate the environment you have in your
shell) is 'c:\cygwin\bin\bash.exe -l -c /path/to/script.sh'.  However,
you might want to also make sure that your PATH is set up correctly,
especially if you plan to do this through the Windows scheduler.  Also
note that the Windows scheduler will run your script as the SYSTEM user,
not as the user you normally use to log in.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 3.81 and windows paths

2006-07-28 Thread Igor Peshansky
On Fri, 28 Jul 2006, Christopher Faylor wrote:

 On Fri, Jul 28, 2006 at 10:43:30AM -0400, Bob Rossi wrote:
  Well, the whole point of cygwin is to give a POSIX-compatible
  environment in win32. So it's aiming to be like linux, not windows.
  This means that if something like a makefile parses fine in linux, but
  not in cygwin (barring linker stuff), something is wrong.
 
 Yeah, what's wrong is that cl doesn't accept posix paths. For some
 reason, they were added, we all got addicted to it, and now it's being
 ripped out from underneath us. It's not a very friendly thing to do.

If you are invoking cl in your Makefiles, they are no longer POSIX or
Linux Makefiles, and you might as well run your paths through cygpath
before sending them to cl.

 profanity deleted

Hmm, I thought we didn't have an automatic censorship filter on this list.
I guess you just have to be *really* annoyed to trip it.

OTOH, a simple here we expletive go again would probably have
sufficed...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: How to run a cygwin command from the window scheduler

2006-07-28 Thread Igor Peshansky
Please make sure your mailer respects the Reply-To: header -- I set it for
a reason.  There was no need to Cc: me -- I read the list.

On Fri, 28 Jul 2006, McGraw, Robert P. wrote:

  -Original Message-
  From: Igor Peshansky [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 27, 2006 6:25 PM
  To: McGraw, Robert P.
  Cc: [EMAIL PROTECTED]

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  Subject: Re: How to run a cygwin command from the window scheduler
 
  On Thu, 27 Jul 2006, McGraw, Robert P. wrote:
 
   I need to schedule a job and it is not worth installing cron on our
   W2K3 hosts for just for this one backup application.
  
   I have a name.sh script that if I run in a bash window it runs fine.
  
   In a W2K3 command prompt window I have tried
  
 C:\cygwin\usr\bin\bash.exe -c \local\adminscripts\name.sh
  ^^^[1]^^[2]
 
  First off, if [1] works, something's seriously wrong with your system.
  c:\cygwin\usr\bin should be empty, and all of the executables you find in
  /usr/bin under Cygwin (notably bash) should be in c:\cygwin\bin.

 [McGraw, Robert P.]
 Humm I just ran the setup. I did a ls -1 | wc on both /bin and /usr/bin
 and got the same number. I wonder if it is a link.

It's a mount.  Try man mount or read about mounts in the User's Guide
(http://cygwin.com/cygwin-ug-net/using.html#mount-table).

Which also means that /usr/bin != c:\cygwin\usr\bin, with all the obvious
consequences.

  Secondly, the way you specified the path ([2] above) is not going to
  work in bash.  You really want to specify a POSIX path to your script.
 
   And I get
  
 bash-3.15$
 
  Oh, really?  Assuming the above is not a typo, you're not running the
  Cygwin bash.  The latest version that comes with Cygwin is 3.1, which
  uses bash-3.1$ as its default prompt.  In fact, that's the latest
  official release of bash, too.

 [McGraw, Robert P.]
 Yes this was a typo should have been bash-3.1$

 
   If I type exit at the command prompt then the script runs bin at the
   command prompt mode.
 
  Sorry, I can't quite parse the above.  Can you please describe the exact
  steps you've taken to run the script?  Perhaps even with a small
  self-contained script example?

 [McGraw, Robert P.]
 Trying to get the email out as my wife calls saying she is downstairs
 ready to take me home.

 I have a script called test.sh in /local/adminscripts. /local is a
 directory that I made. The script is

   #! /bin/sh
   echo HELLO WORLD

 in a W2K3 command prompt (DOS) window

   C:\cywin\bin (which is the command prompt prompt)

 I type the command

   c:\cygwin\bin\bash -c /local/adminscripts/test.sh

 It returns

   bash-3.1$

 and waiting for input. I then type exit and the script executes. The
 output is like this:

 bash-3.1$ exit
 exit
 HELLO WORLD

 C:\cywin\bin   (which is the command prompt prompt)

Umm, weird.  Sufficiently weird that we need to know more about your
installation to be able to help.  Please read and follow the Cygwin
problem reporting guidelines at http://cygwin.com/problems.html,
particularly the part about *attaching* the output of cygcheck -svr.

   So the question is how do you start a unix shell script from the
   window command prompt.
 
  The usual way (that would also replicate the environment you have in
  your shell) is 'c:\cygwin\bin\bash.exe -l -c /path/to/script.sh'.
  However, you might want to also make sure that your PATH is set up
  correctly, especially if you plan to do this through the Windows
  scheduler.  Also note that the Windows scheduler will run your script
  as the SYSTEM user, not as the user you normally use to log in.

The above also implies that your rc files may contain weirdness.  Please
also attach the contents of .bashrc and .bash_profile in your home
directory.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 'Fatal Error' from Setup.exe (postgres)

2006-07-30 Thread Igor Peshansky
On Sun, 30 Jul 2006, Angelo Graziosi wrote:

 I want to flag the following problem.

 With the current setup.ini (20060730 15:00, size 569848) I have the
 following 'Fatal error' from Setup.exe:

 
 Fatal error: Uncaught Exception
 Thread: Dialogproc
 Type: 9Exception
 Message: Package validation failure for

 file://C:\cygwin\home\angelo\.\cygwin/release/postgresql/postgresql-client/postgresql-client-8.0.7-1.tar.bz2

 AppErrNo:1

 

 I am using setup.exe 2.510.2.2 (i.e. the current setup.exe).

 I am using the same file of setup.exe since it was released whithout
 problems until today.

This is due to a 0-length file used for an empty package.  As far as I
know, this has already been fixed on sourceware.org, and should propagate
to the mirrors soon.  You might want to go and physically delete the
offending file from your system, as well as clear the IE cache, to pick up
the fixed version.

FWIW, a newer setup snapshot (see http://cygwin.com/setup/snapshots/)
did not crash in this situation.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin

2006-07-31 Thread Igor Peshansky
On Mon, 31 Jul 2006, Dr. Christoph Gille wrote:

 Dear Mr Pechtcha,

Peshansky, actually...

 Searching the mailing-list for an answer to my CYGWIN problem I found
 a posting from you about a related topic and hope that you might be
 able to help me.

 Please appologize that I contact you directly before
 posting to the mailing list

As described in http://cygwin.com/acronyms/#PPIOSPE, it's almost always
better to post to the list, unless private email is specifically requested
by the other party.

 The Java program I write has some embedded C and Fortran source code
 and therefore requires standard compilers which are absent on XP and
 Windows2000.

 Therefore the Java program downloads cygwin setup.exe and launches
 setup.exe.

 Before launching setup.exe it tells the user to select the program
 gnu-make and the compilers for C, C++ and f77 in the devel group.

 I would prefere if it could select it automatically to enable
 unattended installation of these software components.

 Further I want the installation in driveLetter:\cygwin\ because the
 Java program needs to find the cygwin installation on HD.

 The only choice the user has to make is the driveLetter.

 What would be the best way to initiate a tailored installation on
 a client running my Java program.

Cygwin setup.exe supports a variety of command-line options.  Googling for
cygwin setup command-line options should unearth a list (or run setup
--help and examine the file setup.log).  You might have better luck with
newer setup snapshots (from http://cygwin.com/setup/snapshots).

Selecting packages might be a problem in your situation.  There's an
experimental patch for package selection via the command line -- search
the cygwin-apps list archives.  If you are willing to setup a mirror site
for your users, you can use the empty package with dependences trick that
I posted numerous times to the Cygwin mailing list (Google for cygwin
automated install).

 Many thanks for your help
 Christoph Gille

 P.S.

 I think that this is a general problem
 which should be in in the FAQs. What is your opinion ?

There are too many variations for this to make a concise FAQ entry.
Perhaps a chapter in the User's Guide?
http://cygwin.com/acronyms/#SHTDI and http://cygwin.com/acronyms/#PTC.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



re: cygwin

2006-07-31 Thread Igor Peshansky
Christoph,

Please do not send private email with Cygwin questions unless specifically
requested.  Read http://cygwin.com/acronyms/#PPIOSPE for details.  I set
my Reply-To: header for a reason -- please make sure your mailer respects
it.

On Mon, 31 Jul 2006, Dr. Christoph Gille wrote:

 Dear Igor,

 many thanks for your help, I had a few tests and I guess it will work.

 I will start setup.exe interactively with the options -l and -R to give
 the user the chance to chose a close mirror and to use a Proxy.

 I do not expect that setup.exe is able to fetch the proxy setting from
 IE or to select the closest mirror so better I run it interactively at
 the first time.

When Use IE5 Settings is selected, setup will not *copy* settings from
IE -- it will actually *use* IE to connect and retrieve documents, with
all the default settings.

However, the command-line options only specify defaults -- the user is
free to change those defaults inside the setup session.

 Subsequently I append the  gcc-core to the file installed.db
 and start a  quiet setup.exe run with option -q.

Make sure installed.db actually *exists* before doing this.

 I am sure it will work.
 Thanks again for your help
 Christoph

You're welcome, glad it helped.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: install Crypt::CBC in cpan shell in Cygwin

2006-08-01 Thread Igor Peshansky
On Mon, 31 Jul 2006, DogStooge wrote:

 Hey, folks.

 This is what I get when I type install Crypt::CBC in the cpan shell:

 Crypt-CBC-2.18/Crypt::CBC-2.16-vulnerability.txt
 /usr/bin/tar: Crypt-CBC-2.18/Crypt\:\:CBC-2.16-vulnerability.txt: Cannot
 open: Invalid argument
 /usr/bin/tar: Skipping to next header
 Crypt-CBC-2.18/Changes
 Crypt-CBC-2.18/Makefile.PL
 Crypt-CBC-2.18/META.yml
 Crypt-CBC-2.18/README.compatibility
 Crypt-CBC-2.18/CBC.pm
 Crypt-CBC-2.18/MANIFEST
 /usr/bin/tar: Error exit delayed from previous errors
 Couldn't untar Crypt-CBC-2.18.tar

 I'm installing this module because I'm trying to install Net::SFTP.

 I tried renaming the file inside the tar file but the checksum failed
 when I tried to use the modified tar.

 Any advice?  :-)  Thanks in advance.

As Reini rather forcefully alluded to, using ':' in filenames is
non-portable.  You really should complain upstream about using that
character in their filenames.  The standard Perl convention is to replace
'::' by '_', anyway.

However, another workaround is

mount -u -o managed `cygpath -m /home/$USER/.cpan` /home/$USER/.cpan

This will set up .cpan as a managed mount, which supports all kinds of
special characters in filenames.  Don't expect Windows programs to
understand them, though.  And you might have trouble actually installing
the package (if it uses those characters in installed files).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: how to set up cygwin to use home under cygwin dir

2006-08-01 Thread Igor Peshansky
On Tue, 1 Aug 2006, umen wrote:

 Hello
 I install cygwin under d:/ dir (d:/cygwin) but the installation created the
 my home dir in the physical dir in : C:\Documents and Settings
 how can I change it to point in to d:/cygwin/usr/home ?

See http://cygwin.com/faq/faq.setup.html#faq.setup.home or read
/etc/profile.

 and also I notice I
 don't have the .bashrc and all the config files
 where can I find them in the cygwin dirs?

The first login shell you start should copy those files into your home
directory.  If you're interested in more details, take a look at
/etc/profile.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Windows popup/message box?

2006-08-02 Thread Igor Peshansky
On Thu, 3 Aug 2006, Reini Urban wrote:

 Igor Peshansky schrieb:
  On Thu, 27 Jul 2006, Richard Foulk wrote:
   Looking for a simple way to popup a message box on Windows via
   a Perl script on a system with Cygwin.
  [snip]
  Theoretically, it should be as simple as
 
  use Win32::GUI qw(MessageBox);
  MessageBox(0, message, title, 64);
 
  However, the Win32::GUI module fails to load for me at the moment,
  claiming the DLL is not found.  I have no time to investigate and create a
  proper bug report, but if it works for you -- great.

 Uh? Need not be very proper.
 Which dll? Which versions (perl and win32-gui)?

Ok, here you go:

$ uname -svr
CYGWIN_NT-5.1 1.7.0(0.159/4/2) 2006-07-29 22:39
$ cygcheck -cd perl perl-libwin32
Cygwin Package Information
Package  Version
perl 5.8.7-5
perl-libwin320.26-1

$ perl -e 'use Win32::GUI qw(MessageBox); MessageBox(0, message, title, 
64);'
Can't load '/usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/GUI/GUI.dll' for 
module Win32::GUI: No such file or directory at 
/usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
 at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

At this point the perl.exe process started consuming 100% of the CPU and
allocating memory like crazy.  I let it get to 1.2G before killing it
(took about 35 minutes).  It did react to a Ctrl-C in the parent bash
window.

I wasn't able to open another Cygwin window and attach to the hanging
process with strace, because my system slowed down to a crawl and stopped
responding to most window messages.  Perhaps I'll repeat the experiment
someday.

BTW,

$ ls -l /usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/GUI/GUI.dll
-rwxrwxr-x 1 Administrators SYSTEM 861696 Jan 12  2004 
/usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/GUI/GUI.dll

Let me know if you want further details.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Windows popup/message box?

2006-08-02 Thread Igor Peshansky
On Wed, 2 Aug 2006, Igor Peshansky wrote:

 $ perl -e 'use Win32::GUI qw(MessageBox); MessageBox(0, message, title, 
 64);'
 Can't load '/usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/GUI/GUI.dll' for 
 module Win32::GUI: No such file or directory at 
 /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
  at -e line 1
 Compilation failed in require at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.

 At this point the perl.exe process started consuming 100% of the CPU and
 allocating memory like crazy.  I let it get to 1.2G before killing it
 (took about 35 minutes).  It did react to a Ctrl-C in the parent bash
 window.

 I wasn't able to open another Cygwin window and attach to the hanging
 process with strace, because my system slowed down to a crawl and stopped
 responding to most window messages.  Perhaps I'll repeat the experiment
 someday.

Actually, in a typical D'oh! moment I realized that I can simply start
the perl process under strace -- if I kill it early enough, it doesn't
affect my system too much.  The strace wasn't very illuminating as to the
cause of not finding the DLL (Windows error 126), but it did have a weird
sequence of mmap()/munmap() that seems to be the cause of 100% CPU and the
virtual memory allocation.

If you're interested in tracking this down further, I can send you the
strace off-list.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 1.5.21-1 missing header file 'jpeglib'

2006-08-03 Thread Igor Peshansky
On Thu, 3 Aug 2006, Susana Manrique de Lara Sanz wrote:

 Hi everybody,

Hi, Susana,

 I've installed Cygwin about 5 times because the jpeglib.h seems to be
 missing.

We don't know what packages you've installed, so can't say if this is a
problem with your installation or a more general one.  Please read and
follow the Cygwin problem reporting guidelines at
http://cygwin.com/problems.html, particularly the part about attaching
the output of cygcheck -svr (as an uncompressed text *attachment*).

 I install it from the internet and select all the packages needed. IN
 libs section I need libjpeg62, libpng12-devel, zlib, which all seem to
 be installed properly except from the first one.

What makes you believe that?  The contents of the libjpeg62 is a single
DLL, /usr/bin/cygjpeg-62.dll (which, BTW, is a compatibility DLL -- you
should be installing libjpeg6b for a more current one).  However, if you
select the right packages, libjpeg6b should be selected automatically for
you.

 I say this becasuse when I try to compile my project this message is
 shown: missing header file 'jpeglib.h'
 I've search for it and I can't find it anywhere, I thought it should be
 at /cygwin/usr/include/ as the other libs are but the libjpeg isn't
 there.

It's not a lib, it's an include file.  But yes, it's supposed to be under
/usr/include once you've installed the right packages.

 I've tried to reinstall the library from the setup.exe and also using
 different mirrors but nothing has changed.

Because you're reinstalling the wrong library.  Try cygcheck -l
libjpeg62 to see the contents of that package on your system.

 The package has been downloaded but the setup process seem t forget to
 install it or something.
 Should I just untar the downloaded package to the /cygwin/usr/include/
 directory? if that's the correct directory to do that, which I'm not
 sure at all.

I doubt that setup forgets to install any package that was selected by
the user.  Try searching for the file you need on the Cygwin package
search page at http://cygwin.com/packages/, and then install that
package using setup.

 I'm new at cygwin and I don't know muach about unix like systems...

Plenty to learn, then... :-)
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

It's hard to find a black cat in a dark room, especially if it's not there
to begin with.  --Confucius

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 1.5.21-1 missing header file 'jpeglib'

2006-08-03 Thread Igor Peshansky

On Thu, 3 Aug 2006, Susana Manrique de Lara Sanz wrote:


 We don't know what packages you've installed, so can't say if this is
 a problem with your installation or a more general one.

I've install the default packages plus this ones:
Devel - make, gcc-g++, cvs, gdb, libxml2-devel, patchutils
Net - rsync, openssh
Text - util-linux
Libs - libjpeg62, libpng12-devel, zlib


Right -- all of this is in your cygcheck output.


 Please read and follow the Cygwin problem reporting guidelines at
 http://cygwin.com/problems.html, particularly the part about
 attaching the output of cygcheck -svr (as an uncompressed text
 *attachment*).

Ok, so there it is the file with the output of cygcheck.


Thanks.


  I install it from the internet and select all the packages needed.
  IN libs section I need libjpeg62, libpng12-devel, zlib, which all
  seem to be installed properly except from the first one.

 What makes you believe that?  The contents of the libjpeg62 is a
 single DLL, /usr/bin/cygjpeg-62.dll (which, BTW, is a compatibility
 DLL -- you should be installing libjpeg6b for a more current one).
 However, if you select the right packages, libjpeg6b should be
 selected automatically for you.

 Try cygcheck -l libjpeg62 to see the contents of that package on
 your system.

I did it:
$ cygcheck -l libjpeg62
/usr/bin/cygjpeg-62.dll


Right.  So why would you expect to find the include file there as well?


 I doubt that setup forgets to install any package that was selected
 by the user.  Try searching for the file you need on the Cygwin
 package search page at http://cygwin.com/packages/, and then install
 that package using setup.

Well, but the file I need is in the package I've already installed, the
libjpeg62, that as you said, by selecting it the libjpeg6b is also
selected to be installed.


Why do you think the file you need is in libjpeg62?  The only file in that
package is /usr/bin/cygjpeg-62.dll, which is what cygcheck -l shows you.


 Plenty to learn, then... :-)

yeah, now I wish I've learnt it before but it's never too late huh? ^_^


Nope, never too late.  Try searching for the needed file (jpeglib.h) again
on the package search page (http://cygwin.com/packages/), and install
the package that actually contains it (according to your cygcheck output,
you don't have it installed yet).
Igor
--
http://cs.nyu.edu/~pechtcha/
 |\  _,,,---,,_ [EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
|,4-  ) )-,_. ,\ (  `'-'old name: Igor Pechtchanski
   '---''(_/--'  `-'\_) fL  a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin copy problems usb 2.0

2006-08-03 Thread Igor Peshansky
On Thu, 3 Aug 2006, Corinna Vinschen wrote:

 On Aug  3 01:54, Eric Blake wrote:
   I'm really seeing the non-optimized cygwin cp behaviour causing bad
   reputation, which could be easily patched and maybe even accepted
   upstream. Who knows. Eric what do think? Would it be worthful to think
   about?
 
  I don't really want to maintain a Windows API patch, and doubt that

 Good.

  it would be accepted upstream.  Now if there were something more
  POSIX-y that we could do to speed things up, such as posix_fadvise,

 posix_fadvise can't be implemented nicely, AFAICS.  The POSIX semantics
 require an already opened file and the advice is given for an offset and
 a length.  The Windows semantics only allow to give the advice for the
 whole file, and only switching between FILE_SEQUENTIAL_ONLY or normal,
 using ZwSetInformationFile.  By re-opening the file using ZwOpenFile it
 would also be possible to toggle the FILE_RANDOM_ACCESS flag.  Still,
 it's always for the whole file, not for an area giving offset and length.

Theoretically, it's possible to implement posix_fadvise only for offset=0
and length=length-of-file, and have it fail with EINVAL otherwise...
While technically not POSIX-compliant, it would still allow for better
implementation of things like copy...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: making a cygwin install.

2006-08-04 Thread Igor Peshansky
On Fri, 4 Aug 2006, McGraw, Robert P. wrote:

 I would like to create a cygwin setup package so that users can install
 the same software package on their machines.

 Is this possible? If so can you point me to the documentation that
 explains how to do this?

Robert,

All of the information you're looking for should be on these pages:
http://sourceware.org/cygwin-apps/setup.html and
http://sourceware.org/cygwin-apps/package-server.html.
You might also Google for genini cygwin.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Escape Character

2006-08-04 Thread Igor Peshansky
On Fri, 4 Aug 2006, Franz Wolfhagen wrote:

 [EMAIL PROTECTED] wrote on 04-08-2006 14:23:49:

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  Hi
 
  I am new to Cygwin and I am just trying to use the escape character
  example is
 
  echo \t\t Hello
 
  but this returns \t\t Hello and ignores the escape characters.
 
  I was looking for it to return Hello with a couple of TABS in front
  like it does on our True64 unix system.  Is the escape character
  differant in Cygwin or am I missing something ??? any help would be
  great

 man echo has the answer - on Cygwin use the -e argument ie :  echo
 -e \t\t Hello

Almost correct, except that in bash, echo is a shell builtin, and you
should've been using help echo instead of man echo.  Luckily, both
/bin/echo and bash's builtin understand the -e option.

It's usually a good idea to run type COMMAND first, to find out what
COMMAND is, to make sure you're looking at the right documentation.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh breaks while loop

2006-08-04 Thread Igor Peshansky
On Fri, 4 Aug 2006, CB wrote:

 If file hostlist contains:
 hosta
 hostb
 hostc

 then execute this shell script:
 while read host
 do
 ssh $host ls -al .profile
 done  hostlist

 the while loop executes one time and quits.

 But,
 while read host
 do
 echo $host
 done  hostlist

 executes 3 times.

 Am I missing something or is this a bug?

WJFFM.  There are many things that can be different in our environments.
Are you sure you're reading the hosts separately?  What's IFS set to?
Try prepending something to $host in your second loop, e.g., echo Host:
$host and see if you get them echoed one host at a time, or all three at
once.  You may also insert echo before the ssh in the first loop and see
if you get 3 echoes.  Also, is set -e in effect?  If it is, the loop may
be quitting if the first ssh returns false.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: making a cygwin install.

2006-08-04 Thread Igor Peshansky
On Fri, 4 Aug 2006, McGraw, Robert P. wrote:

  -Original Message-
  From: Igor Peshansky [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 04, 2006 9:34 AM
  To: McGraw, Robert P.
  Cc: [EMAIL PROTECTED]

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  Subject: Re: making a cygwin install.
 
  On Fri, 4 Aug 2006, McGraw, Robert P. wrote:
 
   I would like to create a cygwin setup package so that users can
   install the same software package on their machines.
  
   Is this possible? If so can you point me to the documentation that
   explains how to do this?
 
  Robert,
 
  All of the information you're looking for should be on these pages:
  http://sourceware.org/cygwin-apps/setup.html and
  http://sourceware.org/cygwin-apps/package-server.html.
  You might also Google for genini cygwin.
 [McGraw, Robert P.]

 I have looked through the suggested ULR and not finding my answer.

 I googled genini cygwin, and the perl script pointed me
 cygwin.com/setup.html, but it is talking about creating software
 packages. This does not sound like what I need to do.

This sounds like exactly what you asked for above.

 So let me rephrase my question and ask how other people handle this
 through an example.

 I need to install the Cygwin/Xserver on multiple machines. I first
 installed Cygwin  Cygwin/X and all necessary and needed packages from a
 cygwin server to my WinXP test system.

 Once I have tested and have it working with the right parameters, I now
 need to install the same software on multiple machines. I would like to
 create some kind of bundle or selfextracting file that a user can get
 and install on their WinXP machine. This will be sure that users have
 what they need to run the Cygwin/Xserver.

Creating a self-extracting .exe that installs parts of Cygwin is not a
very Cygwin-friendly way of distributing software, as it won't play nicely
with existing Cygwin installations (see http://cygwin.com/acronyms/#3PP).
The approved way of installing Cygwin is using the setup.exe tool.

However, there is a way of doing what you want using setup.exe.  Simply
create a Cygwin package that contains the right configuration files, add a
setup.hint that puts the package in the Base category and requires all the
standard packages you've installed, then publish your package on some web
site and have your users run Cygwin setup and point it to both a standard
mirror and your site.  The users will then have all the right packages
selected automatically.  You might want to have your package initially put
the config files somewhere other than their final location (e.g.,
/etc/defaults), and then have the postinstall script that moves them into
the right location (to ensure that the postinstall scripts of all other
required packages have completed by the time you do that).

If you do it right, the users can later update Cygwin on their machines or
install more packages in a standard way.  Just make sure there are no
clashes of the files actually included in your package with the files
included in other package tarballs, otherwise setup will remove your files
if the user decides to update those packages later.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin, Coda and symbolic links

2006-08-04 Thread Igor Peshansky
On Fri, 4 Aug 2006, Adam Wolbach wrote:

  http://www.google.com/search?as_q=windows+shortcut+file+format
 
  The first match
 
  http://mediasrv.ns.ac.yu/extra/fileformat/windows/lnk/shortcut.pdf
 
  is what you're looking for and what I used when implementing the
  shortcut stuff.

 Thanks, this gets me more than halfway to what I need to know -- the
 missing piece is how these fields need to be filled out to appear as a
 symbolic link to cygwin. Worst case I can just hunt through the cygwin
 source, but if you happen to know or have notes lying around somewhere,
 it might be useful to more than just us to post them somewhere. Thanks
 again.

Your best source of information is probably symlink_worker() in
http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/src/winsup/cygwin/path.cc?content-type=text/plaincvsroot=srconly_with_tag=HEAD.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Checking XCOPY Exit Value in Cygwin Bash

2006-08-06 Thread Igor Peshansky
On Sun, 6 Aug 2006, Shane wrote:

 Hi all,

Hi.  http://cygwin.com/acronyms/#PCYMTWLL.  Reading the one-line below
was extremely painful in the web archives.  See for yourself:
http://cygwin.com/ml/cygwin/2006-08/msg00169.html.

I am writing a automated build script for my project that will be
 run under cygwin. I will copy my updated source files to the build
 directory and if there are updated files, the executables will be built.
 To copy the source files, I had to use XCOPY since the directory
 structure should be preserved in the destination directory also.

Nope, you didn't have to.  Something like

(cd $2/..  find $2 -name *.$1 | tar cfT - -) | tar xfC - $3

would do the job of XCOPY /S using POSIX means.

 To copy only the updated files, I used the /D switch for XCOPY.

If you go POSIX, you can use the --keep-newer-files tar option.

 Now since I want
 to execute the source compile only if files in the build directory have
 been updated, I have to use the exit codes of XCOPY inside the script. I
 tried checking the value of $! after executing XCOPY but it didnt work.

Of course it didn't.  Please read a good bash tutorial, or the Special
Parameters section of the bash manpage.

 I couldn't find a solution in the internet too.  Currently I am piping
 the standard output to a file and checking if the number of files copied
 is 0 or not. But I think this is not an elegant solution. This is what I
 am doing now.

 [script]
 copied=false
 # Helper Function
 copy_files()
 {
 echo copying *.$1 files in $2 to $3\\$2
 xcopy /DSYI $2\\*.$1 $3\\$2 | tee copy.log

 while read amount  ; do
 if [ ${amount::1} != 0 ]; then
 copied=true;
 fi
 done  copy.log
 }
 cd ../source

 copy_files h. ..\\build
 copy_files c. ..\\build
 copy_files cpp  . ..\\build
 rm -f copy.log
 ! $copied  echo Files up-to-date. Skipping build  exit 0
 cd ../build
 # Start the Build Process
 [/script]

 Can you please provide me a way of checking the XCOPY exit code:
 reference
 [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true]
 within Bash?

It's just like checking any other exit code in bash: reference man bash.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Checking XCOPY Exit Value in Cygwin Bash

2006-08-06 Thread Igor Peshansky
On Mon, 7 Aug 2006, Shane wrote:

 What I am trying to do is, checkout the source to the build directory
 and if there are any local changes in my working directory copy them to
 the build directory, build and do a test run from there. This is so that
 I can test my code before I do the actual check in.

As David said, cvs has an easy way of doing this (using cvs diff and
patch), which will also deal with local and checked in changes to the
same file (while your method won't).

 To Igor,
   Your method worked perfectly for paths with spaces too. :)

It was designed to. :-)

 Now if only I had a way of detecting if files were updated or not.

Did you happen to notice the mention of the --keep-newer-files tar
option in my original reply to you?  Just add that to the last tar, and
you will only copy the files that were changed in your copy (presumably by
you) after the checked in version.

 To Mark
   I tried it again. Unfortunately echo $? gives 0 for both the cases of,
 number of files copied = 0 and, greater than 0.
   The link I posted from MSDN
 http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true
 says that XCOPY returns 1 when there were no files to be copied.

MSDN apparently lies.  XCOPY for me returns non-zero on error, and 0 on
normal execution (no matter how many files were copied).

 So I guess I am back to square one. :(

There are quite a few POSIX and Unix tools that are much better for this
job than xcopy.  I'd say investing some time in a Unix tutorial now would
save you more effort in the long run.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: installer: select packages: text background color

2006-08-06 Thread Igor Peshansky
On Sun, 6 Aug 2006, Eric Blake wrote:

  A display bug was introduced about a year ago in the Select Packages
  screen of Cygwin's installer.  The text's background color is manually
  set to white but the text's color relies upon the system's settings
  for Window Text.

 This bug was also reported about a year ago, and fixed about a year
 ago.  See http://cygwin.com/setup/snapshots/ for a snapshot with
 the fix incorporated, and then join the crusade to get the snapshot
 tested to the point that it can be released as the next stable version
 of setup.exe.

This would be a good sentiment if the setup snapshots on that page were
recent enough to warrant testing.  However, before we can start the above
crusade, we have to embark on a crusade for getting a more recent setup
snapshot out.  Max or Brian, would it be possible to produce one and post
it to setup/snapshots?  It's been overdue for a while (2.529 is 5 months
old).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How can I create root user?

2006-08-07 Thread Igor Peshansky
On Mon, 7 Aug 2006, MORENO CANTADOR, PATRICIA wrote:

I'm new at using cygwin. I need to have user with root privileges to
 execute a daemon, but I have discovered I don't have root user, however
 I do have a group called root. There isn't any user assigned to this
 group, so I don't really have any user with those privileges. I have a
 user called administrador and I have also a group called
 administradores with ID 544, but the user administrador haven't this
 ID assigned, it have ID 513. How can I create a root user or something
 similar to have root privileges to execute the daemon?

Patricia,

Before asking how you can create a root user, why not tell us what you're
trying to achieve (i.e., which daemon you want to execute and why you
think it needs a root user).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: installer: select packages: text background color

2006-08-07 Thread Igor Peshansky
On Mon, 7 Aug 2006, mwoehlke wrote:

 Daniel Convissor wrote:
  On Sun, Aug 06, 2006 at 06:46:52PM +, Eric Blake wrote:
   This bug was also reported about a year ago, and fixed about a year
   ago.
 
  Great, thanks.
 [snip]

 However, be aware that the most recent build I've tried still gets the
 tree-structure color wrong, such that the tree lines and icons are
 invisible (in my actual colors, they are a different but visually
 indistinct color, but I have found that some colors make them 100%
 indistinct).

Matthew,

Please try the latest setup snapshot (2.551, I believe) from
http://cygwin.com/setup/snapshots/.  If it still exhibits the same
problem, please post the exact color settings you use, so that I can try
reproducing it on my machine.  If you're running on an OS other than XP,
it would be interesting to know too.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Ansi escape sequences showing in Man pages

2006-08-08 Thread Igor Peshansky
On Wed, 9 Aug 2006, jbonnett wrote:

 I am having a problem where escape sequences, rather than colour
 highlighting, appear when I display man pages.

 I am running CygWin under Windows XP SP2. My prompt (the default)
 contains escape sequences and the prompt appears correctly in colour. If
 I enter
 ls --color
 then I see nicely coloured names but in man I see escape sequences.

 I have searched the archives and, although there are lots of mentions of
 escape sequences, nothing seems to match this problem.

 I run CygWin at home under Win2K and I have a colleague at the next desk
 that is running CygWin under XP SP2. The man pages are fine in both
 these two cases.

 Any clues about what to check to fix this on my work machine?

Unset PAGER.

If that is not your problem, please read and follow the Cygwin problem
reporting guidelines at http://cygwin.com/problem.html, particularly the
part about attaching (as an uncompressed text *attachment*) the output of
cygcheck -svr on your machine.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Ansi escape sequences showing in Man pages

2006-08-08 Thread Igor Peshansky
On Tue, 8 Aug 2006, Igor Peshansky wrote:

 On Wed, 9 Aug 2006, jbonnett wrote:

  I am having a problem where escape sequences, rather than colour
  highlighting, appear when I display man pages.
 
  I am running CygWin under Windows XP SP2. My prompt (the default)
  contains escape sequences and the prompt appears correctly in colour. If
  I enter
  ls --color
  then I see nicely coloured names but in man I see escape sequences.
 
  I have searched the archives and, although there are lots of mentions of
  escape sequences, nothing seems to match this problem.
 
  I run CygWin at home under Win2K and I have a colleague at the next desk
  that is running CygWin under XP SP2. The man pages are fine in both
  these two cases.
 
  Any clues about what to check to fix this on my work machine?

 Unset PAGER.

 If that is not your problem, please read and follow the Cygwin problem
 reporting guidelines at http://cygwin.com/problem.html, particularly the
  
Apologies.  Make that http://cygwin.com/problems.html.

 part about attaching (as an uncompressed text *attachment*) the output of
 cygcheck -svr on your machine.
 HTH,
   Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: qt-mt pkgconfig file - missing -lresolv

2006-08-09 Thread Igor Peshansky

On Wed, 9 Aug 2006, Rafal Mantiuk wrote:


I noticed that qt-mt.pc pkg-config file contains -lresolv, but this
library does not exist in the cygwin distribution.


It does, actually, but you can't find it on the package search page.
That's because it's a symlink to /usr/lib/libminires.dll.a that is created
during the postinstall phase.

The idea of keeping a manifest of files created during postinstall has
been floating around for a while, but http://cygwin.com/acronyms/#SHTDI.
Igor
--
http://cs.nyu.edu/~pechtcha/
 |\  _,,,---,,_ [EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
|,4-  ) )-,_. ,\ (  `'-'old name: Igor Pechtchanski
   '---''(_/--'  `-'\_) fL  a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Setup.exe requirements [was RE: Cygintl-3.dll was not found]

2006-08-10 Thread Igor Peshansky
On Thu, 10 Aug 2006, Dave Korn wrote:

 On 10 August 2006 14:39, Christopher Faylor wrote:

  On Thu, Aug 10, 2006 at 10:00:19AM +0200, Tevfik Karag?lle wrote:
  cgf wrote:
  Standards such as?  A pointer to a free installer which uses Windows
  standards and which will handle Cygwin's needs would be useful, e.g.,
  would NSIS meet your needs?  We've discussed using NSIS in the past.
 
  Can anyone give me a qualified reference about the requirements of a
  core cygwin environment ?  I would like to try to develop an NSIS
  installer for it.
 
  Huh?  setup.exe installs a core cygwin environment right now.
  What kind of reference would you be expecting other than the
  operation of the current installer?
 
  cgf

   I imagine Tevfik just wants us to enumerate the things it needs to do:

 1)  Allow package selection and handle dependencies, based on setup.ini
 information and the content of the local package store.
 2)  Create basic cygwin registry mountpoints if they don't already exist.
 3)  Untar selected package tarballs in cygwin root directory when installing,
 delete previously installed files when uninstalling.
 4)  Run preuninstall and postinstall scripts as requested.
 5)  Maintain suitable setup.db information for cygcheck to continue working.
 6)  Optionally create desktop / start menu shortcuts.

   Does that cover all the essentials?

7)  Run preremove scripts on uninstalls.
8)  Allow installing package sources.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: ruby irb doesn't seem to work

2006-08-11 Thread Igor Peshansky
On Fri, 11 Aug 2006, Dave Korn wrote:

 On 11 August 2006 15:31, Will Parsons wrote:

  Dave Korn wrote:
  On 11 August 2006 14:37, Will Parsons wrote:
 
  Starting up irb (interactive Ruby), I get:
 
   $ irb
   /usr/bin/ruby: no such file to load -- ubygems (LoadError)
 
  Did I omit to install something I need here?
 
Looks lke you omitted to install the leading letter 'R'.
 
   ba-dyum-tissshhh!
 
  Now what package is that in? ;-)

Why, the r package, of course.  However, it doesn't seem to be on most
mirrors, so those mirrors are probably broken...  Don't use them. :-)

  Seriously, I think I've found the problem - I had an environment
  variable
 
RUBYOPT=-rubygems
 
  Unsetting the variable seems to fix the problem.  Apparently, I'd
  installed a non-Cygwin version of Ruby (which I didn't even remember
  doing), and this interferes with the Cygwin version.

   LOL, this happens so often and with so many languages it deserves an
 acronym.

   TCOASSA!

And that would stand for?..

   The missing R is still a clue though.

 ---
 [EMAIL PROTECTED] /artimi/tools/linux ruby --help
 Usage: ruby [switches] [--] [programfile] [arguments]
[ ... snip ... ]
   -rlibrary   require the library, before executing your script
 ---

   So, I dunno if RUBYOPT=-rrubygems would work better.  Not without
 having rubygems installed, anyway, I don't suppose.  Or perhaps it's one
 of those awful puns like -liberty.

It is, actually, FWICS.

   Hmm.  It suggests here:
 http://rubyforge.org/tracker/index.php?func=detailaid=2497group_id=126atid=576
 that it's actually the cygwin package that sets the RUBYOPT variable,
 even though it doesn't come with the rubygems library.  If so, that
 would be a packaging issue.  OTOH, a quick scan through the package
 listing for cygwin ruby doesn't show any postinstall script that could
 have done that, so I'm not so sure if the report is accurate: I think
 you've probably put your finger on it.

FWIW, a postinstall script cannot set an environment variable -- it would
have to be set in an /etc/profile.d script.  But you're right -- ruby
doesn't come with one (and I don't have RUBYOPT set, even though I have
the latest Cygwin ruby installed).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Tweaking Setup.exe's UI

2006-08-11 Thread Igor Peshansky
On Fri, 11 Aug 2006, Lee Maschmeyer wrote:

 I've seen some mention of making the Cygwin installer more Windows-like.
 While this is by no means agreed upon as a goal, I believe it wouldn't
 take very many changes to achieve.

As someone who has been trying to write some code to do exactly that for
the past year (in my copious spare time, of course), I can state with
confidence that your belief is wrong.

 I'm blind and obviously can't speak for sighted people, but I can tell
 you how most of us blinks work most of the time and we can see how many
 of you get distressed. :-)
 [snip description of the Windows Explorer detail view]

 IMHO, pop-ups for clipped items should be avoided; hence the display
 area on the bottom line should be as long as possible.

 Would this give everybody the information they need? Would the format be
 at least as convenient as the current one? Would anything be lost?

Let me clarify my sentence above.  While it looks like there wouldn't be
too many *visual* changes in the code (except for the ability to use
keyboard shortcuts and access the values of all string fields at the
Windows level), there is a mountain of code that would need to be
rewritten to achieve this effect (i.e., use standard Windows controls).
What you seem to overlook (sorry for the puns) is the fact that the
package selection logic is currently very tightly intertwined with the
custom graphical code that displays the package selection lists.
Decoupling those two bits of functionality would be the first step in the
direction of having a more Windows-standard and accessibility-friendly
setup tool.

I've been (slowly) working on just such a design for the past year or so.
Searching the archives of the cygwin-apps list should bring up many a
discussion of how this could be done and what the final interface would
be.  Let me just say that the actual key mappings and the visual layout
are the easiest things to tweak once the base design is in place.

Unless someone steps in with a patch that does the above, I, for one, am
going to be ignoring or angrily responding to any statements of the form
it seems to me that it would be very easy and would not take too many
changes...
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: group name for numberic value 2**32-1?

2006-08-11 Thread Igor Peshansky
On Fri, 11 Aug 2006, Linda Walsh wrote:

 I ran into a weird symptom -- not a bug in anything as near
 as I can tell, just a weirdness.

 Everyone once in a while, when I do an ls -l on some groups
 of files, I'll see a group of ??.  With ls -ln, I see
 the group has a value 4294967295.

http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids

 Would it be misleading or incorrect to insert an entry in
 /etc/group (maybe in mkgroup) mapping that value to nogroup?

There may be a legitimate group named nogroup.  Besides, what's wrong
with  (it's actually 8 question marks)?

 If we insert such things manually, would it be useful if
 mkgroup (and maybe mkpasswd) had some option to merge
 non-conflicting entries into their output, or would that
 undesirable for some reason?

As someone who had to add non-Windows groups to /etc/group from time to
time, I'd say it would be a useful capability, but that would require
mkgroup to read /etc/group rather than just dumping groups to standard
output...  You might be better off creating a merge_group tool of some
sort that does the merge for you (i.e., call mkgroup | merge_group
/etc/group instead of mkgroup  /etc/group).  Again,
http://cygwin.com/acronyms/#PTC.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



bash-3.0-14 source package: patches apply, but not cleanly

2005-12-26 Thread Igor Peshansky
Just a heads-up: when running ./bash-3.0-14.sh prep from the 3.0-14
source package, the log contains a bunch of messages like this:

APPLYING OFFICIAL PATCH bash30-001
missing header for context diff at line 28 of patch
patching file arrayfunc.c
missing header for context diff at line 44 of patch
[snip]
APPLYING OFFICIAL PATCH bash30-002
patching file lib/readline/display.c
Not setting time of file lib/readline/display.c (time mismatch)
missing header for context diff at line 54 of patch
patching file patchlevel.h

etc...
None of the hunks actually fail to apply, AFAICS, but the above may still
be worth investigating.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac


<    4   5   6   7   8   9   10   11   12   >