Re: Two short scripts for Cygwin-Windows interoperation

2007-01-08 Thread Corinna Vinschen
On Jan  7 21:21, Christian Franke wrote:
> Corinna Vinschen wrote:
> >http://cygwin.com/acronyms/#PTC
> >http://cygwin.com/acronyms/#SHTDI
> >
> >Come on, what did you expect? ;)
> 
> Hmm...at least some info whether such a patch would be accepted.
> (I don't want to do patches which need many iterations or end up in 
> /dev/null ;-)

Christian, you have a Cygwin assignment in place, you have contributed
two patches to Cygwin already.  Why would you think I wouldn't take this
patch if it gets offered and looks ok?  Looks good, btw.

However, this is a real patch and as such belongs on the cygwin-patches
mailing list.  Can you please resend it there?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: `setfacl -m u:jdoe:rwx foo` returns 0, but file not writable by jdoe??

2007-01-08 Thread Corinna Vinschen
On Jan  7 14:18, Tom Rodman wrote:
> On Sun 1/7/07 12:23 +0100 cygwin@cygwin.com wrote:
> > On Jan  5 13:34, Tom Rodman wrote:
> > >   setfacl -m u:jdoe:rwx foo
> > > 
> > > Above command returns 0 but jdoe can not write.  The cause appears to
> > > be that the windows RO file attribute is not unset by setfacl.
> > 
> > I see the point.  That old DOS R/O attribute is SO crappy on a file
> > system which supports real permissions.  Oh well...
> 
> theory - these 2 steps will make *any* windows NTFS file,
> no matter what it's owner, group,  perms, or file attributes are,
> writable by user "jdoe" (assuming it's not "in use"):
> 
>   setfacl -m u:jdoe:rwx foo 
> # running as administrator "jdoe"
>   cmd /c attrib -R foo 
> # setacl step above allows the 'attrib' to work for user "jdoe"
> 
> I appreciate the power in setfacl. :->

I've applied a patch to Cygwin yesterday which resets the R/O attribute
if one ACE sets write permission.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



NTSEC documentation

2007-01-08 Thread Corinna Vinschen
Is anybody here with a developer background, who likes writing
documentation?

If so, would this person be interested in revamping the NTSEC
documentation with my input?  It shows its age, my lacking knowledge of
the english language and it's also very strangly ordered.

In general, if somebody is interested in taking over maintainership
of the Cygwin documentation, now that Joshua is gone, we would be
really happy.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



RE: Where can I find the /usr/bin/tbl?

2007-01-08 Thread Dave Korn
On 08 January 2007 06:03, Yiran Guo wrote:

> Dave Korn  artimi.com> writes:
> 
>> 
>> On 08 January 2007 02:35, Yiran Guo wrote:
>> 
>>> My groff package doesn't include tbl.exe, is there anything wrong?
>> 
>>   Check it out by running " cygcheck -c groff".  It'll probably report that
>> it's incomplete; use setup.exe to reinstall it.
>> 
>> cheers,
>>   DaveK
> 
> 
> Dear Dave,
> 
> It seems groff is ok:
> 
> $ cygcheck -c groff
> Cygwin Package Information
> Package  VersionStatus
> groff1.18.1-2   OK
> 
> So odd.

  It is indeed.  What do you see from 

 cygcheck -l groff | grep tbl | xargs ls -la
 cygcheck -l groff | grep tbl | xargs file

  Once you've done that, try using setup.exe to reinstall groff from your
local package dir and see if it makes a difference.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: New procps-3.2.7 for upload

2007-01-08 Thread Angelo Graziosi


Corinna Vinschen wrote:

> Uploaded and 3.2.5-1 removed.


I want to flag that in setup.ini 20070108 10:00 there is:


@ procps
...
version: 3.2.6-1
install: release/procps/procps-3.2.6-1.tar.bz2 170177
dbc3131ad02f6fc111d568f160c853d2

source: release/procps/procps-3.2.6-1-src.tar.bz2 231937
9f1d652bd9517bd8ac3f429b73914151

but perhaps, we need to change 6 --> 7.



Cheers,

   Angelo.


--
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: help win winxp install

2007-01-08 Thread Sam The Cat

ok -- I accept that my sol'n was not optimal but how do I accomplish what
you suggesting ?  On the web site I see there 5 versions of the
interntionalization library but on the setup tool where I specify what
package to isntall I am only given the option for the latest.  How do I
install a package that I need that setup does not offer me ?


- Original Message - 
From: "Larry Hall (Cygwin)" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, January 06, 2007 9:37 PM
Subject: Re: Fw: help win winxp install



Sam The Cat wrote:

figure this one out  (I think)

the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll" 
this could not be found.  I did find "cygintl-8.dll" which shows 
modification as of 10/22/2006.  Not sure if it is a complete fix but I 
copied the "cygintl-8.dll" file and renamed it "cygintl-3.dll" and the 
gcc now passes a rudementaly hello.c complile.





That's a truly terrible way to solve your problem.  A better way would 
have

been to consult  to find the package you were
missing (libintl3) and install it.  I recommend you do that immediately if
you don't want to suffer from more problems as a result of your attempt
above.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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






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



How to resolve hiccups by patch program?

2007-01-08 Thread Markus Elfring
Hello,

I published the file "const4.patch" 
(http://bugs.digium.com/file_download.php?file_id=12617&type=bug) to fix 
something for the issue "Improve const-correctness" 
(http://bugs.digium.com/view.php?id=8160). Unfortunately, some errors were 
reported for this patch file. There are parts that are acceptable as it can be 
seen from the log "bug 8160 const4 patch results.txt". So I extracted a 
conflicting part by the splitdiff command.

I've got this annoying issue with the tool (version 2.5.9):
$ patch -r test8160.rej app_db.c const4.patch.part010
patching file app_db.c
Hunk #1 FAILED at 49.
1 out of 1 hunk FAILED -- saving rejects to file test8160.rej

Why are the appropriate places for the intended updates not found in the source 
code?
Do I overlook anything from the specified rules that results into the 
unexpected mismatch?
http://opengroup.org/onlinepubs/007908799/xcu/patch.html#tag_001_014_1662_003

I assume that I am not affected by wrong line endings as it was suggested for 
the topic 'Is "Patch" broken?'.
http://sourceware.org/ml/cygwin/2004-04/msg00334.html

Is the conclusion from the topic "Where is patch?" relevant in my case?
http://sourceware.org/ml/cygwin/2005-12/msg00678.html

Would you like to share your ideas in other discussions?
http://thread.gmane.org/gmane.comp.version-control.subversion.tortoisesvn.user/5180/focus=5180
http://sources.redhat.com/ml/patchutils-list/2007-q1/index.html#0

Regards,
Markus


smime.p7s
Description: S/MIME Cryptographic Signature


RE: How to resolve hiccups by patch program?

2007-01-08 Thread Dave Korn
On 08 January 2007 10:58, Markus Elfring wrote:

> Hello,
> 
> I published the file "const4.patch"
> (http://bugs.digium.com/file_download.php?file_id=12617&type=bug) 

> I assume that I am not affected by wrong line endings as it was suggested
> for the topic 'Is "Patch" broken?'. 
> http://sourceware.org/ml/cygwin/2004-04/msg00334.html

  I think you are, since your patch has CRLF line ends.  If you're using
Tortoise, it's probably auto-mangling the line-ends for you.  It likes to be
"helpful" like that, but what you actually tend to end up with is a working
tree that isn't interoperable with cygwin.

  Does running d2u over the rejected hunk fix your problem?  Does generating
the patch by the commandline svn client under cygwin generate a patch in the
correct format for the patch utility under cygwin?

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: NTSEC documentation

2007-01-08 Thread Dave Korn
On 08 January 2007 10:19, Corinna Vinschen wrote:

> Is anybody here with a developer background, who likes writing
> documentation?
> 
> If so, would this person be interested in revamping the NTSEC
> documentation with my input?  It shows its age, my lacking knowledge of
> the english language and it's also very strangly ordered.

  I've got some spare tuits coming up, I can do that.  Got some notes/to-dos?

> In general, if somebody is interested in taking over maintainership
> of the Cygwin documentation, now that Joshua is gone, we would be
> really happy.

  I can't commit to that.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: NTSEC documentation

2007-01-08 Thread Corinna Vinschen
On Jan  8 12:29, Dave Korn wrote:
> On 08 January 2007 10:19, Corinna Vinschen wrote:
> 
> > Is anybody here with a developer background, who likes writing
> > documentation?
> > 
> > If so, would this person be interested in revamping the NTSEC
> > documentation with my input?  It shows its age, my lacking knowledge of
> > the english language and it's also very strangly ordered.
> 
>   I've got some spare tuits coming up, I can do that.  Got some notes/to-dos?

Oh cool, thanks!

I have some vague notes for a start:

- I wrote the NTSEC doc "going with the flow".  There are pointers to
  how things worked in 1.0 or changes made in Cygwin 1.1 or 1.3, which
  just don't make sense anymore.  One goal would be to rip these old
  version cruft out and give the document a structure more to the point
  how things actually work now, not how they worked 5 years ago.

- Same for the artificial difference between the chapters "New setuid
  concept" and "Switching User Context" which just doesn't make sense
  anymore.  There are two ways to switch user context, with and without
  external token and that's what should be said.

- Same for mentions of sexec which has been deprecated and ripped out
  five years ago.

- There's a bug in the "File permissions" chapter, third paragraph.
  The write_sd function doesn't use BackupRead, it used to use
  BackupWrite and then again, it doesn't use this function anymore,
  but instead the native NT call NtSetSecurityObject.

- The names of functions should be set as func,
  not by using single quotes.

- You could fix some bad wording resp. bad usage of SGML as you see fit.

Other than that, bug me in PM if you think something's maybe not correct
anymore.


Thanks in advance, I really appreciate that!
Corinna


-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: NTSEC documentation

2007-01-08 Thread Christopher Faylor
On Mon, Jan 08, 2007 at 02:53:30PM +0100, Corinna Vinschen wrote:
>On Jan  8 12:29, Dave Korn wrote:
>> On 08 January 2007 10:19, Corinna Vinschen wrote:
>> 
>> > Is anybody here with a developer background, who likes writing
>> > documentation?
>> > 
>> > If so, would this person be interested in revamping the NTSEC
>> > documentation with my input?  It shows its age, my lacking knowledge of
>> > the english language and it's also very strangly ordered.
>> 
>>   I've got some spare tuits coming up, I can do that.  Got some notes/to-dos?
>
>Oh cool, thanks!
>
>I have some vague notes for a start:
>
>- I wrote the NTSEC doc "going with the flow".  There are pointers to
>  how things worked in 1.0 or changes made in Cygwin 1.1 or 1.3, which
>  just don't make sense anymore.  One goal would be to rip these old
>  version cruft out and give the document a structure more to the point
>  how things actually work now, not how they worked 5 years ago.
>
>- Same for the artificial difference between the chapters "New setuid
>  concept" and "Switching User Context" which just doesn't make sense
>  anymore.  There are two ways to switch user context, with and without
>  external token and that's what should be said.
>
>- Same for mentions of sexec which has been deprecated and ripped out
>  five years ago.
>
>- There's a bug in the "File permissions" chapter, third paragraph.
>  The write_sd function doesn't use BackupRead, it used to use
>  BackupWrite and then again, it doesn't use this function anymore,
>  but instead the native NT call NtSetSecurityObject.
>
>- The names of functions should be set as func,
>  not by using single quotes.
>
>- You could fix some bad wording resp. bad usage of SGML as you see fit.
>
>Other than that, bug me in PM if you think something's maybe not correct
>anymore.

Would this be a good use of the #cygwin-developers channel at freenode.net?

cgf

--
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: [Packaging Bug ?] Re: [ANNOUNCEMENT] Updated: git-1.4.4.3-1

2007-01-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Dr. Volker Zell on 1/7/2007 5:58 AM:
> This is the contents of 
> /usr/lib/perl5/vendor_perl/5.8/cygwin/auto/Git/.packlist:
> 
> /usr/lib/perl5/vendor_perl/5.8/Git.pm
> /usr/lib/perl5/vendor_perl/5.8/Error.pm
> /usr/lib/perl5/vendor_perl/5.8/Git.pm
> 
> but the /usr/lib/perl5/vendor_perl/5.8/Error.pm is missing.
> It used to be there in the previous version. Is this a packaging bug ?

Thanks for the heads up.  I'll look into it as part of packaging the
just-released git-1.4.4.4.  I'm hoping that the upgrade to cygport 0.2.7
will help here, too.

Another thing I have to resolve is why hard links aren't being preserved -
when I build git myself, 59 files git-*.exe get hardlinked together
(explainable since "git foo" and "git-foo" do the same thing, so the first
thing that git does is decode argv[0] to decide whether the dash was
present on the command line).  But after cygport gets done with things, I
have 59 identical, but separate, binaries.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
volunteer cygwin git maintainer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFok+L84KuGfSFAYARAp7tAJ9hKyVJMwt6s2LDXAGUhMH4+8Ky7wCghfYF
fKI3ptKS7ZLB1jubV3wMeKs=
=CxRC
-END PGP SIGNATURE-

--
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: NTSEC documentation

2007-01-08 Thread Corinna Vinschen
On Jan  8 08:59, Christopher Faylor wrote:
> On Mon, Jan 08, 2007 at 02:53:30PM +0100, Corinna Vinschen wrote:
> >On Jan  8 12:29, Dave Korn wrote:
> >> On 08 January 2007 10:19, Corinna Vinschen wrote:
> >> 
> >> > Is anybody here with a developer background, who likes writing
> >> > documentation?
> >> > 
> >> > If so, would this person be interested in revamping the NTSEC
> >> > documentation with my input?  It shows its age, my lacking knowledge of
> >> > the english language and it's also very strangly ordered.
> >> 
> >>   I've got some spare tuits coming up, I can do that.  Got some 
> >> notes/to-dos?
> >
> >Oh cool, thanks!
> >
> >I have some vague notes for a start:
> >
> >- I wrote the NTSEC doc "going with the flow".  There are pointers to
> >  how things worked in 1.0 or changes made in Cygwin 1.1 or 1.3, which
> >  just don't make sense anymore.  One goal would be to rip these old
> >  version cruft out and give the document a structure more to the point
> >  how things actually work now, not how they worked 5 years ago.
> >
> >- Same for the artificial difference between the chapters "New setuid
> >  concept" and "Switching User Context" which just doesn't make sense
> >  anymore.  There are two ways to switch user context, with and without
> >  external token and that's what should be said.
> >
> >- Same for mentions of sexec which has been deprecated and ripped out
> >  five years ago.
> >
> >- There's a bug in the "File permissions" chapter, third paragraph.
> >  The write_sd function doesn't use BackupRead, it used to use
> >  BackupWrite and then again, it doesn't use this function anymore,
> >  but instead the native NT call NtSetSecurityObject.
> >
> >- The names of functions should be set as func,
> >  not by using single quotes.
> >
> >- You could fix some bad wording resp. bad usage of SGML as you see fit.
> >
> >Other than that, bug me in PM if you think something's maybe not correct
> >anymore.
> 
> Would this be a good use of the #cygwin-developers channel at freenode.net?

YES!


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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 resolve hiccups by patch program?

2007-01-08 Thread Igor Peshansky
On Mon, 8 Jan 2007, Dave Korn wrote:

> On 08 January 2007 10:58, Markus Elfring wrote:
>
> > Hello,
> >
> > I published the file "const4.patch"
> > (http://bugs.digium.com/file_download.php?file_id=12617&type=bug)
>
> > I assume that I am not affected by wrong line endings as it was suggested
> > for the topic 'Is "Patch" broken?'.
> > http://sourceware.org/ml/cygwin/2004-04/msg00334.html
>
>   I think you are, since your patch has CRLF line ends.  If you're using
> Tortoise, it's probably auto-mangling the line-ends for you.  It likes
> to be "helpful" like that, but what you actually tend to end up with is
> a working tree that isn't interoperable with cygwin.
>
>   Does running d2u over the rejected hunk fix your problem?  Does
> generating the patch by the commandline svn client under cygwin generate
> a patch in the correct format for the patch utility under cygwin?

And, of course, as the message you referenced suggests, try "patch -l" and
see if that helps.
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!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
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: NTSEC documentation

2007-01-08 Thread Dave Korn
On 08 January 2007 14:12, Corinna Vinschen wrote:

> On Jan  8 08:59, Christopher Faylor wrote:
>> On Mon, Jan 08, 2007 at 02:53:30PM +0100, Corinna Vinschen wrote:

>>> 
>>> Other than that, bug me in PM if you think something's maybe not correct
>>> anymore.
>> 
>> Would this be a good use of the #cygwin-developers channel at freenode.net?
> 
> YES!

  It's not going to happen today, probably in the next couple of days; I'll
get a first draft done so I've got an idea what I need to know before I come
bother anyone in channel.

  (Plus I don't have any irc software installed...)

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



IRC client (Was RE: NTSEC documentation)

2007-01-08 Thread Igor Peshansky
On Mon, 8 Jan 2007, Dave Korn wrote:

>   (Plus I don't have any irc software installed...)

FYI, naim comes with an IRC client (called 'nirc').
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!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
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: help win winxp install

2007-01-08 Thread Larry Hall (Cygwin)

 - reformatted.

Sam The Cat wrote:
- Original Message - From: "Larry Hall (Cygwin)" 
 cygwin  com>

To:  cygwin  com>

  ^^
.  No need to feed the spammers.


Sent: Saturday, January 06, 2007 9:37 PM
Subject: Re: Fw: help win winxp install



Sam The Cat wrote:

figure this one out  (I think)

the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll" 
this could not be found.  I did find "cygintl-8.dll" which shows 
modification as of 10/22/2006.  Not sure if it is a complete fix but 
I copied the "cygintl-8.dll" file and renamed it "cygintl-3.dll" and 
the gcc now passes a rudementaly hello.c complile.





That's a truly terrible way to solve your problem.  A better way would 
have
been to consult  to find the package you 
were
missing (libintl3) and install it.  I recommend you do that 
immediately if

you don't want to suffer from more problems as a result of your attempt
above.


> ok -- I accept that my sol'n was not optimal but how do I accomplish what
> you suggesting ?  On the web site I see there 5 versions of the
> interntionalization library but on the setup tool where I specify what
> package to isntall I am only given the option for the latest.  How do I
> install a package that I need that setup does not offer me ?
>


Try another mirror.   showed me the libintl,
linintl1, libintl2, libintl3, and libintl8 packages.  As long as you
can find the package at , there's going to
be at least one mirror out there with the package in question.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: CR/LF problems after upgrade

2007-01-08 Thread Eramo, Mark
I have the same problem and I set this under the Windows System
Variables as well as in the Cygwin shell window but neither worked. 

I use tsch as opposed to bash. Is there something different that needs
to be set in this shell? 

- Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of DePriest, Jason R.
Sent: Friday, January 05, 2007 5:21 PM
To: cygwin@cygwin.com
Subject: Re: CR/LF problems after upgrade

On 1/5/07, fschmidt  wrote:
> Okay, how can I set SHELLOPTS before invoking bash?  I tried it in the
> /etc/profile but that didn't work.
>
> --

You admit to not understanding or wanting to understand Unix.  What
about Windows?

It took me less than 60 seconds to figure this one out.

Create a new Windows System Environment variable called SHELLOPTS and
set it to igncr.

When you run cygwin's bash, it will keep that value and add the others
in.

Depending on your network structure, you can automate this across all
of the other dev's systems with a login script, AD GPO, or even a
locally run script that access their registries remotely assuming you
have admin.

-Jason

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



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



Re: Two short scripts for Cygwin-Windows interoperation

2007-01-08 Thread Christian Franke

Corinna Vinschen wrote:

On Jan  7 21:21, Christian Franke wrote:
  

Corinna Vinschen wrote:


http://cygwin.com/acronyms/#PTC
http://cygwin.com/acronyms/#SHTDI

Come on, what did you expect? ;)
  

Hmm...at least some info whether such a patch would be accepted.
(I don't want to do patches which need many iterations or end up in 
/dev/null ;-)



Christian, you have a Cygwin assignment in place, you have contributed
two patches to Cygwin already.  Why would you think I wouldn't take this
patch if it gets offered and looks ok?  


I didn't think so, only did not expect "... what did you expect? ;-)" ;-)



Looks good, btw.
  


OK, thanks.


However, this is a real patch and as such belongs on the cygwin-patches
mailing list.  Can you please resend it there?
  


Yes, wrong list, sorry. Done.

Christian


--
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: can't start sshd

2007-01-08 Thread Charles D. Russell
Windows event log shows only information events (id 0) from sshd, but  
/var /log/sshd.log showed:


/var/empty must be owned by root and not group or world-writable

Presumably that is my problem, since ls shows:

drwxr-xr-x+  2 cdr None  0 Jan  6 13:48 empty/

The simple hack of disabling privilege separation has given me a working 
system, which I am not  inclined to monkey with, but if I have problems 
in the future I'll pursue this track.  Thanks for the advice.




--
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: can't start sshd

2007-01-08 Thread Chris Sutcliffe

The simple hack of disabling privilege separation has given me a working
system, which I am not  inclined to monkey with, but if I have problems
in the future I'll pursue this track.  Thanks for the advice.


When you installed Cygwin, did you install it for all users?  If not
that could be the issue.

Chris

--
Chris Sutcliffe
http://ir0nh34d.googlepages.com
http://ir0nh34d.blogspot.com
http://emergedesktop.org

--
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: can't start sshd

2007-01-08 Thread Jay Abel
- Original Message - 
From: "Charles D. Russell"

To: "cygwin cygwin"
Sent: Monday, January 08, 2007 9:22 AM
Subject: Re: can't start sshd


Windows event log shows only information events (id 0) from sshd, but 
/var /log/sshd.log showed:


/var/empty must be owned by root and not group or world-writable

Presumably that is my problem, since ls shows:

drwxr-xr-x+  2 cdr None  0 Jan  6 13:48 empty/

The simple hack of disabling privilege separation has given me a 
working system, which I am not  inclined to monkey with, but if I have 
problems in the future I'll pursue this track.  Thanks for the advice.




It is my experience that 90% of the time, if sshd refuses to start or if 
ssh refuses to connect, there is a file permission problem somewhere. 
Most of the required permissions make sense if you think about them:


1. Host key not writable
2. /var/empty not writable so that sshd cannot be hacked
3. configuration file not writable by just anyone.
4. others, consult SSH documentation

If you cannot connect, check

1. Private key is not readable by others (duh)
2. Authorized keys is not writable (double duh)
3. others, consult SSH documentation

And be sure that you have a configuration which supports file 
permissions.  You may need ntsec and ntea if using FAT, consult your 
documentation for details.


If you set up sshd using the ssh-host-config and ssh-user-config 
scripts, these will all be correct by default, but once you have tweaked 
the configurations, these scripts won't overwrite them by default.


A warning, NEVER let windows touch the permissions on a cygwin tree. 
Many things in unixes depend on permissions being set a certain, 
rational, way.  Trying to fix things by setting permissions on a whole 
tree can make a horrible mess, please resist the temptation to fix 
things this way.  I speak from experience here.


Cygwin works much better if you use ntfs.  Emulating permissions on FAT 
systems will allow things to work, but provides no real security and 
shouldn't be used on a machine accesible from the public network.


Hope this helps.


--
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: NTSEC documentation

2007-01-08 Thread Jay Abel
put me at number 10 on your list.  If you don't get a number 1-9, I 
suppose I am it.


Jay
- Original Message - 
From: "Corinna Vinschen" <[EMAIL PROTECTED]>

To: 
Sent: Monday, January 08, 2007 12:18 AM
Subject: NTSEC documentation



Is anybody here with a developer background, who likes writing
documentation?

If so, would this person be interested in revamping the NTSEC
documentation with my input?  It shows its age, my lacking knowledge 
of

the english language and it's also very strangly ordered.

In general, if somebody is interested in taking over maintainership
of the Cygwin documentation, now that Joshua is gone, we would be
really happy.


Corinna

--
Corinna Vinschen  Please, send mails regarding Cygwin 
to

Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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




--
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: help win winxp install

2007-01-08 Thread Morgan Gangwere

well, there is a fundamental flaw here in the distribution system then.
i have looked at the versions from (agast!) three different mirrors
and they have so far been completely different. i have found (long
ago, dont know if this was fixed) a version 0.3.4 of bash _on_ that
mirrors package list. o think what we need to do in _this_ case is to
*standardise* (oh my! standardization!) because if we're not careful
we'll end up in DLL HELL.
i propose a round-robin approach, **I am _not_ saying i will do it**
its just a good idea.. that would make it so that if a new version of
the package came out, the main server would have it and we would have
to say WASFM... its too hard


On 1/8/07, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote:

 - reformatted.

Sam The Cat wrote:
> - Original Message - From: "Larry Hall (Cygwin)"
>  cygwin  com>
> To:  cygwin  com>
   ^^
.  No need to feed the spammers.

> Sent: Saturday, January 06, 2007 9:37 PM
> Subject: Re: Fw: help win winxp install
>
>
>> Sam The Cat wrote:
>>> figure this one out  (I think)
>>>
>>> the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll"
>>> this could not be found.  I did find "cygintl-8.dll" which shows
>>> modification as of 10/22/2006.  Not sure if it is a complete fix but
>>> I copied the "cygintl-8.dll" file and renamed it "cygintl-3.dll" and
>>> the gcc now passes a rudementaly hello.c complile.
>>>
>>
>>
>> That's a truly terrible way to solve your problem.  A better way would
>> have
>> been to consult  to find the package you
>> were
>> missing (libintl3) and install it.  I recommend you do that
>> immediately if
>> you don't want to suffer from more problems as a result of your attempt
>> above.
>>
 > ok -- I accept that my sol'n was not optimal but how do I accomplish what
 > you suggesting ?  On the web site I see there 5 versions of the
 > interntionalization library but on the setup tool where I specify what
 > package to isntall I am only given the option for the latest.  How do I
 > install a package that I need that setup does not offer me ?
 >


Try another mirror.   showed me the libintl,
linintl1, libintl2, libintl3, and libintl8 packages.  As long as you
can find the package at , there's going to
be at least one mirror out there with the package in question.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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





--
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

--
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: help win winxp install

2007-01-08 Thread Sam The Cat

Morgan

Thanks for confirming -- I find it funny that I would have to check 
mirror upon mirror to find a package needed for a basic part of the 
packgage.  Makes me wonder what I am missing ;)   I am not deeply involved 
in the SW distrbution via mirrors business but I would have thought that 
after a new release all mirrors would eventually be updated


Cheers
Eric

- Original Message - 
From: "Morgan Gangwere" <[EMAIL PROTECTED]>

To: 
Sent: Monday, January 08, 2007 8:05 PM
Subject: Re: Fw: help win winxp install



well, there is a fundamental flaw here in the distribution system then.
i have looked at the versions from (agast!) three different mirrors
and they have so far been completely different. i have found (long
ago, dont know if this was fixed) a version 0.3.4 of bash _on_ that
mirrors package list. o think what we need to do in _this_ case is to
*standardise* (oh my! standardization!) because if we're not careful
we'll end up in DLL HELL.
i propose a round-robin approach, **I am _not_ saying i will do it**
its just a good idea.. that would make it so that if a new version of
the package came out, the main server would have it and we would have
to say WASFM... its too hard


On 1/8/07, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote:

 - reformatted.

Sam The Cat wrote:
> - Original Message - From: "Larry Hall (Cygwin)"
>  cygwin  com>
> To:  cygwin  com>
   ^^
.  No need to feed the 
spammers.


> Sent: Saturday, January 06, 2007 9:37 PM
> Subject: Re: Fw: help win winxp install
>
>
>> Sam The Cat wrote:
>>> figure this one out  (I think)
>>>
>>> the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll"
>>> this could not be found.  I did find "cygintl-8.dll" which shows
>>> modification as of 10/22/2006.  Not sure if it is a complete fix but
>>> I copied the "cygintl-8.dll" file and renamed it "cygintl-3.dll" and
>>> the gcc now passes a rudementaly hello.c complile.
>>>
>>
>>
>> That's a truly terrible way to solve your problem.  A better way would
>> have
>> been to consult  to find the package you
>> were
>> missing (libintl3) and install it.  I recommend you do that
>> immediately if
>> you don't want to suffer from more problems as a result of your 
>> attempt

>> above.
>>
 > ok -- I accept that my sol'n was not optimal but how do I accomplish 
what

 > you suggesting ?  On the web site I see there 5 versions of the
 > interntionalization library but on the setup tool where I specify what
 > package to isntall I am only given the option for the latest.  How do 
I

 > install a package that I need that setup does not offer me ?
 >


Try another mirror.   showed me the libintl,
linintl1, libintl2, libintl3, and libintl8 packages.  As long as you
can find the package at , there's going to
be at least one mirror out there with the package in question.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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





--
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

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






--
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: help win winxp install

2007-01-08 Thread Larry Hall (Cygwin)

You too.  .  Reformatted.

Morgan Gangwere wrote:

On 1/8/07, Larry Hall (Cygwin)  cygwin  com> 
wrote:

  
And here too - 


 - reformatted.

Sam The Cat wrote:
> - Original Message - From: "Larry Hall (Cygwin)"
>  cygwin  com>
> To:  cygwin  com>
   ^^
.  No need to feed the 
spammers.


> Sent: Saturday, January 06, 2007 9:37 PM
> Subject: Re: Fw: help win winxp install
>
>
>> Sam The Cat wrote:
>>> figure this one out  (I think)
>>>
>>> the first pass of the gcc (cc1) was looking for a dll "cygintl-3.dll"
>>> this could not be found.  I did find "cygintl-8.dll" which shows
>>> modification as of 10/22/2006.  Not sure if it is a complete fix but
>>> I copied the "cygintl-8.dll" file and renamed it "cygintl-3.dll" and
>>> the gcc now passes a rudementaly hello.c complile.
>>>
>>
>>
>> That's a truly terrible way to solve your problem.  A better way would
>> have
>> been to consult  to find the package you
>> were
>> missing (libintl3) and install it.  I recommend you do that
>> immediately if
>> you don't want to suffer from more problems as a result of your 
attempt

>> above.
>>
 > ok -- I accept that my sol'n was not optimal but how do I 
accomplish what

 > you suggesting ?  On the web site I see there 5 versions of the
 > interntionalization library but on the setup tool where I specify what
 > package to isntall I am only given the option for the latest.  How 
do I

 > install a package that I need that setup does not offer me ?
 >


Try another mirror.   showed me the libintl,
linintl1, libintl2, libintl3, and libintl8 packages.  As long as you
can find the package at , there's going to
be at least one mirror out there with the package in question.


well, there is a fundamental flaw here in the distribution system then.
i have looked at the versions from (agast!) three different mirrors
and they have so far been completely different. i have found (long
ago, dont know if this was fixed) a version 0.3.4 of bash _on_ that
mirrors package list. o think what we need to do in _this_ case is to
*standardise* (oh my! standardization!) because if we're not careful
we'll end up in DLL HELL.
i propose a round-robin approach, **I am _not_ saying i will do it**
its just a good idea.. that would make it so that if a new version of
the package came out, the main server would have it and we would have
to say WASFM... its too hard




Mirrors are not a controlled hierarchical system.  Mirrors *pull* information
from cygwin.com.  cygwin.com does not *push* this information out.

If you have any questions about how mirrors are handled and where to report
those that seem out-of-date to you for some unreasonable period of time, see -
.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: help win winxp install

2007-01-08 Thread Larry Hall (Cygwin)

Sam The Cat wrote:

Morgan

Thanks for confirming -- I find it funny that I would have to check 
mirror upon mirror to find a package needed for a basic part of the 
packgage.  Makes me wonder what I am missing ;)   I am not deeply 
involved in the SW distrbution via mirrors business but I would have 
thought that after a new release all mirrors would eventually be updated



You should only have to worry about this if you don't get everything you
want or need.  In this case, you can either wait until your mirror is
resynchronized or try another mirror.  If you're looking for further
information, see .


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: help win winxp install

2007-01-08 Thread Champ Mendis


- Original Message - 
From: "Larry Hall (Cygwin)" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, January 09, 2007 12:31 PM
Subject: Re: Fw: help win winxp install



Sam The Cat wrote:

Morgan

Thanks for confirming -- I find it funny that I would have to check 
mirror upon mirror to find a package needed for a basic part of the 
packgage.  Makes me wonder what I am missing ;)   I am not deeply 
involved in the SW distrbution via mirrors business but I would have 
thought that after a new release all mirrors would eventually be updated



You should only have to worry about this if you don't get everything you
want or need.  In this case, you can either wait until your mirror is
resynchronized or try another mirror.  If you're looking for further
information, see .


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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




I think this is a fundamental issue which will sink the good cause of the 
wonderful Cygwin software.
I wish all mirrors will have the updated date displayed or have an automated 
updating system.


Champ
www.student.unimelb.edu.au/cmendis 



--
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: NTSEC documentation

2007-01-08 Thread Jay Abel
Looks like this is now covered, but I'd still be happy to proofread 
and/or edit for spelling, grammar and for clarity by someone not 
intimately familiar with cygwin internals.


- Original Message - 
From: "Jay Abel"

To: the list
Sent: Monday, January 08, 2007 10:05 AM
Subject: Re: NTSEC documentation


put me at number 10 on your list.  If you don't get a number 1-9, I 
suppose I am it.


Jay
- Original Message - 
From: "Corinna Vinschen"

To: the list
Sent: Monday, January 08, 2007 12:18 AM
Subject: NTSEC documentation



Is anybody here with a developer background, who likes writing
documentation?

If so, would this person be interested in revamping the NTSEC
documentation with my input?  It shows its age, my lacking knowledge 
of

the english language and it's also very strangly ordered.

In general, if somebody is interested in taking over maintainership
of the Cygwin documentation, now that Joshua is gone, we would be
really happy.


Corinna

--
Corinna Vinschen  Please, send mails regarding Cygwin 
to

Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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




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




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



Re: Where can I find the /usr/bin/tbl?

2007-01-08 Thread Yiran Guo
Dave Korn  artimi.com> writes:


>   It is indeed.  What do you see from 
> 
>  cygcheck -l groff | grep tbl | xargs ls -la
>  cygcheck -l groff | grep tbl | xargs file
> 
>   Once you've done that, try using setup.exe to reinstall groff from your
> local package dir and see if it makes a difference.
> 
> cheers,
>   DaveK


Dear Dave,

I got it. The odds are due to permission problems.

Thanx so much.



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



activestate perl on cygwin

2007-01-08 Thread Kevin T Cella
I understand the trouble with using Activestate perl on cygwin is the path
conversion problem. Searching online I found the following wrapper script
useful for most perl commands:

#! /bin/sh

# This is necessary to make perl work with cygwin.  Cygwin passes
# "cygwin style" paths to the program in the #! statement and
ActiveState
# perl does not know what /cygwin/d/... means.
#
# So, we put #!/usr/local/bin/perl in the perl script and this is
called
# This routine translates the path name to something of type d:/
#
args=""
while [ $# -gt 0 ]
do
var="$1"
shift
   
if test "`echo $var | grep '/'`" = "$var"
then
# cygpath does the /cygwin/d/ to d:/ conversion
var=`cygpath -w $var`

# Then we have to swap \ for / (extra \ needed because the
# shell makes a first pass at removing the \.
  #
var=`echo "$var" | sed 's/\\\/\\//g'`
fi
args="$args $var"
done

# Finally the command is to call perl with the name of the script
and the args.
#
/c/Perl/bin/perl.exe $args


An example of one that does not work is as follows:

perl -e 'print join "\n", @INC, "\n";'


For some reason, the script above strips the single quotes from the command
and therefore does not execute the command properly. Please advise.

Thanks,
Kevin


--
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: activestate perl on cygwin

2007-01-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Kevin T Cella on 1/8/2007 8:56 PM:
> For some reason, the script above strips the single quotes from the command
> and therefore does not execute the command properly. Please advise.

If you want my advice, use cygwin perl instead of activestate perl.  Then
you don't have to worry about wrappers.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFoxOV84KuGfSFAYARAvT6AJ4sYudhwS2+nNzVyI47qg2eQMPHdACfeGlv
Myy1AEpwtiK8BRo5uiDJaYo=
=Z6e0
-END PGP SIGNATURE-

--
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: CR/LF problems after upgrade

2007-01-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

http://cygwin.com/acronyms/#TOFU - reformatted

> -Original Message-
> From: cygwin-owner AT cygwin DOT com
  ^

http://cygwin.com/acronyms/#PCYMTNQREAIYR - raw email munged

> On 1/5/07, fschmidt  wrote:
>> Okay, how can I set SHELLOPTS before invoking bash?  I tried it in the
>> /etc/profile but that didn't work.
>>

According to Eramo, Mark on 1/8/2007 9:33 AM:
> I have the same problem and I set this under the Windows System
> Variables as well as in the Cygwin shell window but neither worked. 

Actually, it sounds like you don't have the same problem.

> 
> I use tsch as opposed to bash. Is there something different that needs
> to be set in this shell? 

tcsh is not the same as bash, and SHELLOPTS does not affect tcsh (although
even with tcsh, you probably end up invoking a lot of sh scripts that are
affected).  You'll have to show a simple test case that someone else can
reproduce before we can offer help.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFoxma84KuGfSFAYARAkoyAJ43HRX2mb3hJKa73oJ0ffZWlteB9QCgg7r3
1Tn4xzyGhvOX3oFo7nGcX6g=
=yRr0
-END PGP SIGNATURE-

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



Support for Baud Rates above 250000 baud?

2007-01-08 Thread David le Comte

Hi,

I am running Cygwin on a PC that is running Windows XP.  My Cygwin
version is "CYGWIN_NT-5.1" and it was downloaded and installed late last
month (Dec 2006).  I have a std serial port capable (according to the device
manager) of speeds to 460800.  I also have a USB connected serial port
capable of 921600 baud.  I would like to run at these speeds.

I have a serial I/O routine that I have mostly written, but it is partly
downloaded from a program that I found on the web.

In the routine where the baud rates are set, we have the following.  
Note the

B230400 entry that I have added.  (Similarly the commented out entries for
460800 and 921600 baud rates)

   case 57600  : local_rate = B57600;  break;
 case 115200 : local_rate = B115200; break;
   /* This 230400 entry is new */
 case 230400 : local_rate = B230400; break;
   /* leave two here for when we have support */
   //  case 460800 : local_rate = B460800; break;
   //  case 921600 : local_rate = B921600; break;
   #endif
   }

   if ((cfsetispeed(&t,local_rate) != -1) &&
   (cfsetospeed(&t,local_rate) != -1))
   {
 if (tcsetattr(rtnval,TCSANOW,&t) == -1)
   rtnval = -1;
   }

Below is a section of termios.h

--  Start Partial List of /usr/include/sys/termios.h -
#define B50 0x1
#define B75 0x2
#define B110 0x3
#define B134 0x4
#define B150 0x5
#define B200 0x6
#define B300 0x7
#define B600 0x8
#define B1200 0x9
#define B1800 0xa
#define B2400 0xb
#define B4800 0xc
#define B9600 0xd
#define B19200 0xe
#define B38400 0xf

#define CSIZE 0x00030
#define CS5 0x0
#define CS6 0x00010
#define CS7 0x00020
#define CS8 0x00030
#define CSTOPB 0x00040
#define CREAD 0x00080
#define PARENB 0x00100
#define PARODD 0x00200
#define HUPCL 0x00400
#define CLOCAL 0x00800
#define CBAUDEX 0x0100f
#define B57600 0x01001
#define B115200 0x01002
#define B128000 0x01003
#define B230400  0x01004
#define B256000 0x01005
--  End Partial List of /usr/include/sys/termios.h -

As expected from termios.h, changing to B230400 works fine.

Adding entries into termios.h for higher
baudrates using the convention that B460800 was 0x01006,
B50 was 0x01007, and B921600 was 0x01008
caused errors. 


#define B230400  0x01004
#define B256000 0x01005
/* 3 new entries - as an experiement to see if it works */
#define B460800  0x01006
#define B50  0x01007
#define B921600  0x01008

The calls to cfsetispeed() and cfsetospeed() failed.  Not unsurprising,
as one could assume that they had been using the original termios.h when
they were compiled.

I thought I'd peruse first this mailing list looking for 460800, B460800,
921600, B921600, max(imum) baud rate, highest baud rate, etc and
got nowhere.

When perusing the web, I did find a few cryptic references to adding support
for such higher speeds in TeraTerm Pro (version 4.24) and in a file called
"defs.c", and to various linux ports for other architectures, but 
nothing that

seemed relevant to Cygwin.

I also found several references to stty not being able to handle baud
rates above 115200.  In my version of Cygwin this is NOT true, setting
the baud rate to 230400 does not give stty any grief.  Not only
does

  stty -F /dev/com[1|3]

report the correct baud rate, but

  stty -F /dev/com[1|3] 230400

works as expected. (NB com1 is my std serial port, and com3 is my USB 
connected port).


Various manual entries for linux, Unix, etc list upper baud rate limits of
57600, 115200 baud, and 460800 baud. (as taken from various sys/termios.h
files).  Man entries for functions such as cfsetispeed() eg just refer 
one to

termios.h for detailed info.

Now for the questions:

1) Is there a build available for Cygwin (on a Windows platform) that
has support for higher baud rates?  If so, does anyone know where I
could find it?

2) Assuming there is no such build available, are there plans to add
support for higher baud rates?  If so, does anyone know when?

2) Would it be difficult to download the appropriate source files, modify
them, and make my own Cygwin build?  (The idea of doing this terrifies
me by the way).  If it is possible, could someone give me some pointers
on how to do this?

regards,

David le Comte



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