Re: pine setup.hint update needed?

2008-10-03 Thread Igor Peshansky
On Mon, 29 Sep 2008, Corinna Vinschen wrote:

 Igor,

 On Aug 30 19:34, Christopher Faylor wrote:
  - Forwarded message from Sagar Chaki -
 
  hello,
 
  pine 4.58 needs cygcrypto-0.9.7.dll, which is provided by openssl097.
  however, it seems that openssl097 is not automatically installed along with
  pine 4.58.
 
  thanks
 
  - End forwarded message -

 I think the right thing(TM) to do here would be to upload a new pine
 release which is linked against openssl-0.9.8.  Openssl 0.9.7 is
 outdated and has security issues.

Hi, Corinna,

Yes, that's the right thing to do, and I will try to do this early next
week (will be without internet access all weekend).  In the meantime,
please add openssl097 to the requires: line in pine's setup.hint.
Thanks,
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: rsh from linux to windows2003 server

2008-05-31 Thread Igor Peshansky
First off, http://cygwin.com/acronyms/#PPIOSPE.  Not only will you get
access to more expertise than any one person can provide, but your query
and the answers to it will be archived on the web for everyone to see.

On Fri, 30 May 2008, Xiao Qing Liu wrote:

 Sir:
   I meet a issue:

   rsh 46.0.98.17  -l admin  e:/batch_files/1.bat

  I got the log:

   connetion refused

  note:

  local machine is  linux

  targe machine is window 2003 server

 Do you know how I can resolve the issue?

 Best Regards,
 Liu Xiaoqing
 IT Specialist - CRM,GBS,IBM CHINA
 [EMAIL PROTECTED]
 Mobile: (86)15901643739
 Office:  (86-21)63262288-6188

There isn't enough information in your message to determine the cause of
the error.  It could be anything from sshd misconfiguration to an
interfering external application.  Please read and follow
http://cygwin.com/problems.html for instructions on how to provide more
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: links broken during a backup (not restore), need more info on how they work to fix file bug with vendor

2008-05-16 Thread Igor Peshansky
On Fri, 16 May 2008, vapid vapid wrote:

 Hi,

 I believe my backup program (CMS ABS Bounceback) is mucking with the
 links in my cygwin and work directories when it is creating a backup.
 It doesn't appear to affect links created by windows, only those created
 by cygwin.  I don't fully understand the cygwin links: there are some
 that end in .lnk and are close to windows shortcuts, and there are
 others that don't end in .lnk and start with !symlink.  Both get
 broken.  The files still exist, but I get the message /usr/bin/vi:
 /usr/bin/vi: cannot execute binary file.  vi looks like a plain file
 and contains !symlinkvim.exe.  Running vim works fine.

 It happened to me a few weeks ago and wasn't sure why.  I re-installed
 cygwin  fixed all the shortcuts in my working/compiled src directories
 by deleting and recreating them.  Is there an easier way to fix this?
 I found one post in the archives saying try attrib +R, but that didn't
 help at all, on either kind of link.

You need to use attrib +R on .lnk files and attrib +S on the
plain-text links.

On a side note, you can (re)create plain-text symlinks from the command
line by using CYGWIN=nowinsymlinks ln -s FILE DEST.

 I've searched the mailing lists and google and wasn't able to find any
 help for my problem.  I know people here will say it's a problem with
 the application, but if I go to the manufacturer they'll say
 cyg-what(?), our software works fine with windows.

Just tell them that a backup program has no business clearing read-only
and system attributes on any files.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: links broken during a backup (not restore), need more info on how they work to fix file bug with vendor

2008-05-16 Thread Igor Peshansky
On Fri, 16 May 2008, vapid wrote:

 Thank you for the quick response Igor.

  You need to use attrib +R on .lnk files and attrib +S on the
  plain-text links.

 I swear I tried attrib +R on both types of links earlier, but I must
 have only tried the plain-text ones.  It does fix the .lnk's as you
 said.  I'm using these two [slow] commands to fix up my system.

 find / \( -name cygdrive -o -name proc -o -name dev \) -prune -o -name \*.lnk 
 -print -exec bash -c 'attrib +R `cygpath -d \{}\`' \;
 find / \( -name cygdrive -o -name proc -o -name dev \) -prune -o -type f 
 -exec bash -c 'grep ^\\!symlink {}  attrib +S `cygpath -d \{}\` ' 
 \;

 They scan through the cygwin root and any disks you have explicitly
 mounted.  I don't think it would actually hurt stuff on the windows side
 of the disk, but I am trying to stay out of those directories.  I'm
 fairly certain the second one is safe everywhere, but the first one
 may +R some non-cygwin links, if you have mounted windows directories.
 This doesn't seem to affect windows; the shortcut still work in explorer.
 The windows created shortcuts don't seem to work in bash with or without
 the +R, which is fine with me.

 Maybe someone can come up with a fancier find.  I had to spawn a bash to
 use the  and delay the evaluation of the `cygpath {}`.  There's a lot of
 quoting to deal with spaces in filenames.

You're spawning way too many processes here (though you do have to run one
attrib per file).  I'd go with something like this:

find / \( -name cygdrive -o -name proc -o -name dev \) -prune -o \
   -name \*.lnk -print | \
  cygpath -w -f - | perl -pe 's,\n,\0,' | \
  xargs -tr0 -n1 attrib +R

find / -mindepth 1 -maxdepth 1 \
   \! -name cygdrive \! -name proc \! -name dev -print0 | \
  xargs -r0 grep -lRF '^!symlink' | \
  cygpath -w -f - | perl -pe 's,\n,\0,' | \
  xargs -tr0 -n1 attrib +S

(not tested, but should work barring typos).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Question about link

2008-05-15 Thread Igor Peshansky
On Thu, 15 May 2008, Chris Howell wrote:

 I am running on Vista, and what I am doing is I open up a Dev Studio
 2008 command shell. From that command shell I launch cygwin/bash...
 Things like cl.exe are inherited from the first shell I've opened in the
 bash environment. What I want is link to be the path that is found under
 my BIN directory of my DevStudio install. However possibily because
 they're the same name when I query link, or try and use it to make a
 dll. Bash thinks I am using link to make a symbolic link as opposed to a
 dll.

 Any suggestions or help would be appreciated.

Hmm, does

export PATH=$(dirname $(which cl.exe)):$PATH

not solve this for you?  You could also do

alias link=$(dirname $(which cl.exe))/link.exe

but that will only give you link, not link.exe (in case you care).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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.7 undefined reference to getreent when using mno-cygwin

2008-05-12 Thread Igor Peshansky
http://cygwin.com/acronyms/#PPIOSPE.  I've redirected your query to the
appropriate list and set the Reply-To: header -- please make sure your
mailer honors it.

Ugh, top-posting...  Reformatted.

On Mon, 12 May 2008, Jesús Oliva wrote:

   Hi,
  
   I have a pure Win32 console program which I am trying to compile under
   Cygwin. I am
   including the following libraries
  
   -lws2_32 -lrpcrt4 -luuid -lrpcns4 -lpsapi -liphlpapi
  
   and am using a host of Win32 calls for threading, sockets, semaphores, 
   etc.
  
   I know that I need to compile with the option -mno-cygwin to be able to 
   run
   the program on
   a computer without the cygwin.dll, which is what I want, however, when I 
   add
   this option I
   get the following linker error:
  
   undefined reference to `___getreent'
  
   This is my linker statement:
  
   g++ -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D WIN32 -D CYGWIN -D
   __CYGWIN__
   CoreMain.o CoreLibrary.a -Wl,--rpath -Wl,/usr/local/lib  -o CoreTest
   -mno-cygwin -lws2_32
   -lrpcrt4 -luuid -lrpcns4 -lpsapi -liphlpapi
  
   I have found that I get this for every line in the code where I use either
  
   getchar()
   or
   printf(...\b...); fflush(stdout);
  
   and when I comment out these the error goes away, but jumps to the next 
   line
   or file where
   I use this or something like it. I must admit that I have not tried 
   removing
   all hundreds
   of them, just the first 15 or so...
  
   I have tried to include all sorts of libraries instead of the cygwin.dll 
   and
   actually,
   when I include the -lpthread it compiles, but then the program crashes 
   when
   I start using
   threads and semaphores...
  
   As I mentioned above, when I do not state -mno-cygwin, everything works 
   fine
   and the
   program runs perfectly! But then it needs the cygwin.dll, of course...
  
   I found a few references to this on the web, mostly promoting the compiler
   directive
  
   -D __CYGWIN__
  
   which I have tried, but to no avail...
  
   Below is a snippet of output from the linker. I hope this will make sense 
   to
   somebody out
   there, who can tell me what to include in my linker statement...
  
   Thank you very much in advance!
  
   Best regards,
   Thor List
  
   [Linker output snipped]
 
  Thor,
 
  You have to use -mno-cygwin for the whole compilation, not just for the
  link line, otherwise the wrong headers get picked up.  IOW, don't add
  -mno-cygwin to LDFLAGS -- instead, redefine CXX='g++ -mno-cygwin' (and
  CC='gcc -mno-cygwin') and rebuild everything from scratch.
 Igor

 I have a similar problem that the one related below, but when I try to
above
 compile everything with the -mno-cygwin option, I get many errors such
 as:

 'error: u_int32_t has not been declared

 I suppose that, if I don´t want to use cygwin.dll, I should add some
 libraries to the compiling and linking process, but I don´t know wich.
 Could you help me??

 Thank you very much,
 Jesús Oliva

You may need headers that define the above types, or you may be unable to
compile the code with -mno-cygwin if those headers are not present in
MinGW.

Remember, -mno-cygwin means no Cygwin -- you're using MinGW, and will
only be able to compile programs that MinGW has enough support for.

Further questions about this should really be directed to a MinGW 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: Unable to run sshd under a domain sshd_server account [SOLVED]

2008-05-12 Thread Igor Peshansky
On Mon, 12 May 2008, Schutter, Thomas A. wrote:

  -Original Message-
  From: Schutter, Thomas A.
  Sent: Monday, May 12, 2008 9:52 AM
  To: '[EMAIL PROTECTED]'

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

  Subject: Unable to run sshd under a domain sshd_server account
 
  I am having problems setting up sshd to run under a domain sshd_server
  account instead of a local sshd_server account.
  [snip]
  But when I login via ssh:
$ echo $USER
tschutter
$ echo $USERNAME
sshd_server

Yes -- Windows does not understand user impersonation and does not allow
real user switching.  So what sshd does is invoke processes with the
appropriate token privileges for the user it's impersonating, while
updating internal Cygwin data structures, but still running as
sshd_server.  So Cygwin sees the right user (in its internal state), but
Windows processes, of course, don't.

  The application event log has this error message:
The description for Event ID ( 0 ) in Source ( sshd ) cannot be
  found. The local computer may not have the necessary registry
  information or message DLL files to display messages from a remote
  computer. You may be able to use the /AUXSOURCE= flag to retrieve this
  description; see Help and Support for details. The following
  information is part of the event: sshd: PID 2068: service `sshd'
  failed: signal 11 raised.

Oops -- a segfault.  This is definitely a bug somewhere -- no matter what,
sshd should not segfault.

 First, I am sorry that I broke the original thread.  I was not
 subscribed to the list when I made the first post, so I was unable to
 reply to that thread.

There is a way to do this with the help of the archives.  I've posted the
recipe multiple times -- you should be able to find it in the archives.

 I solved the problem.  I had missed the /var/log files when changing
 ownership to the new domain sshd_server account.  The chown command
 above should be:
   chown fdsv-sa-prx-sshdsrvr /etc/ssh* /var/empty /var/log/lastlog
 /var/log/sshd.log

 Now the sshd server starts, and when I login my id is correct, and I can
 view shares:
   $ echo $USERDOMAIN
   FLOODDATA
   $ id
   uid=18718(tschutter) gid=10513(Domain Users)
 groups=544(Administrators),545(Users),10513(Domain
 Users),18169(FDSV-GG-PrxBLD),22611(FDSV-GG-PrxPCAdmins)
   $ ls //other/f$
   Data  RECYCLERSystem\ Volume\ Information

 Note that my USERNAME is still wrong:
   $ echo $USERNAME
   fdsv-sa-prx-sshdsrvr

See above.

 Although this method of creating and using a domain sshd_server account
 is not one of the recommended workarounds, it appears to work.

 In the other thread, Larry Hall pointed me to the FAQ
 http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the
 suggestions was to provide your password to a net use command.  I was
 unable to make that work, because net use never asks for my password:
   $ net use \\other\f$
   System error 67 has occurred.

   The network name cannot be found.

See net help use:
  The syntax of this command is:
  NET USE
  [devicename | *] [\\computername\sharename[\volume] [password | *]]
...
  password Is the password needed to access the shared resource.
  *Produces a prompt for the password. The password is
   not displayed when you type it at the password prompt.

So, you need to type net use '\\other\f$' \* (note the escaped/quoted
'*'), and it'll prompt you for the password.

 As Larry Hall pointed out in the other thread, the cyglsa dll should
 solve this problem and I look forward to trying it out when 1.7.x is
 available.  I am not ready to jump to snapshots at this time.

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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Unable to run sshd under a domain sshd_server account [SOLVED]

2008-05-12 Thread Igor Peshansky
On Mon, 12 May 2008, Schutter, Thomas A. wrote:

  -Original Message-
  From: Igor Peshansky
  Sent: Monday, May 12, 2008 4:30 PM
  To: Schutter, Thomas A.
  Subject: RE: Unable to run sshd under a domain sshd_server account
 [SOLVED]
 
  On Mon, 12 May 2008, Schutter, Thomas A. wrote:
 
-Original Message-
From: Schutter, Thomas A.
Sent: Monday, May 12, 2008 9:52 AM
To: '[EMAIL PROTECTED]'
 
  http://cygwin.com/acronyms/#PCYMTNQREAIYR.
 
Subject: Unable to run sshd under a domain sshd_server account
   
I am having problems setting up sshd to run under a domain
  sshd_server
account instead of a local sshd_server account.
[snip]
But when I login via ssh:
  $ echo $USER
  tschutter
  $ echo $USERNAME
  sshd_server
 
  Yes -- Windows does not understand user impersonation and does not
  allow real user switching.  So what sshd does is invoke processes with
  the appropriate token privileges for the user it's impersonating,
  while updating internal Cygwin data structures, but still running as
  sshd_server.  So Cygwin sees the right user (in its internal state),
  but Windows processes, of course, don't.

 Interesting.  I suspected this, but this is the first time that I have
 seen this explicitly stated.

Well, at least Windows processes don't understand the Cygwin notion of
effective UID, which is why $USERNAME and $USER don't match (one is set by
Windows, and the other by a Cygwin process -- bash).

The application event log has this error message:
  The description for Event ID ( 0 ) in Source ( sshd ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. You may be able to use the /AUXSOURCE= flag to retrieve
this description; see Help and Support for details. The following
information is part of the event: sshd: PID 2068: service `sshd'
failed: signal 11 raised.
 
  Oops -- a segfault.  This is definitely a bug somewhere -- no matter
  what, sshd should not segfault.

 Agreed.

Those problems are usually very hard to reproduce.  If you're set up to
build a debug version of sshd and run it under gdb to reproduce the fault,
a stack backtrace would be helpful.

   In the other thread, Larry Hall pointed me to the FAQ
   http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the
   suggestions was to provide your password to a net use command.  I
   was unable to make that work, because net use never asks for my
   password:
 $ net use \\other\f$
 System error 67 has occurred.
  
 The network name cannot be found.
 
  See net help use:
The syntax of this command is:
NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
  ...
password Is the password needed to access the shared
  resource.
*Produces a prompt for the password. The password is
 not displayed when you type it at the password
  prompt.
 
  So, you need to type net use '\\other\f$' \* (note the
 escaped/quoted
  '*'), and it'll prompt you for the password.

 OK.  So on a console cygwin shell:
   $ net use '\\other\f$'
   The command completed successfully.

 But when run in a ssh shell (using the sshd_server account):
   $ net use '\\other\f$' \*
   Type the password for \\zoom\f$: System error 1326 has occurred.

   Logon failure: unknown user name or bad password.

Umm, yes.  Sorry.  I forgot that sshd runs in a pty, which is a pipe as
far as Windows is concerned.  And 'net' cannot read the password from a
pipe...

 Same thing happens with:
   $ net use '\\other\f$' '*'
   $ net use '\\other\f$' *

Actually supplying the password instead of '*' should 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Unable to run sshd under a domain sshd_server account [SOLVED]

2008-05-12 Thread Igor Peshansky
On Mon, 12 May 2008, Igor Peshansky wrote:

 On Mon, 12 May 2008, Schutter, Thomas A. wrote:

   -Original Message-
   From: Igor Peshansky
   Sent: Monday, May 12, 2008 4:30 PM
   To: Schutter, Thomas A.
   Subject: RE: Unable to run sshd under a domain sshd_server account
  [SOLVED]
  
   On Mon, 12 May 2008, Schutter, Thomas A. wrote:
  
 -Original Message-
 From: Schutter, Thomas A.
 Sent: Monday, May 12, 2008 9:52 AM
 To: '[EMAIL PROTECTED]'
  
   http://cygwin.com/acronyms/#PCYMTNQREAIYR.
  
 Subject: Unable to run sshd under a domain sshd_server account

 I am having problems setting up sshd to run under a domain
   sshd_server
 account instead of a local sshd_server account.
 [snip]
 But when I login via ssh:
   $ echo $USER
   tschutter
   $ echo $USERNAME
   sshd_server
  
   Yes -- Windows does not understand user impersonation and does not
   allow real user switching.  So what sshd does is invoke processes with
   the appropriate token privileges for the user it's impersonating,
   while updating internal Cygwin data structures, but still running as
   sshd_server.  So Cygwin sees the right user (in its internal state),
   but Windows processes, of course, don't.
 
  Interesting.  I suspected this, but this is the first time that I have
  seen this explicitly stated.

 Well, at least Windows processes don't understand the Cygwin notion of
 effective UID, which is why $USERNAME and $USER don't match (one is set by
 Windows, and the other by a Cygwin process -- bash).

 The application event log has this error message:
   The description for Event ID ( 0 ) in Source ( sshd ) cannot be
 found. The local computer may not have the necessary registry
 information or message DLL files to display messages from a remote
 computer. You may be able to use the /AUXSOURCE= flag to retrieve
 this description; see Help and Support for details. The following
 information is part of the event: sshd: PID 2068: service `sshd'
 failed: signal 11 raised.
  
   Oops -- a segfault.  This is definitely a bug somewhere -- no matter
   what, sshd should not segfault.
 
  Agreed.

 Those problems are usually very hard to reproduce.  If you're set up to
 build a debug version of sshd and run it under gdb to reproduce the fault,
 a stack backtrace would be helpful.

In the other thread, Larry Hall pointed me to the FAQ
http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of the
suggestions was to provide your password to a net use command.  I
was unable to make that work, because net use never asks for my
password:
  $ net use \\other\f$
  System error 67 has occurred.
   
  The network name cannot be found.
  
   See net help use:
 The syntax of this command is:
 NET USE
 [devicename | *] [\\computername\sharename[\volume] [password | *]]
   ...
 password Is the password needed to access the shared
   resource.
 *Produces a prompt for the password. The password is
  not displayed when you type it at the password
   prompt.
  
   So, you need to type net use '\\other\f$' \* (note the
  escaped/quoted
   '*'), and it'll prompt you for the password.
 
  OK.  So on a console cygwin shell:
$ net use '\\other\f$'
The command completed successfully.
 
  But when run in a ssh shell (using the sshd_server account):
$ net use '\\other\f$' \*
Type the password for \\zoom\f$: System error 1326 has occurred.
 
Logon failure: unknown user name or bad password.

 Umm, yes.  Sorry.  I forgot that sshd runs in a pty, which is a pipe as
   
   the ssh remote session
 far as Windows is concerned.  And 'net' cannot read the password from a
 pipe...

  Same thing happens with:
$ net use '\\other\f$' '*'
$ net use '\\other\f$' *

 Actually supplying the password instead of '*' should 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Putting my packages up for adoption

2008-04-30 Thread Igor Peshansky
On Wed, 30 Apr 2008, Warren Young wrote:

 Please email me the package build scripts, and brief instructions on
 their use.  I maintain the ctags package, but do so with hand-rolled
 tools due to weirdnesses of its build system.  So, I know how to build
 Cygwin packages, but I don't know how to build _your_ packages. :)

Warren,

Downloading the corresponding source packages from the Cygwin mirrors
should give you the exact set of tools used to build the packages.
Depending on the packaging method, it could be as simple as running a
script.

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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: FW: ssmtp with multiple email accounts

2008-04-30 Thread Igor Peshansky
On Wed, 30 Apr 2008, Gary wrote:

 On Wed, Apr 30, 2008 at 09:37:39AM +0200, [EMAIL PROTECTED] wrote:

Oops.  I know it's your own address, but still,
http://cygwin.com/acronyms/#PCYMTNQREAIYR.

  If you are intent on using ssmtp, something along the following (taken
  from an old muttrc file) should work:
  [..]
  folder-hook mbox1 \
  'set sendmail=/usr/sbin/ssmtp.exe [EMAIL PROTECTED] -ap012345'
 
  The ''set sendmail=/usr/sbin/ssmtp.exe -au...'' definitely works.
  What I couldn't get to work was ''set sendmail=/usr/sbin/ssmtp.exe
  -Csome config file'' but I haven't managed to get to the bottom of
  that yet.

 Short version:
   set sendmail=/usr/bin/ssmtp -C/etc/ssmtp/config file
 works just fine in a folder-hook.

 Long version:
 If you are reading this then I solved the problem with the previously
 mentioned -C stuff - ssmtp does not seem to allow one to specify
 ~/foo.conf (for example) as the config file. If you set it to
 -C/etc/ssmtp/foo.conf then everything will be fine and you can happily
 have as many different email accounts and external mailhubs as your
 heart desires and you can maintain the configurations for. I don't
 know if not allowing the config file to be anywhere but /etc/ssmtp is
 a bug, a feature, or a random twist of fate, but it would be nice if
 the maintainer could mention it in the man file (or maybe I just
 missed it when I read it).

Could it simply be that mutt does not expand the ~ in the filename when
passing the command-line option?  Did you try the absolute path (i.e.,
/usr/bin/ssmtp -C/home/user/foo.conf)?
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: ssmtp with multiple email accounts

2008-04-30 Thread Igor Peshansky
On Wed, 30 Apr 2008, Charles Wilson wrote:

 Igor Peshansky wrote:

  Could it simply be that mutt does not expand the ~ in the filename when
  passing the command-line option?  Did you try the absolute path (i.e.,
  /usr/bin/ssmtp -C/home/user/foo.conf)?

 ssmtp does not attempt any expansion on the argument. If the shell
 doesn't expand it before passing it off to ssmtp, then it doesn't get
 expanded: so -C~/foo.conf would cause ssmtp to try to open a file
 named foo.conf in the subdirectory ~ of the current directory.

Yes, that's exactly what I meant.  Notice that I said *mutt* does not
expand the ~ -- assuming mutt uses execv.  Even if mutt uses /bin/sh -c
on the command, the ~ inside the argument does not get expanded by
shells, and the one in -C~/foo.conf is definitely inside.  Looking at
the man page, ssmtp requires that there be no space between -C and the
filename, so looks like the OP is stuck with absolute paths.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Download Incomplete. Try again? failures

2008-04-27 Thread Igor Peshansky
On Tue, 22 Apr 2008, LATHAM, JUSTIN wrote:

 I am trying to install Cygwin on a Windows XP PC that has not previously
 had it installed.  Since I want to install the exact same distribution
 on multiple PCs, I am selecting the Download Without Installing option
 to just get the packages I want first.

 I have attempted the operation on 4 different mirrors with the same
 result.  From each, I get the Download Incomplete.  Try again? error
 box when it is trying to download _update-info-dir-00605-1.tar.bz2.

 I am attaching my setup.log and setup.log.full to assist in debugging
 the probl setup.log.full e setup.log m.

Wow, nice paste... :-)

 Please let me know if you have any thoughts what I might be doing
 incorrectly.

Are you sure you're not running out of disk space (or have disk quotas
enabled)?  The logs seem to indicate something like 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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

2008-04-17 Thread Igor Peshansky
Dharini,

http://cygwin.com/acronyms/#PPIOSPE.  Not only will you have the access
to more expertise than any one person can provide, but your query and the
answers to it will be in the archives for others to find later.

I've redirected your query to the appropriate list, and set the Reply-To
header accordingly -- please make sure your mailer honors it.

On Thu, 17 Apr 2008, dharini sutharsan wrote:

 Hello Sir
 i want to use XV for my educational work and i couldn understand the
 installation procedure... kindly guide me in installing Xv...

 I hav cygwin and can in install XV in cygwin.. if so give me the
 procedures sir...

 Thanks in advance

 Regards
 Dharini

What installation procedure are you referring to?  The supported
installation procedure for Cygwin is in the FAQ:
http://cygwin.com/faq/faq-nochunks.html#faq.setup.setup.  Was there a
particular way that it didn't 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

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



Re: Directory existence prevents .exe execution

2008-04-17 Thread Igor Peshansky
On Wed, 16 Apr 2008, Luke Kendall wrote:

 We have the Ici scripting language installed on Windows.  Ici expects a
 directory called ici to exist alongside, where various libraries are
 installedd to provide extra functionality.

 Unfortunately, under Cygwin, if w try to run the command ici we get
 the error ici: command not found, because Cygwin chooses to try to
 execute the directory instead of the .exe:

This behavior (preferring the unadorned file name to the .exe) has been in
existence for a while (at least a year).  We relied on the old behavior by
having a script and a .exe with the same name (and expecting the .exe to
be invoked on Windows/Cygwin).  I remember we've had to work around this
issue when the change happened, by prepending the following to our script:

[ -x $0.exe ]  exec $0.exe $@

 $ /opt/bin/ici /cygdrive/x/bin/script/cfnhdr
 bash: /opt/bin/ici: is a directory
 $ ls -ld /opt/bin/ici
 drwxr-xr-x 1 luke Domain Users 0 Oct 17  2005 /opt/bin/ici
 $ ls -ld /opt/bin/ici.*
 -rwxr-xr-x 1 luke Domain Users 233503 Apr 18  2000 /opt/bin/ici.dll
 -rwxr-xr-x 1 luke Domain Users  24576 Jan 29  2003 /opt/bin/ici.exe

 I tried naming the ici directory Ici but it made no difference.

Try also CYGWIN=$CYGWIN check_case:strict (while the code is still in
the DLL) or managed mounts...  The latter won't work unless ici.exe is a
Cygwin program.

 The directory /opt/bin is mounted like so:
 $ mount
 \\samba\syncopt\microsoft.x86.win\bin on /opt/bin type system (textmode,exec)

 Using binmode doesn't help.  Is this a bug, that bash tries to execute a
 directory even when there's an executable (with an implicit .exe suffix,
 naturally) of the same name in existence ?

No, this is expected behavior (if you search through bash release
announcements, you should be able to see the exact point at which the
change happened).

 If not, can anyone suggest a workaround?

Other than renaming the directory or using a wrapper script, no.

 I can't just append a .exe to the #!/opt/bin/ici shell wrapper since
 then the scripts wouldn't run from Unix.

How do these scripts *ever* run from Unix?  Unix would definitely not be
aware of the .exe suffix, and would always attempt to execute
/opt/bin/ici, which, as you say, is a directory.  Do you have a
/opt/bin/ici script as well?

In any case, whatever solution you use to make it work from Unix should
work on Cygwin as well.

 Is there a bash option that controls this, maybe (I couldn't see one)?

There is no bash option to control this, AFAIK.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [HEADSUP] Let's start a Cygwin 1.7 release area

2008-04-14 Thread Igor Peshansky
On Sat, 12 Apr 2008, Brian Dessent wrote:

 Unresolved issues with this plan:

 - What are we going to do about text/binary mode?  To maintain the
 setting, setup would have to be taught to parse/write fstab.  Ugh.  Plan
 B would be to say that if you want textmode you have to edit fstab
 yourself.  That has the advantage of making it harder to use textmode,
 which leads to fewer bugreports.  On the other hand, the small army of
 insane people that do actually use textmode will probably be mad that
 they have to manually edit config files (the horror!) because the setup
 tool no longer has a choice.

Hmm.  Even now, one does not have to edit the registry to switch from
binary mode to text mode -- you just need to re-mount with the appropriate
option.  I assume the same will hold for the /etc/fstab approach.  It
might make it easier if mount understood absolute POSIX paths as well
(i.e., mount -t /etc/text /etc/text should work).

If we taught mount to do this now and removed the Text option from setup
altogether, complainers could be directed to the mount manpage.  Then
switching to the new setup won't be that much of a pain (at least in the
text/binary department).

 - Do we really want to pick a new key for $newkey, or wedge it into the
 same existing location somehow?  I admit that I do find it a bit silly
 that Cygwin still installs under Cygnus Solutions, and since a 1.7 DLL
 will not even look at the registry I guess it is proper to move to a
 totally new key for this setting.  And of course for the 1.7 testing
 period we'd want it to be separate.  But I mean long term, are we making
 3rd parties lives easier or harder by having two totally different
 places/formats to check for an existing install of Cygwin?

I agree that naming the new key Cygnus Solutions is silly, beyond
certain nostalgic value.

But one thing to consider is that by adding a registry key, we're setting
things up for one dominant installation of Cygwin.  So people juggling
multiple installations really *will* have to go edit the registry to
switch -- no more nice mount -m approach, since the mounts will no
longer apply anyway.

Also, things like heap_chunk_in_mb currently live in the registry.  Will
they stay there?  Will we instead have /etc/cygwinopts (or move it to
$CYGWIN)?
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: X is not starting

2008-04-08 Thread Igor Peshansky
On Mon, 7 Apr 2008, Daniel Senderowicz wrote:

 I'm resending the XWin.log because it seems that your spam
 blocker doesn't like the compressed file.

FWIW, the compressed attachment came through.  But it would be nice (TM)
to get a plain-text attachment, as that could be easily read through the
web archives while not polluting the actual message with inline text.

 Hi,

 I had everything perfectly working with startx :0 until I decided that
 I needed to emulate a 3-button mouse. Since I didn't find such option in
 the startx script, I set it up in the starxwin.bat which I never used
 before. So when I startxwin it will open whatever application I can
 invoke from the command line but it doesn't give me a separate layer
 such as the one I was getting with startx in which I could click with
 the mouse, etc. So I tried to go back to startx but now it closes off,
 so I don't know why I cannot go back to what I was doing before. I
 deleted /tmp/.X11-unix to no avail. I assume that there should be
 another persistent file that was modified when I invoked startxwin which
 is not letting startx work properly. Below you'll find
 the /tmp/XWin.log.

 Many thanks in advance,
 Daniel

 _
 XWin was started with the following command line:
 X :0 -multiwindow -clipboard
   
First things first: the above causes X to use the native MS window manager
instead of a separate window manager like twm.  You seem to indicate that
you liked the separate root window -- for that, remove the -multiwindow
option.

Also, if you want to emulate a 3-button mouse, try the -emulate3buttons
option.

FWIW, you can pass extra arguments to the X server via startx.  For
example, to get the above, use startx :0 -- -emulate3buttons -clipboard.

 [snip]
 _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

This might be a problem if that socket is not readable/writable by you.
Otherwise you can ignore it.

 [snip]
 winClipboardProc - Call to select () failed: -1.  Bailing.

This could indicate the presence of an application from the
http://cygwin.com/acronyms/#BLODA (see
http://cygwin.com/faq/faq.using.html#faq.using.bloda for a list).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

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



Re: A small suggestion to setup.exe of cygwin

2008-04-04 Thread Igor Peshansky
On Thu, 3 Apr 2008, Michael Kairys wrote:

 I've wondered about this too... So if I have changed my Cygwin setup on
 one machine and I want to duplicate those changes on another machine,
 all I have to do is copy installed.db to the other machine and run
 setup.exe there?

That would replicate the installed packages, but not the versions, since
setup would, by default, pull in the latest. The usual way is to edit
installed.db on the new machine to change all the versions to 0.0,
otherwise setup would think that they are already installed and won't
bother installing them.  You might be able to select Reinstall with the
unmodified installed.db, but I haven't tested this hypothesis...
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: A small suggestion to setup.exe of cygwin

2008-04-04 Thread Igor Peshansky
On Fri, 4 Apr 2008, Michael Kairys wrote:

 Larry Hall (Cygwin) [EMAIL PROTECTED] wrote in message news:[EMAIL 
 PROTECTED]

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

   wrote:
   Michael wrote:
I've wondered about this too... So if I have changed my Cygwin
setup on one machine and I want to duplicate those changes on
another machine, all I have to do is copy installed.db to the
other machine and run setup.exe there?
  
   But what I suggested on the other hand is the same as Michael's idea.
   I would like to see if cygwin's setup.exe could somehow import an
   install.db file and perform setup automatically to copy a cygwin
   environment with all of your preferred packages.
 
  Putting /etc/setup/installed.db in place before running 'setup.exe'
  should make it think all those packages are installed.
  [snip]
  This does presuppose that you
  have a local package directory with all the packages/versions you
  want and that you've told 'setup.exe' to install from that local
  package directory.

 Why is that? If I'm set up to install from the Internet wouldn't
 reinstall all go there? I've never kept a local package directory...

Because the versions you had on your old machine may no longer be
available on Cygwin mirrors.

If you want to replicate the packages, but not the versions, installing
from the Internet is fine (again, change all versions to 0.0 if you want
that, to make sure setup picks up the packages).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [HEADSUP] Let's start a Cygwin 1.7 release area

2008-04-03 Thread Igor Peshansky
On Thu, 3 Apr 2008, Corinna Vinschen wrote:

 [snip]
 Get own path   == C:\\cygwin\\bin\\cygwin1.dll
 Where's fstab? == C:\\cygwin\\etc\\fstab
  
   So, it implicitly computes where / is?
  
  No, it doesn't.  It just snips away the last two path components and
  tacks the etc/fstab string on.  Plus the .$SID to get the user mounts.
  
  After the mount points have been read, root can potentially be
  somewhere else entirely.

So would it make sense to put the root mount info in the same directory as
cygwin1.dll?  I know it doesn't belong in /bin, but playing with relative
paths is even more error-prone.

 [snip]
  For 1.7, I think we ought to decouple /bin  /usr/bin and /lib 
  /usr/lib.  The rationale for keeping those linked no longer applies in
  the modern setup.exe world.

 Full ACK!  However, this needs a bit of careful revisiting of some of
 the packages.  For instance, assuming the Cygwin DLL will go to /bin,
 cygrunsrv should also reside in /bin when we do this, not in /usr/bin,
 obviously.

Umm, i don't see how that follows.  cygrunsrv can easily reside in
/usr/bin, as long as (a) /bin is in the PATH when cygrunsrv is invoked
from the shell, and (b) when cygrunsrv installs the services, it adds /bin
to the PATH in the service environment.

 Right now I must admit that I prectically don't care if my packages
 install the binaries in /bin or /usr/bin.

/bin should contain programs that should work even if the PATH and mounts
are screwed up.  So, kill, shutdown, etc.

  Or simply
  
  root / ntfs binary 0 0
  
  and stick to /usr/bin and /usr/lib as they are today.
 
  I think something like an automount is needed since it would be nice
  to eventually generalize the cygdrive stuff and we don't want to
  explicitly mount a: - z: So, maybe we could consider a linux-like
  solution to accomplish this although I really don't like automount.

 I'm not sure I understand this, that's why I was puzzled above.
 Do you think that / should be free as today:

   C:\arbitrary\useless\new\path / ntfs binary 0 0

 or do you think an automatic approach as the above

   root / ntfs binary 0 0

 is the way to go?  As for cygdrives, isn't the

   cygdrive /mnt auto binary 0 0

 already along the lines of an automount?!?

It is, IMHO.

  I have the vague feeling it would be sufficient to install only a
  /etc/fstab, even in just me mode, though.  The fstab.$SID file is
  only necessary in multi-user installations, IMHO.
 
  Why do we need a fstab.$SID and linux doesn't need this?

 Let me think...

 I don't know.  I assume I just took this as it is.  I guess the
 only reason to create user mounts to begin with was, so that any
 non-privileged user can create mount points, too, for a pure
 just me installation in a restricted environment.

That, and also to allow completely disjoint Cygwin installations for
different users (where the mount table would otherwise be shared).  But
this effect can also be accomplished with /etc/fstab (one per
installation).

 However, that's not really necessary anymore with /etc/fstab.
 So I agree, we can simply get rid of fstab.$SID.

Yes, that reasoning is mostly correct.  However, some packages (like
Cygwin/X) apparently assume a single-user installation, and create
sockets/temp files in shared locations (i.e., /tmp).  That, unfortunately,
makes the default startup scripts insufficient to allow multiple users to
run Cygwin/X sessions simultaneously, unless that shared location is
overridden in a per-user manner (e.g., through user mounts).  So, until we
figure out how to solve that issue, user mounts are actually userful.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: Wrong links? (Attn: netpbm, cvs, and webcheck maintainers)

2008-03-25 Thread Igor Peshansky
On Tue, 25 Mar 2008, Angelo Graziosi wrote:

 I have noticed that if I do 'ls -l /bin'

 I get the following wrong links:

 X11 - ../X11R6/bin

 pnmnoraw - pnmtoplainpnm.exe   [1]

 rcs2log - ../share/cvs/contrib/rcs2log
 webcheck - ../share/webcheck/webcheck.py


 If I do 'ls -l /usr/bin', only [1] is still wrong, the remaining links
 are OK.

 Regarding [1], 'pnmtoplainpnm.exe' does not exist, only 'pnmtoplainpnm' is
 there, without '.exe'!

[1] is a packaging error.  pnmtoplainpnm is a bash script, and the link is
in this form in the binary tarball.

 Is this different behaviour ('ls -l /bin' / 'ls -l /usr/bin') to be
 expected?

Well, yes.  Since the links are relative, doing ls -l /bin will attempt
to find the files in /share, which doesn't exist.

These are also packaging errors because, again, the links exist in the
relative form in the binary tarballs (I've only checked the cvs tarball,
but I assume webcheck has the same issue).

This may be a cygport bug as well.

Good catch.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Regarding using .so file in gcc

2008-03-12 Thread Igor Peshansky
On Wed, 12 Mar 2008, Magesh K wrote:

 Hi,

 #sorry if the mail received again as i am trying to
 post from mailer utility

This is the worst case of cross-posting I've seen in a
while.

The cygwin-apps mailing list is not a list for general
questions about Cygwin (neither is cygwin-developers).
Please use the main Cygwin mailing list for such
questions.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: GraphicsMagick: gm does nothing, always exits with status 53

2008-03-07 Thread Igor Peshansky
On Fri, 7 Mar 2008, Andrew Schulman wrote:

  convert -list Format
 
  from ImageMagick coredumps for me. Can anybody else check ?

 Sure enough... same result here.

 IM seems to be fairly up to date.  README lists [EMAIL PROTECTED] as the
 maintainer. Is s/he listening?

I'm sure he is -- he replied to a message on cygwin-apps the other day.

  By the way
 
  gm convert -list Format
 
  from GraphicsMagick works fine.

 I guess you still have your old cygdpstk-1.dll still lying around...

 $ gm convert -list Format || echo $?
 53

Interesting.  I also seem to have cygdpstk-1.dll on my system, but
cygcheck -f /usr/X11R6/bin/cygdpstk-1.dll returns nothing.

I know a new release of the X packages has been built since we've lost the
X maintainer, and a few patches have been omitted from it (in particular,
one that fixed building font directories on text mounts).  It's probably a
matter of getting a new X maintainer and having him or her rebuild the
package yet again to also include cygdpstk-1.dll.

I doubt there's anything the GraphicsMagick maintainer can do, considering
the dependency.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [ITP] pure-ftpd 1.0.21

2008-03-05 Thread Igor Peshansky
On Wed, 5 Mar 2008, Kostya Altukhov wrote:

 On Wed, Mar 5, 2008 at 12:14 AM, Corinna Vinschen wrote:

   Btw., this is a candidate for a setup script along the lines of
   ssh-host-config, exim-config, etc.  Did you notice the discussion
   starting with http://cygwin.com/ml/cygwin-apps/2008-02/msg00183.html ?

 Yes, I'm following that discussion with lots of interest. Creating a
 setup script for pure-ftpd is a good idea. I will do that once csih
 package is available in the distribution.

FYI: http://cygwin.com/ml/cygwin-apps/2008-03/msg00114.html.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: [ITP] rdiff/librsync 0.9.1 - rsync remote delta algorithm

2008-03-04 Thread Igor Peshansky
On Tue, 4 Mar 2008, Jari Aalto wrote:

 * Mon 2008-03-03 David Rothenberger [EMAIL PROTECTED]

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

  On 3/3/2008 12:54 PM, Dr. Volker Zell wrote:
 
   requires: cygwin libpopt0
 
  This doesn't seem to depend on libpopt0
 
  /usr/lib/librsync.la lists as dependency_libs:
  /usr/lib/libpopt.la -lbz2 -lz. So, what should the dependencies be?

 It's a bit tricky. You can use:

 $ cygcheck usr/bin/cygrsync-1.dll
 usr/bin/cygrsync-1.dll
 ! D:\cygwin\bin\cygwin1.dll
 C:\WINNT\system32\ADVAPI32.DLL
   C:\WINNT\system32\NTDLL.DLL
   C:\WINNT\system32\KERNEL32.DLL
   C:\WINNT\system32\RPCRT4.DLL

 Where the toplevel (!) is the only dependency.

That won't quite work.  The problem is that if some dependency is both
top-level AND transitive, and the transitive one happens to be encountered
earlier, cygcheck will not (by default) output the top-level one.  So, if
you see

$ cygcheck foo.exe
foo.exe
  bar.dll
baz.dll

That does not mean that foo.exe does not depend on baz.dll.

You can probably use

$ cygcheck -v foo.exe
foo.exe
  bar.dll
baz.dll
  baz.dll (already done)

to make sure, but the output does tend to be rather verbose...
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


RE: [ITP] txt2regex-0.8 -- A Regular Expression wizard, all written with bash2 builtins

2008-03-03 Thread Igor Peshansky
On Mon, 3 Mar 2008, Buchbinder, Barry (NIH/NIAID) [E] wrote:

 Jari Aalto (Cygwin-bug#20080303T1357) wrote on Monday, March 03, 2008 9:02 AM:

  Included in Debain stable:
 
  http://packages.debian.org/txt2regex
 
  Jari
 
  sdesc: A Regular Expression wizard, all written with bash2 builtins
  ldesc: A program that converts human sentences to RegExs. With a
  simple interface, you just answer to questions and build your own
  RegEx for a large variety of programs, like awk, emacs, grep, perl,
  php, procmail, python, sed and vim. There are more than 20 supported
  programs. category: Utils
  requires: cygwin

 Shouldn't requires include bash?

You're right, IMO.  The requires: line is not only an indication of what
to pull in, but also what the package actually uses.  These dependences
are also used to find the order of postinstall scripts (so, for example,
if Jari's package has any postinstall scripts with #!/bin/sh, the
scripts may not work because the bash postinstall script was not run).  So
yes, please include all direct dependences in the requires: line, even
if they are in Base.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: [ITP] rsnapshot 1.3.0 -- A local and remote filesystem snapshot utility

2008-03-03 Thread Igor Peshansky
On Tue, 4 Mar 2008, Jari Aalto wrote:

 ... rsnapshot makes extensive use of hard links, so disk space is only
 used when absolutely necessary...

This will not be true on some non-NTFS filesystems (e.g., FAT).  Perhaps a
note in the Cygwin-specific README to that regard is in order?  FWIW, I
would also change the ldesc to indicate that hard links will only be used
on NTFS and whatever other systems support them (Corinna?).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: Reference to absolute path seems broken.

2008-02-29 Thread Igor Peshansky
On Fri, 29 Feb 2008, Mathijs Romans wrote:

 On Fri, Feb 29, 2008 at 2:48 PM, Eric Blake [EMAIL PROTECTED] wrote:

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

   According to Mathijs Romans on 2/29/2008 6:42 AM:
 
  | (ERROR)
  | [EMAIL PROTECTED] /
  | $ diff /Cygwin.bat Thumbs.db
  | /usr/bin/diff: /Cygwin.bat: No such file or directory
  |
  | Notice the slash before Cygwin.bat. Is this normal?? Other commands
  | such as 'ls' work fine.
 
  The slash before the file name in the error message is normal - diff
  uses the file name you typed in generating its message.  However, why
  the diff was unable to find the file by its absolute name is not
  normal - I couldn't reproduce it, so there is something different
  about your / than there is for mine.  Running strace may shed some
  light on this, as well.

 Thanks for your quick answer. I first tried to run strace which gave
 no output at all. Only then I realised there might be a windows
 command 'diff' and I was running that one. So I installed diffutils
 with the great Cygwin packagemanager. Then I got the strace output and
 the same error. Then I restarted Cygwin, and now the error is gone!

 (OK)
 [EMAIL PROTECTED] /
 $ diff /Cygwin.bat Cygwin.ico
 Files /Cygwin.bat and Cygwin.ico differ

 The combination of posix/windows is terribly confusing for me
 sometimes. Thanks again for your help!

 Mathijs

 
   | Can somebody help me?
   |
 
   We need 'cygcheck -svr' output, as a text attachment, to learn more about
   your /.

Note that the above would have probably shown a different diff in your
PATH.  In general, if a command behaves in an unexpected way, check that
you're using the Cygwin version of that command (by using which diff or,
better yet, type diff in bash).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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 safely remove hardware with cygwin ?

2008-02-28 Thread Igor Peshansky
On Thu, 28 Feb 2008, Tom Hall wrote:

 Is there a cygwin command line utility that will perform the function
 that Windows does when you safely remove hardware - like before
 unplugging a USB drive ?

Not in the main distribution, but in the past I got both
http://www.hoopyfrood.net/DevEject and
http://www.heise.de/ct/03/16/links/208.shtml to work with minor
modifications...  I've been meaning to package them, but haven't gotten a
round tuit 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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-helper [was: Re: [ITA] inetutils-1.5-1]

2008-02-27 Thread Igor Peshansky
On Wed, 27 Feb 2008, Corinna Vinschen wrote:

 On Feb 27 00:34, Charles Wilson wrote:
  Corinna Vinschen wrote:
  On Feb 25 20:46, Charles Wilson wrote:
  [*] or maybe a script function library somewhere like
  /usr/lib/cygwin-services/ that foo-config could 'source', and then call
  the functions directly.  This would help the enter the password twice
  problem...
  Sounds good!  The function library would be cool.
 
  Here's my first draft.  Totally untested, almost nuthin' in the way of
  documentation...but I figured I'd post it now, because I won't have time
  for any more cygwin stuff until the weekend...

 Wow, thanks for the quick implementation.  Unfortunately I won't have
 time to look into this for now since I have to look into a Win2K problem
 with network paths.

  TODO: (1) test, documentation, bughunt this function library
(2) rewrite ssh-host-config to use it
(3) rewrite iu-config to use it
(4) rewrite syslog-config to use it

 (4a) rewrite syslog-ng-config to use it

 But actually, services which don't have to switch user accounts don't
 really need it.

They won't need the create a user that can switch user contexts
functionality, but they might use the install as service using cygrunsrv
with the following flags one.

  # REQUIREMENTS:
  # SHELL must be bash
  #
  # PROVIDES:
  # csh_error
  # csh_error_multi
  # csh_warning
  # csh_inform
  # csh_verbose
  # csh_request
  # csh_is_nt
  # csh_is_nt2003
  # csh_check_prog
  # csh_check_prog_req
  # csh_install_config
  # csh_make_dir
  # csh_privileged_user_name
  # csh_privileged_user_exists
  # csh_service_should_run_as
  # csh_check_mounts
  # csh_create_privileged_user
  # csh_create_unprivileged_user

 Erm... why are all these functions called csh_foo?  Cygwin SHell?

I would guess Cygwin Services Helper...  Though it probably should be
Cygwin Service Installation Helper, or csih.

 It sounds so much as if these functions are csh functions.  Maybe
 cf or cyg would be a better prefix?

Umm, did you mean cgf? :-D
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: Ping? + RFC [was RE: Setup.exe vs corrupt lst.gz files.]

2008-02-26 Thread Igor Peshansky
On Tue, 26 Feb 2008, Brian Dessent wrote:

 Dave Korn wrote:

 And here is part 1.
 
No comments then?  I'll apply it sometime tonight or tomorrow if
  nobody objects.

 Well, you labeled it as part 1 and so I mentally said, okay, I'll
 take a look at this whenever it's complete.

Meanwhile (here's the RFC part), my suggestion for part 2 is
  attached (merged into part 1).  It's pretty crude: it disables and
  reenables the cancel button around each call to
  Installer::installOne().  This probably doesn't stop the user from
  pressing the cancel key or clicking the X close box, although I
  haven't tested that yet.  I would be interested in hearing from anyone
  who reckons they do know the proper way to do this.

 Ick.  I don't really like that.  It seems to me that we simply don't
 support canceling in any sane way once the installation step has begun.
 Even if we are able to cancel cleanly at a point in between unpacking
 two packages, that still could leave the system in a horrid state --
 missing dependencies, postinstalls not run, etc.  We should disable the
 button for the entirety.

I don't like Dave's proposal either.  However, simply disabling the
Cancel button altogether is not the solution -- if the user is unable to
interrupt the installation, she will just kill the process, with
disastrous results.

The question is: what kind of behavior do we really want in case of
cancellation?  If we want setup to stop whatever it's doing (dependences,
etc, aside), but be able to resume at a later point to fix the state of
the system, then Dave's part 1 is the right approach.  If we want setup
to always leave the system in a sane state, even when it's interrupted,
then we should capture the exit message and figure out how to clean up the
missing dependences.

Keep in mind that processes can be killed in a way that isn't capturable,
so setup *will* leave corrupt listing files and missing dependences in
some cases.  Making sure setup does not crash when restarted after such
cases is probably the best we can do.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


RE: Ping? + RFC [was RE: Setup.exe vs corrupt lst.gz files.]

2008-02-26 Thread Igor Peshansky
On Tue, 26 Feb 2008, Dave Korn wrote:

 On 26 February 2008 14:55, Igor Peshansky wrote:

  The question is: what kind of behavior do we really want in case of
  cancellation?  If we want setup to stop whatever it's doing
  (dependences, etc, aside), but be able to resume at a later point to
  fix the state of the system, then Dave's part 1 is the right
  approach.  If we want setup to always leave the system in a sane
  state, even when it's interrupted, then we should capture the exit
  message and figure out how to clean up the missing dependences.

   You've somewhat missed the point.  The justification for part 1 is
 that, entirely orthogonal to and regardless of whatever else we do,
 those dialog boxes should be modal and they aren't.  It Is Just Plain
 Wrong.

Sorry, I misspoke (mis-wrote?).  I meant to say that your part 1 takes
us towards that goal.  Also, in my morning confusion, I referred to the
fix for the corrupt lst.gz files as your part 1.  There is no question
that both were the right thing to do.

   It is a fortuitous side-effect of making them correctly modal that it
 becomes slightly trickier to accidentally cancel an installation when
 you thought you were just cancelling an individual pop-up request.

An alternative would be to pop up a warning box on Cancel that says that
this action may leave the system in an unstable state, and are you sure
you want to cancel?.  I'd still like to have the ability to cancel a long
install (preferably with the ability to fix things later by rerunning
setup).

Incidentally, we already get an incremental install from the way setup is
structured -- it will not re-download packages, and will rerun any
postinstall scripts remaining from the previous 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: mktemp obsolete

2008-02-23 Thread Igor Peshansky
On Sat, 23 Feb 2008, Eric Blake wrote:

 According to Charles Wilson on 2/23/2008 9:08 AM:
 | The mktemp package's setup.hint now specifies the _obsolete category.
 | The package directory has been moved from release/mktemp/ to
 | release/_obsolete/mktemp.
 |
 | What's to do?
 |
 | I thought about creating a new, empty package with an updated version
 | number -- but it's too late now.  Once somebody has updated to the new
 | coreutils, if they update using my new empty mktemp, then coreutils'
 | mktemp.exe will be deleted. That's no good.

 I can bump the version number of coreutils if you want to bump the version
 number of mktemp.  But I think we're okay leaving things as they are for
 now - no one has complained.

They won't complain until they try to uninstall mktemp and find their
coreutils incomplete...  That wouldn't be a very common situation (so no
rush), but it would be nice to do what you propose at some point.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


RE: Setup.exe vs corrupt lst.gz files.

2008-02-23 Thread Igor Peshansky
On Sat, 23 Feb 2008, Dave Korn wrote:

 On 23 February 2008 18:50, Brian Dessent wrote:

  problem.  The other half is that we generate one of these bogus
  .lst.gz files while installing a package if the user is prompted to
  retry an in-use file and clicks the close-X in the dialog instead of
  chosing retry or replace.

   Need a bit of clarification here: I could only get this to happen by
 clicking the X on the main setup.exe dialog behind, not the popup
 warning itself; I take it that's what you meant.

You'd also get that if you press Cancel in the main dialog while the
package is being 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: PATCH: avoid system shared memory version mismatch detected by versioning shared memory name

2008-02-22 Thread Igor Peshansky
Ugh, top-posting...  Reformatted.

On Thu, 21 Feb 2008, Noel Burton-Krahn wrote:

 On 2/21/08, Christopher Faylor
 [EMAIL PROTECTED] wrote:

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

  On Thu, Feb 21, 2008 at 05:01:20PM -0800, Noel Burton-Krahn wrote:
   This is a patch to avoid the system shared memory version mismatch
   detected problem when two applications use different versions of
   Cygwin.  My solution is to append the Cygwin version number to the
   name of the shared memory segment, so only Cygwin with the same
   version share a memory space.
   
   ChangeLog
   2008-02-21  Noel Burton-Krahn  [EMAIL PROTECTED]
   
   * shared.cc (shared_name): always add USER_VERSION_MAGIC to the
   shared memory space name so multiple versions of Cygwin keep their
own shared memory space.  No more system shared memory version
   mismatch detected  errors.

FYI, you get that automatically when you build a debug version of the DLL.

  Thanks for the patch but the whole reason for this detection and
  others in the DLL is to disallow multiple copies of cygwin1.dll from
  running at the same time.  This isn't a bug, it's a feature.  That's
  why we have the detection in the first place.
 
  As you can see from other checks in the dll, the shared memory region
  is just one of the things that are checked for.  If you need to have
  two copies of the DLL for debugging then there are ways to do that.
  But, in general, it is not a good idea to use two versions of the DLL
  unless you really know what you are doing, so we are not going to be
  making it trivially possible for everyone to do that.

 The problem is there are several installable apps built on Cygwin, like
 EAC, ClamAV, and one I just found which is a Cygwin-on-a-thumbdrive.
 The problem is they can't all coexist because they're distributed with
 different versions of the cygwin dlls. Making them work with the current
 cygwin means hand-copying cygwin dlls into application directories, and
 repeating that every time you upgrade. People used to give Windows a
 hard time for DLL hell!  I don't see the benefit of forcing users to
 hand-maintain cygwin dlls across multiple applications.

Don't copy DLLs -- that will only compound the problem.  Put c:\cygwin\bin
(or wherever you installed Cygwin to) in the system PATH, and let those
apps find the latest cygwin1.dll from there.

Besides, even if this patch were accepted (which it won't), you still
would not have fixed *those* versions of cygwin1.dll, so those apps would
still conflict with each other.

And this discussion is no longer pertinent to cygwin-patches.  If you wish
to continue, let's move to the main list, cygwin at cygwin dot com.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


RE: [ITP] colordiff-1.0.7

2008-02-21 Thread Igor Peshansky
On Thu, 21 Feb 2008, Buchbinder, Barry (NIH/NIAID) [E] wrote:

 Kostya Altukhov wrote on Thursday, February 21, 2008 6:55 AM:

  requires: cygwin perl

  ldesc:A wrapper for the diff command.

 If this is a wrapper to diff, shouldn't it require diffutils?
 (Please excuse me if this is terribly naïve.)

I think you're right.  If the package does not make sense to install
without diffutils, then it should pull in diffutils.

A minor point of confusion might be that diffutils is in Base, and thus
will be automatically installed anyway.  But the requires: line should
still indicate the dependency.

 Thanks for packaging this.  I'm looking forward to having it show up in
 the mirrors!

FWIW, another little-used tool is the less.sh script that comes with
vim.  Piping the output of diff into that gives you a very nice syntax
highlighting of diffs.

It's good to have alternative tools, however.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

RE: problem with setup

2008-02-06 Thread Igor Peshansky
Ugh, top-posting...  Reformatted.

On Wed, 6 Feb 2008, Pedro Macanás wrote:

 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Morgan gangwere
 Enviado el: miércoles, 06 de febrero de 2008 6:08
 Para: [EMAIL PROTECTED]

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

 Asunto: Re: problem with setup

  *cough*
  just a thought... but cant you simply as administrator or some other
  form of admin simply kill your cygwin isntall directory and remove the
  Cygwin registry keys?

 I think there would be an uninstall icon for Cygwin (i.e. I would like
 to reinstall it and all the configuration files and registry
 modifications).

Well, Cygwin setup is an open-source project, and it should be relatively
easy to add one more action (uninstall) to it.  Would you care to submit a
patch?
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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 2.573.2.2 unable to retrieve mirror list and setup.ini/setup.bz2

2008-02-05 Thread Igor Peshansky
On Tue, 5 Feb 2008, Marek.Jawurek wrote:

 Hi everyone,

 I downloaded today´s setup.exe from http://cygwin.com/ and have problems
 running it. I want to run it as a non-administrator-user to just
 download the files. So I say Just downlioad, then I give it the proxy
 settings for my network.

 The first problem is an empty mirror list. Then I add mirror urls and
 try to proceed but it is unable to retrieve the setup.bz2/.ini from any
 of the different mirrors. I checked the setup.log but it does not give
 any error codes or reasons why downloading failed. I appended my
 complete mirror log. I am running WinXP Professional SP2.

 Of course I searched the mailinglist. The posts that resembled my
 problem were answered with Try another mirror. Well I tried all the
 mirrors in this log in my Firefox. I double-checked the proxy settings.
 Is there a way to make setup.exe output errors in more detail ?

/var/log/setup.log.full is pretty much it.  However, setup is not really
doing anything very sophisticated -- it tries to retrieve
http://cygwin.com/mirrors.lst using the connection method specified.  The
errors indicate that it was unable to connect.

Trying another mirror doesn't help because setup cannot even retrieve the
mirror list from cygwin.com.

Can you retrieve the contents of the above URL using your browser (IE, in
particular)?  If not, first get that to work, and then try setup again.
If you can, then there may be a problem with setup, since I see that
you're using IE5 settings to connect.  Another option is to try Direct
connection.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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 2.573.2.2 unable to retrieve mirror list and setup.ini/setup.bz2

2008-02-05 Thread Igor Peshansky
Ugh, top-posting...  Reformatted.

On Tue, 5 Feb 2008, Marek.Jawurek wrote:

 -Original Message-
 From: Igor Peshansky [mailto:[EMAIL PROTECTED]
 Sent: Dienstag, 5. Februar 2008 14:58
 To: Jawurek, Marek
 Cc: [EMAIL PROTECTED]
 Subject: Re: Setup.exe 2.573.2.2 unable to retrieve mirror list and 
 setup.ini/setup.bz2

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

  On Tue, 5 Feb 2008, Marek.Jawurek wrote:
 
   Hi everyone,
  
   I downloaded today´s setup.exe from http://cygwin.com/ and have
   problems running it. I want to run it as a non-administrator-user to
   just download the files. So I say Just downlioad, then I give it the
   proxy settings for my network.
  
   The first problem is an empty mirror list. Then I add mirror urls and
   try to proceed but it is unable to retrieve the setup.bz2/.ini from
   any of the different mirrors. I checked the setup.log but it does not
   give any error codes or reasons why downloading failed. I appended my
   complete mirror log. I am running WinXP Professional SP2.
  
   Of course I searched the mailinglist. The posts that resembled my
   problem were answered with Try another mirror. Well I tried all the
   mirrors in this log in my Firefox. I double-checked the proxy settings.
   Is there a way to make setup.exe output errors in more detail ?
 
  /var/log/setup.log.full is pretty much it.  However, setup is not
  really doing anything very sophisticated -- it tries to retrieve
  http://cygwin.com/mirrors.lst using the connection method specified.
  The errors indicate that it was unable to connect.
 
  Trying another mirror doesn't help because setup cannot even retrieve
  the mirror list from cygwin.com.
 
  Can you retrieve the contents of the above URL using your browser (IE,
  in particular)?  If not, first get that to work, and then try setup
  again. If you can, then there may be a problem with setup, since I see
  that you're using IE5 settings to connect.  Another option is to try
  Direct connection.
  Igor

 I can open the mirror list with IE. I tried both, using the IE settings
 and providing it with the proxy information myself in setup.exe. The log
 reflects this, i.e. it says net: IE5 or net: Proxy.

Does direct connection work?

 Setup.exe could say how this connection failed, failure to connect to
 the server or a File not found response or a DNS lookup failure.
 Additionally it could specify explicitely which network settings have
 been used, i.e. Proxy server and port,

Yes, you're correct.  I'll try to work on it whenever I get some round
tuits (not likely to happen soon, though).

 or elaborate on the settings retrieved from IE.

That won't help much, because setup simply delegates to IE (invokes a
Windows call that retrieves the URL).

 I do believe that the problem lies in the local network settings,
 probably in combination with the way setup tries to obtain the files but
 without further information I cannot verify anything.

Hmm, the above URL is exactly the one it uses for retrieving the mirror
list.  I'm not sure what information setup could output -- perhaps you can
grab a debug version (from the snapshots directory) and step through it in
gdb (once you get Cygwin installed, that is)...

 Is there a backup method with which I can trick setup.exe into believing
 that I have the files already or provide them locally? I couldn´t find
 anything about this in the Documentation. By simply providing all files
 locally I could install cywin after downloading all necessary files to
 my computer.

Yes, there are a few ways.  First, I'd save the mirror list as
/etc/setup/mirrors-lst (prime the cache, so to say) and run setup again
(hoping it can then access the individual mirrors).  Or you can use setup
on another machine in download mode, copy the whole directory tree to your
machine, and then tell setup to Install from local directory.  Another
way is to mirror the repository on some site you *can* connect to and add
that as a mirror explicitly.

It would still be interesting to see why Use IE5 settings fails on your
machine while you can retrieve the mirror list via IE itself...  Do you
have to log in to your proxy?  If so, did you run setup after you logged
in via IE?
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: pdksh having problems starting native gvim on Vista x64

2008-01-28 Thread Igor Peshansky
On Mon, 28 Jan 2008, Chris J wrote:

 Hi all,

 I've a recently installed Cygwin setup on Vista x64 and I've been having
 problems with pdksh. I've got a x64-build of native gvim installed[1]
 which pdksh doesn't want to start. On trying to run I get:

 $ /cygdrive/c/vim/vim71/gvim.exe
 /bin/pdksh: /cygdrive/c/vim/vim71/gvim.exe: cannot execute - Permission denied
 $

 However, running it via every other shell going (ash, bash, tcsh and csh)
 is fine and gvim pops up well and good.

Well, tcsh and csh are the same...

Can you please post the output of ls -l /cygdrive/c/vim/vim71/gvim.exe,
ls -ld /cygdrive/c/vim/vim71, and ls -ld /cygdrive/c/vim?  Also of
cygcheck /cygdrive/c/vim/vim71/gvim.exe?

 The exception is zsh, with which I get the following error on invoking:

 3 [main] zsh 6168 C:\cygwin\bin\zsh.exe: *** fatal error - unable to remap
 C:\cygwin\lib\zsh\4.3.4\zsh\complete.dll to same address as
 parent(0x31) != 0x35

 Googling has shown me this thread[2] that mentions rebaseing the DLLs.
 However, before I go ahead and do this willy-nilly, I did want to confirm
 that it was the correct thing to do given the the thread as well as the
 mail threads linked to are a few months to a year old.

I doubt the pdksh problem has anything to do with rebasing.

 So questions ultimately are:
 1. Has anyone seen the behaviour exhibited by pdksh before, or any idea
 what could be attemtped to fix it?

I would do chmod a+x /cygdrive/c/vim /cygdrive/c/vim/vim71
/cygdrive/c/vim/vim71/gvim.exe first, and see if it fixes your problem.
If that does not work, and the output of ls -l I requested above doesn't
help, it would probably be time to look at the strace output.

 2. Is rebasing the right thing to do, and is it just 'rebaseall' I
 should be executing?

See /usr/share/doc/Cygwin/rebase-2.4.3.README...  But rebase is more
likely to fix your zsh problem than your pdksh 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: less ti/te termcap stuff

2008-01-20 Thread Igor Peshansky
Ananth,

http://cygwin.com/acronyms/#PPIOSPE.  I've redirected this reply to the
list and set the Reply-To: appropriately -- please make sure your mailer
honors it.

On Sun, 20 Jan 2008, Ananth Chellappa wrote:

 Hi Igor,
I saw a post by you related to vim not showing correct
 behaviour - not restoring the screen when it exits like less or man.
 My question is this :  you can get less to not do that by using the -X
 switch. Is there a way to do that with man?

man uses the PAGER environment variable to select the pager program.  By
default it uses less -isrR, IIRC.  You can add any other flags to the
less command by setting PAGER in your 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [BUG?] run.exe and pdflatex

2008-01-11 Thread Igor Peshansky
On Fri, 11 Jan 2008, Corinna Vinschen wrote:

 On Jan 10 23:57, Igor Peshansky wrote:
  On Fri, 11 Jan 2008, Sven Köhler wrote:
   So the question is: who does all the checks (shebang, etc.)?
   - the execve implementation? (which is cygwin, right?)
   - the shell?
   - both?
 
  The shell.
  Igor

 Cygwin's exec(3) calls have shebang magic builtin as described in
 http://www.opengroup.org/onlinepubs/009695399/functions/exec.html

Indeed.  Sorry, I missed the call to newargv.fixup in spawn_guts...

So, what was the reason, then, to remove si.wShowWindow = SW_HIDE from
spawn_guts in CVS?  Having it makes it much easier to fix run.exe
appropriately...
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: [BUG?] run.exe and pdflatex

2008-01-11 Thread Igor Peshansky
On Fri, 11 Jan 2008, Igor Peshansky wrote:

 On Fri, 11 Jan 2008, Corinna Vinschen wrote:

  On Jan 11 10:11, Igor Peshansky wrote:
   So, what was the reason, then, to remove si.wShowWindow = SW_HIDE from
   spawn_guts in CVS?  Having it makes it much easier to fix run.exe
   appropriately...
 
  I would be somewhat surprised if this code would have any effect in
  the trunk.  The code in question looked like this:
 
if (!wincap.pty_needs_alloc_console ()  newargv.iscui  myself-ctty 
  == -1)
  {
si.dwFlags |= STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
  }
 
  Given that pty_needs_alloc_console() is false only on 9x, and is always
  true on NT, the above code was only executed on 9x.  Since 1.7 dropped
  9x support, the code could go away.  Shoot if I missed something.

 You didn't, but I'm confused now.  Why would the code that uses execve to
 spawn a Cygwin console process NOT pop up a console window?  Even if the
 parent is compiled with -mwindows, if the app needs a console, one would
 be created, wouldn't it?
   Igor

Ugh.  ENOCOFFEE.  fhandler_console::need_invisible() takes care of it.  So
run.exe can be changed to use execve even in CVS HEAD.
Sorry for the noise.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [BUG?] run.exe and pdflatex

2008-01-11 Thread Igor Peshansky
On Fri, 11 Jan 2008, Corinna Vinschen wrote:

 On Jan 11 10:11, Igor Peshansky wrote:
  So, what was the reason, then, to remove si.wShowWindow = SW_HIDE from
  spawn_guts in CVS?  Having it makes it much easier to fix run.exe
  appropriately...

 I would be somewhat surprised if this code would have any effect in
 the trunk.  The code in question looked like this:

   if (!wincap.pty_needs_alloc_console ()  newargv.iscui  myself-ctty == 
 -1)
 {
   si.dwFlags |= STARTF_USESHOWWINDOW;
   si.wShowWindow = SW_HIDE;
 }

 Given that pty_needs_alloc_console() is false only on 9x, and is always
 true on NT, the above code was only executed on 9x.  Since 1.7 dropped
 9x support, the code could go away.  Shoot if I missed something.

You didn't, but I'm confused now.  Why would the code that uses execve to
spawn a Cygwin console process NOT pop up a console window?  Even if the
parent is compiled with -mwindows, if the app needs a console, one would
be created, wouldn't it?
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [BUG?] run.exe and pdflatex

2008-01-10 Thread Igor Peshansky
On Thu, 10 Jan 2008, Sven Köhler wrote:

 Hi,

 so i have a latex file here. pdflatex document.tex works. But run
 pdflatex document.tex does not.

 run.exe seems to be the best way to call cygwin application from
 external windows apps. But the seems to be some difference from invoking
 by a shell.

 pdfetex seems to check the name by it has been invoked. When invoking
 from the shell, it correctly finds out, that it has been invoked as
 pdflatex but when invoked via run.exe, this check seems to lead to the
 wrong result.

 I guess, it's a bug of run.exe which might do more work, than it should
 (like following symbolic links, or such stuff).

This is not really a bug in run.exe, because it was never documented to
work correctly with symlinks, and you'd get the same problem with any pure
Windows way of invoking pdflatex anyway.  But it is, arguably, a
deficiency in run.exe.

You can do a few things.  One is to pass an explicit parameter that tells
pdfetex to use pdflatex mode (i.e., -fmt pdflatex).  Another is to
invoke pdflatex via bash (i.e., run bash -c 'pdflatex ...').  Finally,
you can look at the sources for run.exe (available via Cygwin setup) and
submit a patch (look at the first argument to CreateProcess).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: [BUG?] run.exe and pdflatex

2008-01-10 Thread Igor Peshansky
On Thu, 10 Jan 2008, Sven Köhler wrote:

  Finally, you can look at the sources for run.exe (available via Cygwin
  setup) and submit a patch (look at the first argument to
  CreateProcess).

 Hmm. So indeed run seems to use the Windows-API to create the new
 rprocess. But that pdfetex knows, that is has been invoked by the name
 pdflatex, must be an internal cygwin thing. Because actually, when
 executing pdflatex from bash, cygwin must follow the symlink and then
 executed pdfetex.exe. Still, cygwin reports to pdfetex, that it was
 invoked with the command pdflatex.

 So i have no clue where to start here.

Try MSDN: http://msdn2.microsoft.com/en-us/library/ms682425(VS.85).aspx
(MSDN used to have much MUCH nicer URLs that actually contained the name
of the function the page described, but someone at Microsoft must've
decided that it made life too easy for the programmers).

 Actually, i wrote a small C program. And sure, it will not hide the
 console window, when startes. But it simply uses execve to start the
 program given in the parameter list:

 #include stdio.h
 #include unistd.h

 int main(int argc, char * argv[])
 {
   if (argc  2)
   {
 printf(you must give some parameters\n);
 return 1;
   }

   int i = execve(argv[1], argv+1, NULL);

   printf(execve failed: %i\n, i);
   return 2;
 }

 I'm amazed, it even works. Anyway: after compiling it under cygwin and
 putting it to /bin/myrun.exe it's possible for me to successfully start
 pdflatex by using

   c:\path\to\cygwin\bin\myrun.exe /usr/bin/pdflatex document.tex

 Hmm. I'm not sure, in which troubles i get by going this way.

No need to be amazed, once you've read the spec for execve and understood
the purpose of each parameter.

What you're essentially doing here is exactly what using bash -c
would've done, but without bash (kinda like that thing with Einstein
explaining radio).  In fact, you can do this with bash as well, by noting
that the arguments do not have to appear in quotes (try running the
following:

bash -c exec /bin/echo \$@ some arguments here

and see what's printed; then read the bash man page for why this happens).

However, the above is *not* equivalent to using run.exe in that it will
not hide the console window (try it from a GUI).  To do this hiding,
run.exe *has* to use Win32 API like CreateProcess.  This isn't to say,
though, that the code cannot be fixed to do what you asked.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: [BUG?] run.exe and pdflatex

2008-01-10 Thread Igor Peshansky
On Fri, 11 Jan 2008, Sven Köhler wrote:

  Now i wonder, if it's already safe or if it would be possible to use
  cygwin API (for example execve) from run.exe. To fix all the issues,
  run.exe really would have to use cygwin to start the command since only
  that will resolv all the issues (analysing the shebang, following
  symlinks, etc.).

 OK, we cannot use execve, right?  If we would, it would open yet another
 console window will be opened for the program we'd like to exec, right?

Exactly.

 So is there any cygwin call to analyse a path? A call, that simply
 returns the program to execute, the parameters to pass, etc.?

 It really would really be better pass all the work (finding shebang,
 etc.) to cygwin so that it's consistent.

Yes, there is a well-known extensively tested way of handling shell
scripts, symlinks, etc.  It's called using a shell.  Just execve your
favorite shell (/bin/bash is most likely to be present in all installs,
and /bin/sh in Cygwin is the same as bash), and pass it the executable
path as an argument.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: [BUG?] run.exe and pdflatex

2008-01-10 Thread Igor Peshansky
On Thu, 10 Jan 2008, Christopher Faylor wrote:

 On Fri, Jan 11, 2008 at 12:13:59AM +0100, Sven K?hler wrote:
  bash -c exec /bin/echo \$@ some arguments here
 
  and see what's printed; then read the bash man page for why this
  happens).
 
 Oh, that possibility was new to me.
 
 All i wonder, is why the some gets lost. Only arguments here is
 printed. And actually i would like to argue, that $@ instead of $@
 should be used.

 Because, as on linux, the arguments are taken to be argv[0 - 2].

 bash -c exec /bin/echo \\$0\ \[EMAIL PROTECTED]

 will get you all of the arguments.

Or, in other words, read the bash man page for why this happens (in
particular, the part that talks about the -c argument). :-)
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [BUG?] run.exe and pdflatex

2008-01-10 Thread Igor Peshansky
On Fri, 11 Jan 2008, Sven Köhler wrote:

  However, the above is *not* equivalent to using run.exe in that it will
  not hide the console window (try it from a GUI).

 Just tested it. It's not true.

 I compiled my program with gcc -o /bin/myrun.exe -mwindows and
 executed c:\cygwin\bin\myrun.exe /bin/sleep 60 from Windows Explorer.

 No console window and sleep.exe runs.

 Also c:\cygwin\bin\myrun.exe /bin/rxvt works as expected. No console
 window.

Actually, -mwindows just says that myrun.exe should not pop up a console
window.  The child process is a console app, and would have still popped
up a console.  Except that in Cygwin 1.5.x, spawnve always set wShowWindow
to SW_HIDE before calling CreateProcess if the parent didn't have a tty,
so, in effect, execve was doing the same as what run.exe was doing.

Now, in Cygwin 1.7.x (a.k.a. CVS HEAD), this is no longer the case (since
revision 1.243 of spawn.cc).  The comment simply says Drop
pty_needs_alloc_console check -- maybe Corinna can explain why it was
dropped.  So your program will not work as expected in the snapshots.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: Convert windows shortcuts to cygwin soft links

2008-01-10 Thread Igor Peshansky
On Thu, 10 Jan 2008, Saurabh Tendulkar wrote:

 I must have done something to my cygwin folder, but all my ln'ed soft
 links on cygwin have gotten replaced by *.lnk windows files. Is there a
 utility to convert windows links to cygwin soft links? I dont want to
 have to go and do everything manually (there's at least a hundred
 files!). Thank you.

Try attrib +R *.lnk from a cmd prompt.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [BUG?] run.exe and pdflatex

2008-01-10 Thread Igor Peshansky
On Fri, 11 Jan 2008, Sven Köhler wrote:

  Now, in Cygwin 1.7.x (a.k.a. CVS HEAD), this is no longer the case
  (since revision 1.243 of spawn.cc).  The comment simply says Drop
  pty_needs_alloc_console check -- maybe Corinna can explain why it was
  dropped.  So your program will not work as expected in the snapshots.

 OK, thanks for the explanation.

 But ... wouldn't that mean that any command executed would open a
 console window?

Yes, unless one is already allocated.  So, when you run cygwin.bat, that
opens the console, and this console is used for subsequent apps.  However,
if you tried to invoke a Cygwin application via Start-Run, you'd get a
console.

 In your other responses, you said, that using the shell is the most
 preferrable way. Unfortunatly, i cannot use the shell. The method is
 well understood. I could easily execute cygwin stuff by using:

 bash -c exec \\$0\ \[EMAIL PROTECTED] program param1 param2 ...

 The program from which i want to execute pdflatex/pslatex/etc. (which is
 Texlipse, a Latex plugin for Eclipse) doesn't allow me to do so.

Yet it would allow you to use run.exe in place of bash -c 'exec $0
$@'?  This is weird.

 But aside from that: is the shell really the preferred way of doing
 this? Doesn't the shell simply call execve again?

Not quite.  The shell will also set the right program name for
executables/symlinks, or interpret the shebang line and invoke the
interpreter via execve, rather than the script.

 Following what you said, it should be best to call bash.exe from run.exe
 to solve all the issues.

Indeed.  So, your invocation would be

run bash -c 'exec $0 $@' pdflatex your args

or something like that.


 So the question is: who does all the checks (shebang, etc.)?
 - the execve implementation? (which is cygwin, right?)
 - the shell?
 - both?

The shell.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel
--
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: SFTP error 128

2008-01-08 Thread Igor Peshansky
On Tue, 8 Jan 2008, Neil Aggarwal wrote:

 Igor:

  See if
  http://www.derkeiler.com/Newsgroups/comp.security.ssh/2003-06
  /0117.html
  is of any help.

 I logged in as the Administrator, ran the cygwin shell,
 and executed these commands:
 chmod 755 /
 chmod -R 755 /usr

 But, I still get error 128 from a domain user account.
 Is there a specific command you want me to run to try
 to set the user permissions?

Well, that posting was referring to permissions on *Windows* directories.
Cygwin isn't standalone -- to work, it needs the standard Windows DLLs
like kernel32.dll, winsock stuff, etc.  I'm guessing your C:\Windows
directory is accessible to local users but not domain users.

  Also, is the sftp subsystem enabled in /etc/sshd_config?

 The /etc/sshd_config has this line:
 Subsystem   sftp/usr/sbin/sftp-server

 I am able to use sftp with the Administrator account,
 just not with a domain user.
 Any other ideas?

Try to follow through on the permission idea.  The ability to use sftp as
another local user (not Administrator) would support this guess.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Unable to access jarfile when using full path of JAR

2008-01-07 Thread Igor Peshansky
On Sat, 5 Jan 2008, Dave wrote:

 Dan Garrette wrote:
  I'm having a problem running JAR files in cygwin.
 
  If I attempt to call a JAR file using its relative path, then it works
  fine:
 
  But, if I attempt to call a JAR file using its full path, the file no
  longer seems visible:
 
  $ pwd
  /usr/local/bin
  $ java -jar /usr/local/bin/malt-1.0.1/malt.jar
  Unable to access jarfile /usr/local/bin/malt-1.0.1/malt.jar

 The java executable is not cygwin aware, so in both DOS and cygwin
 environments you need to use windows paths. You can use cygpath to do
 the translation if necessary.

 $ java -jar `cygpath -m /usr/local/bin/malt-1.0.1/malt.jar`

Or use the Java wrapper scripts from
http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps.
:-)

  It works just fine in DOS:
 
  D:\java -jar c:\cygwin\usr\local\bin\malt-1.0.1\malt.jar
  correct output

 As expected.

Indeed.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Observation: setting HOME to / can lead to slow cygwin

2008-01-07 Thread Igor Peshansky
On Mon, 7 Jan 2008, George Wyner wrote:

 I am running Cygwin 1.5.25 on Windows XP Professional (Ver 5.1 Build
 2600 Service Pack 2)

 No longer sure why, but at some point I set my HOME directory to
 C:\cygwin

 Running cygwin on my machine was quite slow, especially when starting
 bash and running man and info (2-5 seconds for each).  I also noticed
 that nano complained it could not find the file //.nanorc

 I changed the home directory in my passwd file to /home/gwyner at which
 point the slowdown vanished:  bash, man, and info are now fast.  the
 nano error also went away.

 End of observation.

 Start of uninformed speculation:

 I suspect that this is a variation on the network share cause of
 slowdown reported in the FAQ
 (http://cygwin.com/faq/faq.using.html#faq.using.slow) -- I suspect that
 because HOME was set to / that directory references beginning with the
 prefix $HOME/ would resolve to // and therefore be interpreted as a
 network share.

 It may be that // showed up somewhere in my environment and I did not
 see it (although I looked) but if that is not so then it might be worth
 flagging the above configuration as another potential source of
 problems.  (Perhaps more likely with windozy users like me who may not
 have the right intuitions or knowledge about where to put the home
 directory.)

Your first guess is correct -- many apps use $HOME/filename without
bothering to check that $HOME is / (also, many erroneously assume that
//A is the same as /A).

It's usually a good idea to create a /home tree, with one directory per
user.  Cygwin usually does that by default if HOME is not set in 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: SFTP error 128

2008-01-04 Thread Igor Peshansky
Ugh, top-posting...  Reformatted.

On Fri, 4 Jan 2008, Neil Aggarwal wrote:

  One common problem with ssh-based services is stray output
  from profile/rc
  scripts.  Check that your login scripts don't output anything to the
  console that may be confusing the sftp protocol.
 
  Also check for interference from the
  http://cygwin.com/acronyms/#BLODA.
  Igor

 Igor:

 I turned off Symantec AntiVirus' protections and
 tried again.  I can connect to SSH using a domain account
 but when I try to SFTP, I still get error 128.
 There is nothing else running that I can think of.

 The profile is the default one by cygwin and
 there is no /etc/rc.d directory.

 I checked the Event Viewer.  The is an event with this:

 Event Type:   Information
 Event Source: sshd
 Event Category:   None
 Event ID: 0
 Date: 1/4/2008
 Time: 11:47:50 AM
 User: CRCGROUP\sshd_server
 Computer: TCSERVER
 Description:
 The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The
 local computer may not have the necessary registry information or message
 DLL files to display messages from a remote computer. You may be able to use
 the /AUXSOURCE= flag to retrieve this description; see Help and Support for
 details. The following information is part of the event:

Everything above this line in the description is cruft that Windows
inserts when it cannot interpret the message type id.

 sshd: PID 5980: subsystem request for sftp.

This is the actual message, and it looks like a harmless information
message.

 Any other ideas?

See if
http://www.derkeiler.com/Newsgroups/comp.security.ssh/2003-06/0117.html
is of any help.

Also, is the sftp subsystem enabled in /etc/sshd_config?
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: SFTP error 128

2008-01-02 Thread Igor Peshansky
On Thu, 27 Dec 2007, Neil Aggarwal wrote:

   Very good for one with such a bad attitude!

 I did not mean to have a bad attitude.  I was just trying
 to state that I thought -l switch already did what
 you wanted to do.

  Now it is time to setup ssh to accept the connection you are
  trying to make.
  Anything you can do with ssh you can do with sftp.

 I can successfully ssh into the box using a domain account.
 It is only when I try to SFTP when I get the error 128.

One common problem with ssh-based services is stray output from profile/rc
scripts.  Check that your login scripts don't output anything to the
console that may be confusing the sftp protocol.

Also check for interference from the http://cygwin.com/acronyms/#BLODA.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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 on Rails 2.0.2/Cygwin Bug

2007-12-22 Thread Igor Peshansky
On Fri, 21 Dec 2007, Mike Boone wrote:

 I came up with a simple Ruby snippet that reproduces the problem. I'd
 appreciate it if other Cygwin users would try it. You can change the
 cause_failure = true line to say false and it will run.

 --urandom_test.rb--
 # Test failure of reading /dev/urandom after failed require

 # this method is from the Rails' source secret_key_generator.rb
 def generate_secret_with_urandom
   return File.read(/dev/urandom, 64).unpack(H*)[0]
 end

 cause_failure = true

 begin
   require 'nonexistent_file'
 rescue LoadError
   puts '' unless cause_failure
 end

 puts generate_secret_with_urandom
 ---

 So far, the strace output of this is too low level for me to follow.
 Perhaps it will be clear to a regular Cygwin hacker.

 BTW, I'm running ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-cygwin].

As I mentioned before, I don't use Ruby too often.  But I just realized
something: to reproduce the error, you needed a require
'nonexistent_file', which will obviously set errno to ENOENT (which is
exactly the error you're seeing).  It's possible that File.read checks
errno and exits right away if it's non-zero, and that nothing resets errno
before File.read.  Inserting the puts call will likely reset errno, thus
avoiding the bug.  So, the bug is probably in Ruby code for exception
handling (rescue) -- it should reset errno so that subsequent code isn't
affected (and it's also suspicious that the File.read code checks errno
without a valid reason, e.g., a non-zero return value).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [GTG] Re: [ITP] rzip 2.1 -- Compression program to use long distance redundencies in files

2007-12-20 Thread Igor Peshansky
On Thu, 20 Dec 2007, Dr. Volker Zell wrote:

  Jari Aalto writes:

  Included in Debain stable

http://packages.debian.org/rzip

  Jari

  sdesc: Compression program to use long distance redundencies in files
  ldesc: A compression program able to take advantage of long distance
  redundancies in files, allowing greater compression ratios. rzip uses
  a history buffer of up to 900MB, while gzip uses 32KB and bzip2 uses
  900KB. rzip cannot read from the standard input or write to the
  standard output.
  category: Utils
  requires: cygwin libbz2_1

 Builds fine from source, packaging and setup.hint look good.

Minor typo in the sdesc: it's redundancies, not redundencies.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: Ruby on Rails 2.0.2/Cygwin Bug

2007-12-19 Thread Igor Peshansky
On Wed, 19 Dec 2007, Mike Boone wrote:

 Can anyone running Cygwin and Ruby on Rails comment on this problem?

 Create a Rails 2.0.2 application and see if it fails with this error:
 No such file or directory - /dev/urandom

 I filed a bug on Rails, please read for more details.
 http://dev.rubyonrails.org/ticket/10544

 I'm not sure if this is Cygwin's fault or something peculiar about the
 Rails code, though it looks reasonable.

Well, /dev/urandom certainly exists in Cygwin.  I'm not a Ruby expert, but
considering that adding a puts() before the file open seems to fix it, I'd
look somewhere in the Ruby code.  But you can try running the original
under strace to see what exactly Ruby is trying to do with /dev/urandom.

Also note that if, for some reason, you end up with non-Cygwin Ruby *or* a
non-Cygwin DLL that Ruby gets its File library from, it will definitely
not know about /dev/urandom.

In short, strace is your friend.  In particular, it will tell you the
exact Windows error Ruby gets when trying to open the device, as well as
any path translations that Cygwin tries to do in that case.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [ITA] nano package

2007-12-18 Thread Igor Peshansky
On Mon, 17 Dec 2007, Yaakov (Cygwin Ports) wrote:

 Lapo Luchini wrote:
  PS: AFAIR the g-b-s' deps target lists them all, but cygport's dep
  does not.

 The g-b-s deps check was based on cygcheck, which shows the entire
 dependency tree, where cygport uses objdump, which lists only those that
 the binary is linked against.  The latter option can sometimes be slower
 (*cough*KDE*cough*), but is much more accurate.

By default, cygcheck eliminates duplicates in the list of DLL
dependencies, even if they previously appeared at a deeper level of
dependency nesting.  Adding the -v option causes it to list all
dependencies without eliminating duplicates (except that there is a bug
that causes the following line:

Warning: C:/cygwin/bin\cygreadline6.dll hides C:\cygwin\bin\cygreadline6.dll

to be repeated quite a few times, but that's something to be fixed
separately).  So, the solution would be to use cygcheck -v program in
the g-b-s based scripts and to select from the output lines with exactly
two leading 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: Intermittent perl crash (Attn: coreutils and bash maintainer)

2007-12-18 Thread Igor Peshansky
On Tue, 18 Dec 2007, Michael Kairys wrote:

 Larry Hall (Cygwin) [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

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

  http://cygwin.com/faq/faq-nochunks.html#faq.using.chmod

 Thanks... I read with partial understanding but could not come up with any
 action items...

 My resolution was to verify that my temp is in fact writeable and then
 comment out the check in rebaseall.
 So far so good: no fork failures.

I'm guessing one can reconstruct your permissions as follows:

$ cd /tmp
$ mkdir nw
$ setfacl -m g:Users:rwx nw
$ chmod a-rwx nw
$ ls -ld nw
d-+ 2 igor root 0 Dec 18 10:08 nw/
$ touch nw/foo
$ ls -l nw/foo
-rw--- 1 igor root 0 Dec 18 10:08 nw/foo
$ if [ -w nw ]; then echo Yes; else echo No; fi
No
$

One solution is, of course, chmod u+rwx /tmp.  The other is to change
rebaseall to try creating a file anyway and checking the result.

There was some talk of changing coreutils to use access for testing
permissions, which would probably solve this as well.  However, even if I
use /bin/test -w nw, I get a No.  Has this change ever happened?  If
it ever does, bash will also need to be rebuilt so that its builtins use
the same interface.  It helps that both have the same maintainer.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: Intermittent perl crash (Attn: coreutils and bash maintainer)

2007-12-18 Thread Igor Peshansky
On Tue, 18 Dec 2007, Michael Kairys wrote:

 Igor Peshansky [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

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

  I'm guessing one can reconstruct your permissions as follows:
 
  $ cd /tmp
  $ mkdir nw
  $ setfacl -m g:Users:rwx nw
  $ chmod a-rwx nw
  $ ls -ld nw
  d-+ 2 igor root 0 Dec 18 10:08 nw/
  $ touch nw/foo
  $ ls -l nw/foo
  -rw--- 1 igor root 0 Dec 18 10:08 nw/foo
  $ if [ -w nw ]; then echo Yes; else echo No; fi
  No
  $

 Not sure about the setfacl but I note that if I repeat your sequence I get
 dr-xr-xr-x, which is what all my dirs look like:

 1  cd /tmp
 2  mkdir nw
 3  setfacl -m g:Users:rwx nw
 4  chmod a-rwx nw
 5  ls -ld nw
 dr-xr-xr-x 2 michael None 0 Dec 18 11:46 nw
 6  touch nw/foo
 7  ls -l nw/foo
 -rw-r--r-- 1 michael None 0 Dec 18 11:47 nw/foo
 8  if [ -w nw ]; then echo Yes; else echo No; fi
 No

  One solution is, of course, chmod u+rwx /tmp.

 Well, this has no effect for me:

 9  ls -ld /tmp
 dr-xr-xr-x 9 michael None 245760 Dec 18 11:46 /tmp
 10  chmod u+rwx /tmp
 11  ls -ld /tmp
 dr-xr-xr-x 9 michael None 245760 Dec 18 11:46 /tmp

Heh.  I just looked, and it seems you've never posted the output of
cygcheck -svr on your system as requested in

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

I bet that if you did post one, it would show that your Cygwin is
installed on either FAT or FAT32, not NTFS.  That, and the DOS Read-only
bit on the directory is probably set.  Another (less likely) alternative
is that you've installed on a network drive.

If it's FAT32, you're out of luck.  In other cases you would probably
benefit from reviewing http://cygwin.com/cygwin-ug-net/ntsec.html.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [ITA] nano package

2007-12-17 Thread Igor Peshansky
On Mon, 17 Dec 2007, Corinna Vinschen wrote:

 On Dec 17 12:50, Lapo Luchini wrote:
  http://cyberx.lapo.it/cygwin/nano/nano-2.0.6-1.tar.bz2
  http://cyberx.lapo.it/cygwin/nano/nano-2.0.6-1-src.tar.bz2

 Looks good, uploaded.
 Thanks for taking over,
 Corinna

http://cygwin.com/goldstars/#JAa.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: [ITA] nano package

2007-12-17 Thread Igor Peshansky
On Mon, 17 Dec 2007, Lapo Luchini wrote:

 Igor Peshansky wrote:
  http://cygwin.com/goldstars/#JAa.
  Doh? ;-)
  Sort of.  Just making sure this time things don't get buried in the TODO
  list... :-)

 Uh.. not exactly: I was dohing to the fact that that I'm not quite as
 active as Jari is, in adopting packages 0=)

 (second hint: #JAa vs #LL :P)

D'oh indeed.  Chalk it off to the lack of sleep and doing things in a
hurry.  Should be fixed now: http://cygwin.com/goldstars/#LL.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: [ITA] joe 3.5 - Fast and simple editor which emulates 5 other editors

2007-12-15 Thread Igor Peshansky
On Sat, 15 Dec 2007, Corinna Vinschen wrote:

 On Dec 14 10:19, Jari Aalto wrote:
wget\
  http://cygwin.cante.net/joe/setup.hint \
  http://cygwin.cante.net/joe/joe-3.5-2-src.tar.bz2 \
  http://cygwin.cante.net/joe/joe-3.5-2.tar.bz2 \

 Uploaded.
 Thanks for taking over,
 Corinna

So noted: http://cygwin.com/goldstars/#JAa.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--lBG2Ksno015852.1197771654/access1.cims.nyu.edu--
ReSent-Date: Sat, 15 Dec 2007 21:36:30 -0500 (EST)
ReSent-From: Igor Peshansky [EMAIL PROTECTED]
ReSent-To: cygwin-apps@cygwin.com
ReSent-Subject: Re: [ITA] joe 3.5 - Fast and simple editor which emulates 5
 other  editors
ReSent-Message-ID: [EMAIL PROTECTED]

On Sat, 15 Dec 2007, Corinna Vinschen wrote:

 On Dec 14 10:19, Jari Aalto wrote:
wget\
  http://cygwin.cante.net/joe/setup.hint \
  http://cygwin.cante.net/joe/joe-3.5-2-src.tar.bz2 \
  http://cygwin.cante.net/joe/joe-3.5-2.tar.bz2 \

 Uploaded.
 Thanks for taking over,
 Corinna

So noted: http://cygwin.com/goldstars/#JAa.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--lBG2Ksno015852.1197771654/access1.cims.nyu.edu--



Re: [ITA] editrights 1.01-2 -- Alter Windows user rights and privileges from command line

2007-12-13 Thread Igor Peshansky
On Thu, 13 Dec 2007, Corinna Vinschen wrote:

 On Dec 13 13:06, Jari Aalto wrote:
 
  Adoption of package by Chris Rodgers. Note: the category was changed
  from Base to Util, since this does not seem to be essential package.

 This package is in Base for a reason.  It is an essential package and
 used for instance in the openssh config script.

Then wouldn't it make sense to simply have all the packages that need it
depend on it?

OTOH, one of those packages is cygwin (since cygserver config should
probably use editrights as well), and that effectively puts it in
Base...
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: [ITA] editrights 1.01-2 -- Alter Windows user rights and privileges from command line

2007-12-13 Thread Igor Peshansky
On Thu, 13 Dec 2007, Corinna Vinschen wrote:

 On Dec 13 16:13, Jari Aalto wrote:
  * Thu 2007-12-13 Corinna Vinschen [EMAIL PROTECTED]
   ...it's still version 1.01.  Wouldn't the above change qualify for
   a 1.02 release?  Just an idea...
 
  I'll contact the original author; I feel the upstream number should stay
  in the official version. The added functionality is a separate patch,
  so I' would go for -2.

 Ok, no worries.  Uploaded.

 Thanks for taking over,

Indeed: http://cygwin.com/goldstars/#JAa.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: Stop turning CPAN modules into Cygwin packages

2007-12-12 Thread Igor Peshansky
On Wed, 12 Dec 2007, Jerry D. Hedden wrote:

 Eric Blake wrote:
  A new package, perl-Error-0.17010-1, is now available for use.
 
  NEWS:
  =
  This is a new package, providing the Error module for perl.

 What is the point of making this a Cygwin package?  There
 are no Cygwin specific changes, and it it can be installed
 directly from CPAN using:
 cpan -i Error

As I understand it, this is a prerequisite for git, which is a Cygwin
package.

In fact, that's the only reason I see for making CPAN modules into Cygwin
packages (the Cygwin-specific patches, as you've said yourself, should
eventually be sent upstream).

 This seems to be becoming a trend.  So far there are 8 CPAN
 modules that have been made into Cygwin packages.  Only 3
 have Cygwin specific changes that would justify them being
 made into package:
 perl-Locale-gettext
 perl-Tk
 perl-libwin32

 The other 5 have no Cygwin specific changes:
 perl-Error
 perl-ExtUtils-Depends
 perl-ExtUtils-PkgConfig
 perl-Module-Build
 perl-Win32-GUI

FWIW, some of these modules might be worth packaging as part of the Cygwin
Perl package (in vendor_perl), rather than as separate packages.

 This seems like a bad practice.

Ok, let's take these points one-by-one.

 It adds a maintenance burden on the Cygwin system (because the packages
 will need to be updated when the modules are updated),

Yes, but that's the choice of the volunteer maintainer.  Eric packaged
these because he maintains git, and it was the easiest way for him to make
sure the target system contained the required modules.  So, in effect, it
*eased* his maintenance burden.

 they needlessly take up storage on the Cygwin servers,

Storage is cheap, and nobody has complained yet.

 and turning them into Cygwin packages adds no value over obtaining the
 modules directly from CPAN.

Sure it does.  For one, they could be added as dependencies of other
packages (as you yourself agreed), and also they can be included on
installation CDs, etc, which could be installed without internet
connection (which is one reason to not request CPAN install in a
postinstall script).

 Just because you can turn a CPAN module into a Cygwin
 package doesn't mean that you should unless there are Cygwin
 specific changes that need to be made.  Even then, a better
 approach is to send the appropriate patches to the module's
 maintainer so that they can be integrated into the code and
 uploaded to CPAN.

BTW, this problem must have been encountered (and, hopefully, solved) by
other distros.  How does the Debian git package handle this?  I seem to
recall that at least Red Hat Linux at some point had packages for some
CPAN modules...
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: [ITA] rcs: The Revision Control System

2007-12-11 Thread Igor Peshansky
On Tue, 11 Dec 2007, Corinna Vinschen wrote:

 On Dec 10 16:35, Dr. Volker Zell wrote:
  Hi
 
  I would like to adopt and maintain the `rcs' package from Stipe Tolj.

 Sure, no problem!

  wget http://volkerzell.de/cygwin/ITP/rcs/setup.hint
  wget http://volkerzell.de/cygwin/ITP/rcs/rcs-5.7-4-src.tar.bz2
  wget http://volkerzell.de/cygwin/ITP/rcs/rcs-5.7-4.tar.bz2

 Looks good.  Uploaded.

 Where's Igor?  IIIGOOOR!  Another gold star for Volker, please.

Wha?  Sorry, I was off in the vault polishing the stars...

Done.  I put in all 3 at once (for enscript, squid, and rcs).
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Starfall

2007-12-11 Thread Igor Peshansky
I apologize profusely to everyone who worked hard to adopt packages over
the past few months.  I've discovered a stash of unanswered gold star
emails in my Follow-up folder, and have just completed giving out all of
them (all well deserved):

http://cygwin.com/goldstars/#LL
http://cygwin.com/goldstars/#JAa
http://cygwin.com/goldstars/#JA
http://cygwin.com/goldstars/#VZ

On the plus side, I've spent quite a while spinning my wheels^W^W^W...
err... polishing the stars, so this new batch should be extra shiny.
Igor
P.S. I think I've covered all of the pending ones, but if I missed some,
please don't hesitate to let me know.
-- 
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel


Re: get cygpath to leave relative paths as relative?

2007-12-11 Thread Igor Peshansky
On Mon, 10 Dec 2007, Brent wrote:

 If I execute
 mypath=`cygpath -w ../`
 echo $mypath

 I get
 d:\unix\nextVersion\script

 OK, d:\unix\nextVersion\script is the correct windows version of the
 path, but it is in absolute form. I would prefer it if cygpath left it
 in relative form, i.e.
 echo $mypath
 should output
 ..\

 Executing
 cygpath --help
 indicates that the only related option is -a, but that forces conversion
 to absolute paths, which is the opposite of what I want. It seems,
 unfortunately, as if cygpath has -a on by default and has no way to turn
 it off!

 Is this a known bug or implementation quirk in cygpath, or did I
 overlook something? (Web searching on cygpath and relative path
 generated a ton of hits, but none out of the first 100 that I looked
 thru seemed related...)

In addition to what Corinna said, if you don't have any symlinks in the
relative path, you should be able to use the forward slash variant without
using cygpath.  All Windows system calls (and most Windows programs)
understand forward slashes just 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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: X server already running?

2007-12-02 Thread Igor Peshansky
On Mon, 26 Nov 2007, Kevin Porter wrote:

 (Talking of vim, if anyone can tell me how to paste into a cygwin/X/vim
 window I'd be extremely grateful. My usual cumbersome workaround is to
 quit my vim session and fire up gvim to do the paste!).

I don't believe this has been answered.  First off, you can paste using
the middle mouse button.  If you have a two-button mouse, you can use the
-emulate3buttons flag to XWin (it might even be the default), and then
press the left and right buttons simultaneously.  Finally, if you want the
Windows clipboard, then ':!cat /dev/clipboard' works fine from within vim.
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!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

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



Re: Failure in building GFortran on Cygwin

2007-11-30 Thread Igor Peshansky
On Fri, 30 Nov 2007, Corinna Vinschen wrote:

 On Nov 30 07:26, Eric Blake wrote:
  According to Corinna Vinschen on 11/30/2007 7:20 AM:
  
   However, this *is* a problem in the newlib/cygwin headers.  Cygwin
   exports a timezone function and a _timezone variable.  The timezone
   function was an ill-advised invention in Cygwin way back in the last
   century.  Unfortunately it has to be kept for backward compatibility.
 
  For 1.5.x, yes.  But can we delete timezone() for 1.7.x, on the grounds
  that any binary that still uses the timezone function is old enough that
  it would benefit from re-porting to the latest cygwin sources anyway?

 I'm thinking along the same lines.  While that breaks backward
 compatibility, I'm not overly concerned in case of applications which
 have never been ported to a newer Cygwin version the last 10 or so
 years.

And plus, renaming the function to, e.g., _cygwin_timezone will allow for
a one-line fix for those applications...
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Reliable old script loses data on new Cygwin installation

2007-11-22 Thread Igor Peshansky
On Tue, 13 Nov 2007, Thomas Baker wrote:

 The /bin/pdksh script sequence that is causing problems is:
 [snip]

The obvious question is: do you still get the error if you replace pdksh
with bash, or is the problem pdksh-specific?

When you reduce this to a minimal testcase, are there bits of that
testcase that require pdksh to be used?
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Running Cygwin bash from Ant script

2007-11-22 Thread Igor Peshansky
On Wed, 14 Nov 2007, Nicolai Kamenzky wrote:

 Hi folks!

 In my Ant script I have a target which should
 1. Start the Cygwin bash,
 2. Change the current directory, and
 3. Execute a command.

 I have done this previously using the windows console,
 but now I want to do the same with the Cygwin bash.

 My Ant target looked like this:
 project name=xyz basedir=.
   target name=build
   exec dir=. executable=cmd.exe
   arg line=/c make/
   /exec
   /target
 /project

 I tried this, but it didn't work:
 project name=xyz basedir=.
   target name=build
   exec dir=. executable=C:\Program Files\cygwin\bin\bash
   arg line= --login -i -c cd 
 /cygdrive/c/someFolderToBeTheCurrentDir/; make/
   /exec
   /target
 /project

 Any ideas?

This isn't really Cygwin-specific -- you'd have the same problem with ant
and bash on Linux.  Don't use arg line, use something like

exec dir=. executable=C:\Program Files\cygwin\bin\bash
arg value=--login/
arg value=-i/
arg value=-c/
arg value=cd 
/cygdrive/c/someFolderToBeTheCurrentDir/; make/
/exec

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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27

2007-11-22 Thread Igor Peshansky
On Wed, 14 Nov 2007, Andrew Schulman wrote:

  Also is bash style shell arithmetic used for the priority allowed in a
  /bin/sh script ?

 I'm not sure, since bash is the default shell now.  But since ash is
 still out there, I've removed the offending arithmetic (which I now take
 care of in my makefile instead).

Or you could make the postinstall script a bash script, and make bash a
prerequisite of unison (no big deal, as bash is already in Base).
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Replying to messages

2007-11-19 Thread Igor Peshansky
On Wed, 24 Oct 2007, Brad Bell wrote:

 How does one reply to a message on cygwin.com when you do not have an
 e-mail copy of the original message; i.e., just given the information in
 the mailing list archive ?

http://cygwin.com/ml/cygwin/2002-12/msg00501.html
http://cygwin.com/ml/cygwin/2005-03/msg00867.html

The scripts may be further improved with the skipmung option (which I
have not heard of until today).
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--lAJHIt1o008585.1195492735/access1.cims.nyu.edu--
ReSent-Date: Mon, 19 Nov 2007 12:33:35 -0500 (EST)
ReSent-From: Igor Peshansky [EMAIL PROTECTED]
ReSent-To: cygwin@cygwin.com
ReSent-Subject: Re: Replying to messages
ReSent-Message-ID: [EMAIL PROTECTED]

On Wed, 24 Oct 2007, Brad Bell wrote:

 How does one reply to a message on cygwin.com when you do not have an
 e-mail copy of the original message; i.e., just given the information in
 the mailing list archive ?

http://cygwin.com/ml/cygwin/2002-12/msg00501.html
http://cygwin.com/ml/cygwin/2005-03/msg00867.html

The scripts may be further improved with the skipmung option (which I
have not heard of until today).
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--lAJHIt1o008585.1195492735/access1.cims.nyu.edu--


--
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: [ANNOUNCEMENT] Updated: bash-3.2.25-17

2007-10-19 Thread Igor Peshansky
On Fri, 19 Oct 2007, Corinna Vinschen wrote:

 On Oct 19 09:46, Igor Peshansky wrote:
  On Fri, 19 Oct 2007, Eric Blake wrote:
   According to Igor Peshansky on 10/19/2007 7:29 AM:
I could, but the issue is more basic than where the script lives.
Right now Cygwin populates the /dev directory as a virtual
directory within the DLL.  The script I'm talking about will make
/dev a real directory, and the only thing Cygwin will deal with is
devices.

 I don't see the point.

Ok, fair enough.  There was a mailing list discussion a while ago that
involved Christopher Faylor stating that he'd like to see such
functionality at some point, so I figured I'd work on a script to do that.
If Cygwin wants to keep the files in /dev virtual, I have no problems
keeping the current create_devices.sh script.

What the transition would entail is not clear to me.
  
   But the bash postinstall script already creates /dev as a real
   directory, as of my release announcement; it just isn't very
   populated.  I think making the script its own package in base, then
   making bash depend on that package, would be worthwhile.

 ...and the syslog-ng-config as well as the syslogd-config scripts
 also create /dev if it doesn't exist so that syslog-ng/syslogd can
 create a /dev/log socket.

Yes, I already corrected myself that I meant the files in /dev, not /dev
itself.

  Sorry, I was imprecise.  Whether /dev is a real directory or not is
  irrelevant.  However, the *files* in /dev are virtual, and therefore
  the command mknod -m 666 c 1 3 /dev/null will fail, because, as far
  as the Cygwin DLL is concerned, /dev/null already exists.
 
  Plus, we might get into some ordering issues on when to run this
  script...

 I'm under the impression you're thinking about this too complicated. The
 script could be a postinstall script in the Base category, so it's
 getting run automatically on install.

 Cygwin itself does not depend on the existence of /dev, so there's no
 problem with order or so.  For the virtual devices which are handled by
 Cygwin you don't need to call mknod.  Just create empty files, like
 this:

   $ touch `cygpath -am /dev`/null
   $ ls -l /dev/null
   crw-rw-rw- 1 corinna root 1, 3 Dec  1  2006 /dev/null

 As you can see, Cygwin does never evaluate a DOS path as virtual device,
 while it always evaluates the POSIX path into the virtual device.  Voila.

That is exactly what the current create_devices.sh does.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: [ANNOUNCEMENT] Updated: bash-3.2.25-17

2007-10-19 Thread Igor Peshansky
On Fri, 19 Oct 2007, Eric Blake wrote:

 According to Igor Peshansky on 10/19/2007 7:29 AM:
  Why not create a stand-alone package in the base category which
  consists of just the postinstall script?
 
  I could, but the issue is more basic than where the script lives.  Right
  now Cygwin populates the /dev directory as a virtual directory within the
  DLL.  The script I'm talking about will make /dev a real directory, and
  the only thing Cygwin will deal with is devices.
 
  What the transition would entail is not clear to me.

 But the bash postinstall script already creates /dev as a real directory,
 as of my release announcement; it just isn't very populated.  I think
 making the script its own package in base, then making bash depend on that
 package, would be worthwhile.

Sorry, I was imprecise.  Whether /dev is a real directory or not is
irrelevant.  However, the *files* in /dev are virtual, and therefore the
command mknod -m 666 c 1 3 /dev/null will fail, because, as far as the
Cygwin DLL is concerned, /dev/null already exists.

Plus, we might get into some ordering issues on when to run this script...
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: [ANNOUNCEMENT] Updated: bash-3.2.25-17

2007-10-19 Thread Igor Peshansky
On Fri, 19 Oct 2007, Corinna Vinschen wrote:

 On Oct 18 13:29, Igor Peshansky wrote:
  On Wed, 17 Oct 2007, Eric Blake wrote:
 
   [snip]
   Based on user response, I may be convinced to fold in the rest of Igor's
   create_devices.sh [see
   http://cygwin.com/cygwin-ug-net/using-specialnames.html] into the bash
   postinstall, as it admittedly looks a bit weird when 'ls /dev' shows
   /dev/stdin but not /dev/null (rest assured, all the devices still exist,
   even if a listing of /dev does not show them).
 
  FYI, mknod works just fine on Cygwin, and I've been using a /ddev
  directory populated with mknod for a while now (not in scripts, of course)
  with no problems.
 
  I have a preliminary version of a modified script that uses mknod to
  populate a directory with devices.  Should we use that instead (and put
  this in a postinstall script for the cygwin package)?

 Why not create a stand-alone package in the base category which
 consists of just the postinstall script?

I could, but the issue is more basic than where the script lives.  Right
now Cygwin populates the /dev directory as a virtual directory within the
DLL.  The script I'm talking about will make /dev a real directory, and
the only thing Cygwin will deal with is devices.

What the transition would entail is not clear to 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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: [ANNOUNCEMENT] Updated: bash-3.2.25-17

2007-10-18 Thread Igor Peshansky
On Wed, 17 Oct 2007, Eric Blake wrote:

 [snip]
 Based on user response, I may be convinced to fold in the rest of Igor's
 create_devices.sh [see
 http://cygwin.com/cygwin-ug-net/using-specialnames.html] into the bash
 postinstall, as it admittedly looks a bit weird when 'ls /dev' shows
 /dev/stdin but not /dev/null (rest assured, all the devices still exist,
 even if a listing of /dev does not show them).

FYI, mknod works just fine on Cygwin, and I've been using a /ddev
directory populated with mknod for a while now (not in scripts, of course)
with no problems.

I have a preliminary version of a modified script that uses mknod to
populate a directory with devices.  Should we use that instead (and put
this in a postinstall script for the cygwin package)?
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Unable to recirsively delete a directory

2007-10-16 Thread Igor Peshansky
On Tue, 16 Oct 2007, Dave Korn wrote:

 On 16 October 2007 18:18, Paul McFerrin wrote:

  I've been seeing this same problem

   Specifically on a NAS over SMB?  Or are you talking about something
 you've seen happen on your local hard drive, which would very likely be
 a completely different problem?

  since B20!

   Say, you /could/ have mentioned it a little sooner ...  you've had
 nearly ten years now to write a bug report, y'know!

   The only time I've ever seen anything like this is when I've messed
 up, and the directory hasn't actually been empty, and I only thought it
 was because I forgot the -a flag to ls, or I've mistyped something or
 forgotten some perms.  Pilot error every time.  That's not to say it's
 impossible, and my first line of attack would be Is this one of those
 versioning NASs and is it perhaps treating the directory as
 not-really-empty-because-you-might-want-to-roll-it-back-I-wonder?.

FWIW, you can also get this message if some program has an open handle to
either the directory itself or some file in that directory.  Usually
either a service or another shell...  Check the cwd of all shells, etc.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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 GUI apps from xterm

2007-09-29 Thread Igor Peshansky
On Wed, 12 Sep 2007, Holger Krull wrote:

 Keep things on the list please.

  Now from the same cygwin shell, if I run rsh any_unix_machine, I am
  now logged into a unix box, now I run rsh terminal_server_name, I am
  now back on the terminal server. Now if I run calc, it doesn't work,
  attached are 2 snapshots.

 so you have
 terminal-server -unix -terminal-server

 I'm not suprised that this doesn't work.
 The second rsh session you create on the terminal server is not aware of
 the former terminal-server connection. You wouldn't expect to see the
 graphical output of calc if you would sit in front of the unix server
 and doing a rsh to the terminal-server.

Actually, the calc process is spawned by the inetd service, which usually
cannot interact with the desktop by default.  If the OP enables the
Interact with Desktop checkbox for the inetd service, this should 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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

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



Re: llrint implementation in Cygwin

2007-09-29 Thread Igor Peshansky
On Sat, 29 Sep 2007, Diego Biurrun wrote:

 Igor Peshansky wrote:
  On Fri, 28 Sep 2007, Diego Biurrun wrote:

   I understand that adding llrint to Cygwin is probably not hard at
   all for somebody familiar with Cygwin.  However, I am not such a
   person and I don't even have a Windows environment around to test
   any modifications I might make.

Cygwin uses newlib as-is for most such functionality.  So, patching
newlib to include llrint would automatically make Cygwin support it.

Also, newlib builds on Linux just as well as it does on Windows...

   We are about to make an MPlayer release and unfortunately it will
   not compile on Cygwin due to the missing llrint.  I would appreciate
   to know if this is going to get addressed so that I can put an
   appropriate comment in the release notes.
 
  What's wrong with adding llrint to your code (perhaps with a #define,
  i.e.,
 
  #define llrint my_llrint
  typeof(llrint) my_llrint(...) { ... }
 
  )?

 It is ugly and it is a workaround for a problem that should be solved
 outside of FFmpeg.  Should every project using llrint add that
 workaround?  No, Cygwin should be fixed.

Fair enough.  I agree that it's ugly, but ultimately it's your call --
whether you want your project to compile on Cygwin or whether you want to
require the feature that's missing and accept that Cygwin compilation will
be broken for a while.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: llrint implementation in Cygwin

2007-09-28 Thread Igor Peshansky
On Fri, 28 Sep 2007, Diego Biurrun wrote:

 Tim Prince wrote:
  Diego Biurrun wrote:
 
   I have noticed that Cygwin does not implement llrint.  However,
   llrint is part of C99 and not having it available makes some
   applications (for example MPlayer and FFmpeg) fail to compile.
  
   Are there any plans to implement llrint (in the near future)?
 
  Perhaps if you would submit a patch to newlib, something may happen.

 Telling me what newlib is would greatly help in this regard :-)

Newlib is the library that Cygwin uses for some standard functions (math
and otherwise).

(The only way to interpret this question is what is the connection
between newlib and Cygwin, as a quick Google would have pointed you to
the newlib webpage).

  It's not difficult to back-port stand-alone from recent gcc if you
  don't want to wait for cygwin to include a gcc upgrade, about which
  there have been plenty of threads here.

 Do I understand correctly that Cygwin will provide llrint with the next
 gcc upgrade?

Yes, but it won't happen for a while.

 I understand that adding llrint to Cygwin is probably not hard at all
 for somebody familiar with Cygwin.  However, I am not such a person and
 I don't even have a Windows environment around to test any modifications
 I might make.

 We are about to make an MPlayer release and unfortunately it will not
 compile on Cygwin due to the missing llrint.  I would appreciate to know
 if this is going to get addressed so that I can put an appropriate
 comment in the release notes.

What's wrong with adding llrint to your code (perhaps with a #define,
i.e.,

#define llrint my_llrint
typeof(llrint) my_llrint(...) { ... }

)?
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: MATLAB mexFunction() with Cygwin GCC Windows

2007-09-26 Thread Igor Peshansky
On Wed, 26 Sep 2007, Boyd Edmondson wrote:

 I have successfully built/linked MATLAB mex files on Windows using GCC
 in Cygwin.  Unfortunately, it has a runtime error.  It appears the error
 is due to mismatched calling coventions for parameter passing.  The
 MATLAB interpreter successfully invokes the mexFunction() in my shared
 library (.mexw32), but the passed parameters are corrupted.

 I've tried GCC's attribute to set the mexFunction() to cdecl,
 stdcall, and fastcall, but still no luck.

 Anyone know the solution?

 Details follow:

 MATLAB mexopts.bat
 =
 [snip]
 set COMPILER=gcc
 set COMPFLAGS=-mno-cygwin -D_WIN32 -shared -DMATLAB_MEX_FILE -Wall -c -msse3 
 -I%ProgramFiles%\Pthreads\include -I%ProgramFiles%\Verasonics\Hal\Hal 
 C\Includes -o%MEX_NAME%.obj
^^^
 set LINKER=gcc
 set LINKFLAGS=-mno-cygwin -D_WIN32 -shared -DMATLAB_MEX_FILE -nostartfiles 
 -L%ProgramFiles%\Verasonics\Hal\Hal C\Shared Libraries 
 -lverasonicshalwindows -L%ProgramFiles%\MATLAB\R2007a\bin\win32 -lmat -lmex 
 -lmx
^^^
See the underlined portions above.  You're not using the Cygwin gcc,
you're really using the MinGW gcc that understands Cygwin paths.  So
you're better off asking on the MinGW 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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert
--
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: configuration problem: ssh working but not sftp

2007-09-26 Thread Igor Peshansky
On Wed, 26 Sep 2007, Charles D. Russell wrote:

 Why does ssh work but not sftp?   What is wrong with my configuration?
 sftp works OK in the other direction, from sony06 to dell03.

 [EMAIL PROTECTED] ~/cygarc
 $ sftp sony06
 Connecting to sony06...
 Received message too long 1920298606

 [EMAIL PROTECTED] ~/cygarc
 $ ssh sony06
 Last login: Wed Sep 26 20:05:06 2007 from dell03
 Fanfare!!!
 You are successfully logged in to this server!!!

When you connect via ssh, you get a login shell.  When you connect via
sftp, you get a non-login shell, which communicates with the sftp command
via standard output.  Make sure your non-login shell doesn't print
anything (say, from .bashrc).

FWIW, 1920298606 in hex is 72756E6E (which also spells runn).
Coincidence? ;-)
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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 -c without exiting

2007-09-25 Thread Igor Peshansky
On Tue, 25 Sep 2007, patrickinminneapolis wrote:

 I'd like to drop to the current directory like this,

 bash --login -i -c 'Drop to current directory'

 without exiting cygwin. Thanks.

Not Cygwin-specific.  Try

bash --login -i -c 'cd /tmp  exec 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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Duplicating Cygwin installations on multiple machines

2007-09-21 Thread Igor Peshansky
On Fri, 21 Sep 2007, Vechinski, Douglas A. wrote:

 I have downloaded all of the cygwin packages to a local machine and will
 install it, choosing what packages I do or don't want.   I would then
 like to it on several other users machines with the same packages I
 chose on the original machines.  I looking for a way to do this without
 having to manually repeating selecting/deselecting the appropriate
 packages during setup.

One simple way is to create a local package server with just one empty
package on it.  Put that package in the Base category, and make it
depend on all the packages you wish to be downloaded automatically.
Add the local package server to the mirror list in setup, and it'll make
your wish come true.

See http://sourceware.org/cygwin-apps/package-server.html for
instructions on creating a package server.

Note that you don't actually have to store all of the packages locally --
setup can handle mutliple mirrors just fine, and will pull in the needed
packages according to the dependences you specify.
Igor
P.S. For the setup developers: perhaps we should allow the file:// URLs
in the mirror list, just so you don't have to run Apache for something
that simple...
-- 
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Is there someone offering cygwin paid support?

2007-09-20 Thread Igor Peshansky
On Thu, 20 Sep 2007, Christopher Faylor wrote:

 On Thu, Sep 20, 2007 at 03:08:55AM -0600, Warren Young wrote:
 Will Parsons wrote:
 why would cygwin be less secure?
 
 The more moving parts, the more things there are to break.
 
 Postulate that you have a program that's been audited to the point that
 you're absolutely certain it's 100% secure when run on Linux.
 
 Then you port it to Cygwin.  Is it secure?  The answer cannot be Yes
 until you have also audited Cygwin itself to the same level of
 assurance.
 
 Just one way it could fail is if there is a buffer overflow in the
 implementation of one of Cygwin's interfaces, and your 100% secure
 program calls it.  It's then only a matter of time for a skilled hacker
 to turn that buffer overflow into an arbitrary code execution
 vulnerability.  At minimum, the hacker will then have the privileges of
 the program.  Once the hacker has local access, chances are good that
 he can parlay that into a privilege escalation attack, and it's Game
 Over for you.
 
 Security is hard.

 I don't think I've given out a gold star for a clear explanation in a
 long time but can we get one over here?

Certainly: http://cygwin.com/goldstars/#WY.
Igor
P.S. I also owe quite a few to folks on the cygwin-apps list...
-- 
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Passing arguments to rxvt when it is used as an argument for chere

2007-09-19 Thread Igor Peshansky
On Wed, 19 Sep 2007, Brian Mathis wrote:

 On 9/19/07, Richard Toy [EMAIL PROTECTED] wrote:

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

  Hi
 
  I don't tend to run an xserver so rxvt runs in native mode when
  invoked via chere.
 
  All was working ok but then an issue described here
  http://cygwin.com/ml/cygwin/2007-09/msg00359.html occurred so I needed
  some was to make the chere invoked rxvt appear with the correct font.
 
  I solved it with a bit of sed: -
 
  $ cat chere.sh
  chere -ipcf2 -t rxvt -s bash | sed 's! -e /bin! -fn \\Lucida\
  Console-bold-12\\ -rv -ls -sb -sr -tcw -sl 3000 -e /bin!' 
  /tmp/$$.sh
  chmod 755 /tmp/$$.sh
  /tmp/$$.sh
  rm /tmp/$$.sh
 
  Regards
  Richard
 

 In native mode, rxvt still uses the .Xdefaults file to read settings.
 Here's what I'm using right now with it:

 rxvt*foreground: gray
 rxvt*background: black
 rxvt*geometry: 132x50
 rxvt*saveLines: 1000
 rxvt*scrollBar: true
 rxvt*scrollBar_right: true
 rxvt*loginShell: true
 rxvt*font: DejaVu Sans Mono-13

 I'm sure sed is fun, but there's already a more elegant solution to
 your problem.

The .Xdefaults solution will affect all instances of rxvt, not just the
one spawned by chere.  There is a way to distinguish those instances by
name, but then you'd still need to at least set the name, which means
passing arguments via chere.  This is also a reply to Dave (the chere
maintainer) regarding why someone would want to pass arguments to rxvt.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: executing an executable

2007-09-17 Thread Igor Peshansky
On Sun, 16 Sep 2007, Cole Radcliffe wrote:

 I do an ls -la and I see I have an executable called executable.exe.
 I chmod to 777. Then I try to type execut and I press tab and it
 does not find it. When I type in the entire name and press enter, bash
 says the command is not found! It works fine on cygwin-x.

The FAQ is your friend:
http://cygwin.com/faq/faq.using.html#faq.using.not-found.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: sftp removing writable bit

2007-09-16 Thread Igor Peshansky
On Sat, 15 Sep 2007, Robert Kiesling wrote:

  [snip]
 
  Cygwin Content-O-Meter(tm), as of a few dozen posts in this thread ago:
 
  +---+
  | 0%   100% |
  | \ |
  |  \|
  |   \   |
  |O  |
  +---+

 Neat.  Where can I download one of those?

At http://cygwin.com/ml/cygwin/2007-09/msg00358.html.  Just copy and
paste.  Of course, it'll always show 0%, but what do you expect from
release 0.01?  I'm sure that the bug will be fixed in later versions.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: reinstallation fail: cygwin1.dll not found

2007-09-14 Thread Igor Peshansky
On Fri, 14 Sep 2007, Zhen Cao wrote:

 I have installed cygwin on the folder D:\cygwin, and it is okay but
 I have forgot to install make. Maybe a mistake to delete all the
 contents in D:\cygwin, but unfortunately I did.

 After I reinstall cygwin from scratch (also in d:\cygwin), I cannot
 use the shortcut on the desktop and it reported that cygwin1.dll not
 found, Then I managed to download it into d:\cygwin\bin\ but it
 reported cygintl-8.dll not found, 

 How to fix this? Thanks for any suggestions.

Hard to say without more information, as requested in

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

but I suspect you have stale mounts from your previous install.  See where
your mounts point to by running the mount command.  Then run
mount -sf d:/cygwin /; mount -sf d:/cygwin/bin /usr/bin; mount -sf
d:/cygwin/lib /usr/lib and reinstall.  You can then remove the old tree...

 btw: the setup.exe is latest one.

Latest with respect to what?  An exact version number would be much more
informative.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: [ITP] mksh-R31b-1 -- Enhanced version of the Korn shell

2007-09-13 Thread Igor Peshansky
On Thu, 13 Sep 2007, Christopher Faylor wrote:

 On Thu, Sep 13, 2007 at 09:52:39AM -0400, Igor Peshansky wrote:
 On Thu, 13 Sep 2007, Christopher Faylor wrote:
 
  On Thu, Sep 13, 2007 at 10:56:41AM +0200, Dr. Volker Zell wrote:
   Jari Aalto writes:
  
   Included in Debian stable (etch). This is nice lighweight
   almost-bash-like shell.
  
 http://packages.debian.org/mksh
  
   Jari
  
   sdesc: Enhanced version of the Korn shell
   ldesc: A shell which is MirBSD enhanced version of the Public 
   Domain
   Korn shell (pdksh), a bourne-compatible shell which is largely 
   similar to the
   original ATT Korn shell. It includes bug fixes and feature
   improvements in order to produce a modern, robust shell good for
   interactive and especially script use.
   category: Shells
   requires: cygwin
  
   a) manual
  
 wget\
   http://cygwin.cante.net/mksh/setup.hint \
   http://cygwin.cante.net/mksh/mksh-R31b-1-src.tar.bz2
  
  Binary package missing.
 
  I wasn't paying attention.  Do we really want two versions of ksh in the
  distribution?
 
  I'd say this was Igor's call.
 
 We've had this discussion before.  The last message was
 http://cygwin.com/ml/cygwin-apps/2006-05/msg00024.html, which never got
 a reply.

 I thought I remembered something like this.

 Let's not bother with mksh then.

Actually, let's hope that this time Jari answers my questions...  As I
said, if mksh is a full (and fully compatible) replacement for pdksh, I'm
in favor of getting the newer package into the distro.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert


Re: [ITP] mksh-R31b-1 -- Enhanced version of the Korn shell

2007-09-13 Thread Igor Peshansky
On Thu, 13 Sep 2007, Jari Aalto wrote:

  Actually, let's hope that this time Jari answers my questions...  As I
  said, if mksh is a full (and fully compatible) replacement for pdksh

 To my knowledge, it is. If someone has *.ksh files to try, please
 download and install that binary package and see it the mksh handles
 them.

Hmm, you seem to be contradicting that below...

 The developer is active and responsive.

  I'm in favor of getting the newer package into the distro. Igor

 According to:

 http://cygwin.com/ml/cygwin-apps/2006-05/msg00024.html

 The bug reports:

 http://cygwin.com/ml/cygwin/2004-08/msg00112.html [1]
 http://cygwin.com/ml/cygwin/2005-06/msg00202.html [2]
 http://cygwin.com/ml/cygwin/2005-08/msg01382.html [3]
 http://cygwin.com/ml/cygwin/2006-02/msg00448.html [4]

 They are not very clear, but I tried my best to reproduce.

 [1] Multiple sourcing of initializations files.

 The script that fails sources another script which loads a whole
 bunch of functions.

 The error happens when I call a function from a certain script, I
 get this error. However, if I call it from a smaller script
 (specially written to just call this function) it works

 Not a problem under mksh. Multiple sourced files; function work. That is

This sentence seems truncated.  In any case, the bug report was too vague,
and I haven't had the time to investigate.

 [2] Memory allocation error

 /home/tbaker/u/bin/urlists[50]: internal error: alloc: freeing
  memory outside of block (corrupted?)

 By running the scripts in debug mode (set -x), I found that
 the problem seemed to occur when declared functions (i.e.,
 declared within the script) were invoked multiple times.
 The functions would work at first, then stop working --
 as if the functions somehow ate up the available memory.

 I invoked function 1000 times in a loop, no malloc errors.

I have a testcase for this one (attached).  This has nothing to do with
functions.  I think it's a matter of not handling long filenames properly
(an off-by-one error?).

 [3] Prompt which gets repeated if it's multiline

 keying ESC/ results in 

 WS-XP-4960: /home/rthompso
 WS-XP-4960: /home/rthompso
 WS-XP-4960: /home/rthompso
 $ /

 Not applicaple. ESC-/ key combination doe snot exist in mksh.
 Multiline prompts work without promlems.

Sure it exists.  You have to set -o vi first.  But this one I can't
reproduce in the current pdksh, either.

Also, this one was #4 -- you missed #3, which was about tab completion and
quoting spaces and special characters (which is reproducible).

Since we're testing known issues, here's another one I missed:
http://cygwin.com/ml/cygwin/2005-01/msg00073.html.  Again, reproducible
in current pdksh.

Anyway, I don't mind a test release of this -- if people find no problems
with their ksh scripts, we can switch over to mksh (and switch the
maintainership over to you).
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert#!/usr/bin/ksh
mkdir -p 
./A_Long_Name/A_Long_Name/A_Long_Name/A_Long_Name/A_Long_Name/A_Long_Name
function main
{
  set -x
  echo 1 
./A_Long_Name/A_Long_Name/A_Long_Name/A_Long_Name/A_Long_Name/A_Long_Name/A_Long_Name.txt
}
main



Re: Private key file permissions w/Cygwin OpenSSH on Vista

2007-09-13 Thread Igor Peshansky
On Thu, 13 Sep 2007, sbeavan wrote:

 Not sure if you are having the exact same issue I had, but I couldn't chmod
 the files in cygwin either.  Then I realized my home directory was on a
 windows share.  I was able to cp the files to my local drive and chmod them,
 but the changes disappeared when moving the files back to the home
 directory.  To change my home directory to a local path I ran the following
 command
 mkpasswd -l -c -p /home
 this made my home directory in the local /home
 once this was done I mv all files from the old network share to the local
 and chmoded them appropriately and was able to use my ssh with rsa keys
 fine.

What you wanted was smbntsec (see
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html).
Igor

 Brian Dessent wrote:
 
  Siva wrote:
 
  Re:  binary distro of OpenSSH 3.8.1p1
 
  If this is a reply to a previous message then please send it as an
  actual reply, don't start a new thread.  Otherwise, you break threading
  in the archives and for anyone using a threaded email client.
 
  I've been unable to use Cygwin's OpenSSH on Vista w/public key
  authentication because ssh.exe always states the file permissions on the
  private key file--id_rsa--are too open.
 
  I've used the chmod.exe utility to change the permissions on the id_rsa
  file to 600, but ssh.exe still pops up with the same error message.
 
  I've also used Windows' cacls.exe command to alter the ACLs for the file
  to be ONLY read-accesible to the current user, and the same thing
  happens.
 
  This behavior DOES NOT occur on XP and 2000 when I try it, i. e.
  chmod.exe WORKS on these OSs to change id_rsa's permissions so that
  ssh.exe is happy (i. e. to 0600).
 
  Is there a specific bona-fide way to set the id_rsa file's permission to
  always be acceptable to Cygwin SSH on Vista, in addition to the other
  Windows OSs?
 
  I can't reproduce this.  I just tried using a stock Cygwin 1.5.24 and
  OpenSSH 4.6p1-1 under Vista and it worked fine.  The default permissions
  set on the private keyfile by ssh-keygen worked without any fiddling.
 
  $ ls -l .ssh/id*
  -rw--- 1 brian None 1675 Jun 29 19:20 .ssh/id_rsa
  -rw-r--r-- 1 brian None  393 Jun 29 19:20 .ssh/id_rsa.pub
 
  So, I think you're going to need to give us a lot more information about
  your config, starting with the cygcheck output as requested at
  http://cygwin.com/problems.html.  It would also be good to know why
  you're trying to use this very old version of OpenSSH, which might mean
  that your version of Cygwin is ancient too.
 
  Brian

-- 
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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 suggestion + patch

2007-09-13 Thread Igor Peshansky

On Thu, 6 Sep 2007, Lewis Hyatt wrote:


Hello-

Firstly, thanks to everyone who has worked on setup.exe, it's really a
very convenient program! There is just one thing that has always
bothered me, which is that you have to click repeatedly on the package
or category to cycle through all the available actions to find the one
you want. The main problem is that each click causes the dependencies to
be recalculated, which can cause annoying slowdowns if you're trying to
do something like uninstall all packages in a large category. There is
also the following situation which occurs often, especially when you are
playing around with installing and uninstalling new packages:

-package A requires package B
-package A has two available versions
-package B appears before package A in the list

Now suppose A and B are both installed, and you want to uninstall them.
Since B appears first, you click through to uninstall, no problem. Now
you scroll down, maybe several pages away, and try to uninstall package
A. The first time you click, though, you end up on the Prev version,
which then calculates that it needs package A and goes back and sets
package A to Install again. The only way to uninstall both of them is to
uninstall B first, and then A. When there are multiple dependencies
involved, it can quickly get impossible to get setup to do what you
want.

The simplest way I could think of to correct this would be to change the
behavior so that when you click on a Category or a Package, instead of
simply cycling through, you get a little popup menu that asks you what
you want to do instead. This way, you can go directly to Uninstall
without dealing with the intervening options. This also lets you see all
available versions at once, and avoids calculating dependencies
unnecessarily.

I wrote a simple patch that implements this suggestion. Attached are the
outputs of cvs diff (in diff.txt) and cvs diff -n (in diff_n.txt). (I'm
sorry, I don't know much about CVS, is this the preferred way to submit
a patch?). Here is a summary of the changes:

-Created new class PopupMenu in PopupMenu.{h,cc}, which makes a popup
menu at the mouse cursor location and returns the selected item.

-Added #define to resource.h for use by PopupMenu. For now, it just
reserves 100 IDs, supporting arbitrary popup menus with up to 100
entries. (The number 100 is easily configurable in resource.h.)

-Modified PickCategoryLine to open the menu instead of cycling.

-Added new function select_action() to the packagemeta class, which
implements the menu selection. For now, this is done in an extremely
quick and dirty way that simple calls set_action() repeatedly to figure
out which options would have been cycled through. I would be willing to
re-do this in a more efficient way if this patch is deemed useful, but I
don't even think that's necessary, I think it's fine to do it this way
which reuses the already bug-tested code in set_action().

-Modified PickPackageLine to call select_action() instead of
set_action() when the line is clicked.

-Made some minor changes to packagemeta::_action to expose the category
strings as part of the public interface, so they could be reused in the
popup menu.

Anyway I hope this is useful, if this patch isn't acceptable please let
me know and I can fix it or change it. I wasn't sure about conventions
with tabs, line endings, line lengths, etc., for one thing. In general,
I think the problem I have described requires fixing. If you don't think
this solution is an improvement, I can look into fixing it a different
way also.


First off, thank you for the popup menu implementation -- I was planning
to use it for something else in setup, and now I don't have to write it.

Second, I agree that the problem is good, and I like your solution of
selection vs. cycling.

Third, I have to apologize -- I've had a partial reply to your message
sitting in my drafts since the day you sent it, but got bogged down.

A few comments on the patch:
1) It would be great if you used diff -up -- unified diffs are so much
easier to read.
2) Is there a reason you use popup menus, rather than pull-down lists?
3) [Minor] You'd use the GNU coding guidelines for whitespace and
indentation.

If you could resend a unified diff, I'll apply it in my tree and test it
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Threading issue in cygwin python 2.5.1-2 ?

2007-09-06 Thread Igor Peshansky
On Wed, 5 Sep 2007, Steve Holden wrote:

   Running the example on the above Python system I just see the command
   prompt return with no program output whatsoever:
  
   [EMAIL PROTECTED] ~/Projects/Python
   $ /usr/bin/python test03.py
 
  So it fails, but doesn't bring up the exception dialog.

 That's right: nothing at all. But note I compiled this particular version
 myself, so I guess it's possible I didn't enable threads.

What's the exit code?  The behavior sounds suspiciously like a missing DLL
case...
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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: Passing domain credentials for a non-domain machine (similar to mapping drives through the Windows shell)

2007-09-05 Thread Igor Peshansky
On Wed, 5 Sep 2007, Joseph Koenig wrote:

 I have a desktop that I use to access a share with domain credentials
 despite not being on domain. So when I map a drive, I map it under
 domain\user and give it the password. This drive is mapped as Z.

 When I use cygwin to work on those files, it does not inherit the
 permissions that I mapped the network drive under and instead insists on
 using my local windows user and password (generated with mkpasswd)
 rather than what I mapped Z as.

You want to add smbntsec to your CYGWIN environment variable.  See
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html for details.

 Is there an easy way to manually edit the /etc/passwd file or change how
 cygwin reads the mapped volume to get it to use the same permissions
 that the windows shell is using?

You'll also want to use mkpasswd -d  /etc/passwd to get domain user
information into it, and possibly mkgroup -d  /etc/group (notice the
double  to append).

 (I searched the archives for thisI'm sure it's been answered but I
 couldn't find anything - I apologize)

It also helps to read and follow

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

in particular the bit about attaching the output of cygcheck -svr.
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!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
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/



  1   2   3   4   5   6   7   8   9   10   >