Re: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Corinna Vinschen
On May  3 23:48, Igor Pechtchanski wrote:
 FWIW, I like the --expert option suggested by CGF.

I like the idea of having an expert and a dumm^Wstandard mode, but
I would rather see a switch in the GUI, than just in the CLI.

I think it should be possible to override dependencies on the fly and
as Igor, I'm doing that pretty often.  I don't think setup should be
degraded to a tool just for the really challenged.  After all, even
some of the better Linux GUI installer tools allow to override package
dependencies.

To say it in other words: From my point of view there's an installer
functionality which is implemented apart from the GUI and the job of
the GUI is to give GUIfied access to all installer functionality.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


RE: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Dave Korn
Original Message
From: Brian Dessent
Sent: 04 May 2005 04:12

 The only one that makes any sense is when you're trying to uninstall a
 large dependency tree, such as if you want to get rid of X11.  The last
 time I tried this it was quite hard, since you would turn off one
 package, but in the process of cycling the next you would wind up
 re-enabling the one you just turned off.  I think it's possible to do it
 but you have to do something really stupid like put half the packages in
 'Source', then disable the other half, then finally you can cycle the
 first set to Uninstall since there's no version number in between Source
 and Uninstall.  Makes me kind of sick just thinking about expecting
 someone not familiar with setup to figure that out.
 
 I guess that gets into a whole other area though, that you should either
 be able to mass-deselect a number of packages at once, or have some way
 of deselecting a package without cycling through other versions of it.
 :/

  Mass selection, and a right-click context menu.  I'll take a look at that
too.

 But back to Larry's point.  Should we refuse to even give them the rope
 lest they hang themselves?

  Yep.  Absolutely.  Hey, as far as I'm concerned, anytime anyone clicks the
'install in text mode' or 'just for me' buttons, a little sign should light
up, saying Please do not click on this button again.

  Hell, let's make it a compile-time option.  Anyone who *really* knows what
they're doing can build their own local copy of setup with
-DNO_I_REALLY_DO_WANT_TO_MESS_UP_MY_INSTALL

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



Re: [patch] manifest, and test release

2005-05-04 Thread Max Bowsher
Brian Dessent wrote:
Max Bowsher wrote:
There is one remaining issue - here is a ChangeLog entry from the current
release branch:
2004-11-28  Max Bowsher  [EMAIL PROTECTED]
* download.cc (check_for_cached): Re-introduce the silent 
skipping
of
wrong-sized package files in local caches, as a quick fix that 
is
no
worse than the status quo, to be able to make a release, whilst
work towards a proper fix continues on trunk.
Yuck... that sounds like one of those corner cases that's never fun to
deal with - do you try to resume the transfer, and hope the md5sum is
correct, or do you just delete ir or rename it out of the way.
OK, I've refreshed my memory on the situation.
Currently, setup just ignores wrongly sized files. I fixed that, but 
thinking it would be a rare situation, didn't bother with nice error 
handling, and just threw an exception.

To fix this, we just need to change to two cases where an exception is 
thrown in download.cc, with the message Package validation failure, to 
instead just warn nicely, and move the bad file out of the way.

I think a MessageBox is sufficient for now, but it might want to become part 
of a report textbox, as a further refinement.

I will try to look more into the oddity reported earlier today...
+name=RedHat.Cygwin.Setup
... perhaps just Cygwin.Setup here ?
To be honest I have no idea, but was going by what the SDK says.  About
'name' it says: Uniquely names the application or assembly. Use the
following format for the name: Organization.Division.Name. For example
Microsoft.Windows.mysampleApp. Required.
Then perhaps Cygwin.Setup.Setup ?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sbscs/setup/manifest_files_reference.asp
Actually, reading through those docs again I'm slightly worried about
the version thing again:
Every side-by-side assembly must have a version. Each assembly version
is associated with a version number having four parts separated by
periods: major.minor.build.revision. If a change is made to an assembly
making it incompatible with existing versions, the major or minor parts
of the version number must be changed. A version number that changes
only in the build or revision parts indicates that the assembly is
backward compatible with prior versions.
We could, without too much hassle, run sed on the thing at build time to
subsitute the ChangeLog version in there, adding 0s as necessary for
missing fields.  However, I have to wonder what they really mean when
they say, change is made to an assembly making in incompatible.  As
far as I know, that seems to apply more to their .NET stuff, where these
manifests actually contain useful information.  From what I can tell,
the only thing this is doing in our case is saying, Yes, I'd like the
comctl32 version 6 please, thank you and that's it.  So I guess it's
fine to leave the version at 1.0.0.0 indefinitely.
I think it is fine.
It would only be necessary to do meaningful things with the version number 
if other SxS assemblies were going to be depending on *us*.

Max.


Re: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Corinna Vinschen
On May  3 15:30, Brian Dessent wrote:
 The problem is joe user installs for me and then tries to install a
 service like sshd, cron, etc.  And it naturally fails because SYSTEM
 doesn't see any mounts.  So one or more of (setup.exe, cygrunsrv,
 /usr/bin/foo-install-script) probably needs to do more sanity checking
 in those cases.

This is a case of not enough information in the dialog, IMHO.  The choice
the user has to make at this point is quite important, right?  Usually this
begs for a dialog of its own in typical Windows installers, something along
the lines of


  HOW TO INSTALL CYGWIN ON THIS MACHINE?

  Choose the way how Cygwin is installed on this machine.
  Usually Systemwide is the better setting for all purposes.
  It's also the default way to install Cygwin.


  o Systemwide

If you choose this setting then the Cygwin installation is
available to all users on the system.  [...]

This setting is also required if you want to install services
like SSHD or XINETD.  If you don't install systemwide [...]


  o Just for me

If you choose this setting then the Cygwin installation is only
available for you.  All settings required to run Cygwin are not
visible to other users. [...]

WARNING: If you install Cygwin just for you, installing service
applications wil result in spurious failures.  Don't bother the
Cygwin mailing list with your problems if you did that [...]


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: Summary, was Re: Welcoming ...

2005-05-04 Thread Corinna Vinschen
On May  3 20:42, Brian Dessent wrote:
 - accessibility or just less confusing package selection widget

That reminds me... is there any chance to use standard Windows
widgets which allow use of the keyboard for blind users?  We have
been asked for that at least twice.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


TODO in PickPackageLine.cc

2005-05-04 Thread Max Bowsher
I recently added a TODO to PickPackageLine.cc, marking a piece of code which 
seems a little suspect to me.
I did try to follow up on my suspicion, but got lost in the dependency 
processing code.
I'll have another go at it later, but I'd appreciate any input from others.

Max.


Re: TODO in PickPackageLine.cc

2005-05-04 Thread Brian Dessent
Max Bowsher wrote:
 
 I recently added a TODO to PickPackageLine.cc, marking a piece of code which
 seems a little suspect to me.
 I did try to follow up on my suspicion, but got lost in the dependency
 processing code.
 I'll have another go at it later, but I'd appreciate any input from others.

My guess was that it was a typo that was never caught since there was
the second name of the function with the default arg.  And most people
use TRUST_CURR anyway so it's a corner case.  I see no reason why it
shouldn't be

return pkg.set_requirements (theView.deftrust);

There's something similar going on with
packageversion::set_requirements().  In that case it too has two
versions of the function, and one of them has a default argument.  That
means there are (or were before you starting cleaning) six ways to
invoke this function name.  And only slight difference in class name -
packagemeta and packageversion.  Seems like that is just asking for
mistakes.

Obviously whoever did it that way had a reason, but it seems way too
open-ended for me.  Maybe I'm just not used to an idiom.

Brian


Re: [patch] manifest, and test release

2005-05-04 Thread Brian Dessent
Max Bowsher wrote:

  +name=RedHat.Cygwin.Setup
 
  ... perhaps just Cygwin.Setup here ?
 
  To be honest I have no idea, but was going by what the SDK says.  About
  'name' it says: Uniquely names the application or assembly. Use the
  following format for the name: Organization.Division.Name. For example
  Microsoft.Windows.mysampleApp. Required.
 
 Then perhaps Cygwin.Setup.Setup ?

*shrug*  I guess I don't get what's wrong with using RedHat.  The
resources that get compiled into the DLL use Red Hat for CompanyName
and Cygwin for ProductName.  They own the copyright on the DLL code
and probably a good chunk of the setup code, not to mention the
trademark.  Seems pretty straightforward to me.

Brian


Re: [patch] manifest, and test release

2005-05-04 Thread Max Bowsher
Brian Dessent wrote:
Max Bowsher wrote:
+name=RedHat.Cygwin.Setup
... perhaps just Cygwin.Setup here ?
To be honest I have no idea, but was going by what the SDK says.  About
'name' it says: Uniquely names the application or assembly. Use the
following format for the name: Organization.Division.Name. For example
Microsoft.Windows.mysampleApp. Required.
Then perhaps Cygwin.Setup.Setup ?
*shrug*  I guess I don't get what's wrong with using RedHat.
These days, are we actually related to Red Hat in any way except that they 
provide setup's web and CVS hosting?

 The
resources that get compiled into the DLL use Red Hat for CompanyName
and Cygwin for ProductName. They own the copyright on the DLL code
and probably a good chunk of the setup code, not to mention the
trademark.  Seems pretty straightforward to me.
I'm happy to use Red Hat's name if they want us too, but I'm concerned about 
implying a stronger association than actually exists. AFAIK, it has been 
many years since Red Hat had any direct involvment with setup's development, 
and I'm concerned that Red Hat might not want us to use their name under 
those circumstances.

Max.


Re: [patch] manifest, and test release

2005-05-04 Thread Corinna Vinschen
On May  4 13:42, Max Bowsher wrote:
 I'm concerned that Red Hat might not want us to use their 
 name under those circumstances.

No reason to be concerned, really.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: [patch] manifest, and test release

2005-05-04 Thread Max Bowsher
Corinna Vinschen wrote:
On May  4 13:42, Max Bowsher wrote:
I'm concerned that Red Hat might not want us to use their
name under those circumstances.
No reason to be concerned, really.
OK. In that case, I am happy with Brian's manifest patch as previously 
posted.

Max.


Please upload: xpdf-3.00-2

2005-05-04 Thread Dr. Volker Zell
Hi

Please upload at your earliest convinience

 cut here 
#!/bin/bash

mkdir xpdf
cd xpdf

# wget http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xpdf/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xpdf/xpdf-3.00-2-src.tar.bz2
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xpdf/xpdf-3.00-2.tar.bz2
 cut here 


DESCRIPTION:

An open source viewer for Portable Document Format (PDF) files.


CYGWIN NEWS:


 * Fixed postinstall bug 571 (see 
http://sourceware.org/bugzilla/show_bug.cgi?id=571)

 
Xpdf NEWS
=
  
 * Incorporated 3 patches from the xpdf homepage


Thanks
  Volker



Please upload: openldap-2.2.26-1/libopenldap2_2_7-2.2.26-1/openldap-devel-2.2.26-1

2005-05-04 Thread Dr. Volker Zell
Hi

Please upload at your earliest convinience.


 cut here 
#!/bin/bash

mkdir -p openldap openldap/openldap-devel openldap/libopenldap2_2_7

cd openldap
# wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-2.2.26-1.tar.bz2
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-2.2.26-1-src.tar.bz2

cd openldap-devel
# wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-devel/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-devel/openldap-devel-2.2.26-1.tar.bz2

cd ../libopenldap2_2_7
# wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/libopenldap2_2_7/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/libopenldap2_2_7/libopenldap2_2_7-2.2.26-1.tar.bz2
 cut here 


DESCRIPTION:

Lightweight Directory Access Protocol clients, servers and libraries.


CYGWIN NEWS:


* Routine update
* Fixed postinstall bug 571 (see 
http://sourceware.org/bugzilla/show_bug.cgi?id=571)
  
Old CYGWIN NEWS:


* Added SASL support

  
openldap NEWS
=

OpenLDAP 2.2.26 Release
Fixed back-bdb ldapadd ctxcsn crash (ITS#3685)
Fixed back-hdb search crash (ITS#3688)

OpenLDAP 2.2.25 Release
Fixed back-hdb out-of-order slapadd (ITS#3267)
Fixed back-bdb/hdb search crashes (ITS#3638, 3647)
Fixed back-bdb/hdb modrdn (ITS#3657)
Fixed back-bdb ctxcsn/LRU bug (ITS#3666)
Fixed back-dnssrv referral all but search op crasher bug (ITS#3642)
Fixed back-ldbm shutdown hang (ITS#3648)
Fixed back-meta memory leak (ITS#3669)
Fixed back-monitor attribute normalization bug (ITS#3659)
Removed broken libldap fast synchronous search result processing 
(ITS#3612)
Build Environment
Added improved configure logging

OpenLDAP 2.2.24 Release
Fixed slapd chldren: typo (ITS#3560)
Fixed slapd syncrepl consumer unclean shutdown (ITS#3546)
Fixed slapd syncrepl provider sessionlog (ITS#3571)
Fixed slapd subentry control parse bug (ITS#3563)
Fixed slapd connection_abandon processing (ITS#3534, 3546, 3571)
Fixed slapd callback cleanup processing (ITS#3596)
Fixed slapd default password hash to use SSHA (ITS#3557)
Fixed back-bdb referral fault (ITS#3602)
Fixed slap tool log initialization (ITS#3579)
Fixed slapi modify/increment support (ITS#3522)
Fixed slapi plugins called multiple times with glue (ITS#3529)
Fixed slapi 64-bit portability (ITS#3556)
Fixed back-bdb IDL cache crash (ITS#3527)
Fixed back-bdb initialization message (ITS#3533)
Fixed back-hdb dn2id crash (ITS#3559)
Fixed back-ldap search with stale connection (ITS#3537)
Fixed libldap fdset re-init for restart (ITS#3524)
Fixed libldap ldap_extended_operation_s (ITS#3552)
Added libldap fast synchronous search result processing
Build Environment
Updated BDB version check (ITS#3581)
Updated memcmp replacement
Updated -lV3 configure check
Documentation
Add slapd-hdb(5)
Updated slapd(8) (ITS#3591)
Updated README

OpenLDAP 2.2.23 Release
Updated slapd extensibleMatch empty DN bug fix (ITS#3506)

OpenLDAP 2.2.22 Release
Fixed slapd extensibleMatch empty DN bug (ITS#3506)

OpenLDAP 2.2.21 Release
Fixed slapd group limits
Fixed slapd/slurpd replog locking (ITS#3421)
Fixed slapd gratuitous thread yields (ITS#3471)
Fixed slaptest failure if databases cannot be started (ITS#3461)
Fixed slaptest with dynamically loaded password mechs (ITS#3495)
Fixed back-bdb entry e_ocflags reset on objectClass modify
Fixed back-bdb retcode on referral (ITS#3475)
Fixed back-bdb detecting deadlock in indexer (ITS#3481)
Fixed back-bdb cache deadlock (ITS#3494)
Fixed back-ldap/meta objectClass mapping in updates (ITS#3499)
Fixed back-meta DN-valued attribute delete (ITS#3498)
Fixed back-sql access checking on search (ITS#3488)
Fixed libldap timeout option cleanup (ITS#3487)
Build Environment
Misc fixes for dynamic modules (ITS#3401, #3428)
Documentation
Fixed slappasswd man page quotes (ITS#3468)
Updated slapd-bdb(5) checkpoint description (ITS#3493)
Updated slapd.conf(5) syncrepl info (ITS#3293, #3476, #3478)
Updated slapd-bdb, slapd-ldbm(5) index notes (ITS#3330)

OpenLDAP 2.2.20 Release
Fixed slapd 

Please upload: tzcode-2005h-1

2005-05-04 Thread Dr. Volker Zell
Hi

Please upload at your earliest convinience


 cut here 
#!/bin/bash

mkdir tzcode

cd tzcode
# wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/tzcode/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/tzcode/tzcode-2005h-1-src.tar.bz2
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/tzcode/tzcode-2005h-1.tar.bz2
 cut here 


DESCRIPTION:

The time zone package


CYGWIN NEWS:


* Update to latest upstream release
  
tzcode/tzdata NEWS
==

* Sorry no changelog available. You have to do the diff yourself.


Thanks
  Volker



Please upload: xemacs-21.4.17-1/xemacs-tags-21.4.17-1/xemacs-emacs-common-21.4.17-1

2005-05-04 Thread Dr. Volker Zell
Hi

Please upload at your earliest convinience


 cut here 
#!/bin/bash

mkdir -p xemacs/xemacs-emacs-common xemacs/xemacs-tags

cd xemacs
wget http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-21.4.17-1-src.tar.bz2
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-21.4.17-1.tar.bz2

cd xemacs-tags
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-tags/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-tags/xemacs-tags-21.4.17-1.tar.bz2

cd ../xemacs-emacs-common
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-emacs-common/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-emacs-common/xemacs-emacs-common-21.4.17-1.tar.bz2
 cut here 


DESCRIPTION:

A powerful, highly customizable open source text editor and application 
development system


CYGWIN NEWS:


* routine update


Old CYGWIN NEWS:


* routine update

* removed --with-offixe from configure as it needs --with-dragndrop which
  doesn't work on cygwin right now

* this version uses again the original package-get.el as my local patch
  doesn't cleanly apply because of a major update to the package lisp stuff

* explicitely include --with-dialogs=motif when configuring


XEmacs NEWS
===

 21.4.17:
 
* Fix: Fix backreference bug in regex code.
* Fix: Fix etags segv on Solaris.
* Fix: Make AltGr and modifier keys work under new X servers.
* Fix: Enable AltGr under GTK.
* Fix: Fix --memory-usage-stats on tty.
* Fix: FreeBSD build fixes.
* Fix: Fix Parallel builds.
* Fix: File positions are 0-based.
* Fix: Improve Mac OS X compatibility in mule-tests.el.
* Fix: Fix shifted-motion-keys-select-region documentation string.
* Fix: Make window maximization work under Metacity.
* Fix: Abort configuration if GPM requested but not found.
* Fix: Force removal of lisp/finder-inf.el so 'make' for a normal user 
after 'make install' by root works.
* Fix: Take into account `allow-deletion-of-last-visible-frame' variable.
* Fix: Make sheap.c compile under gcc-3.3.3 on cygwin.
* Fix: Fix gnus regexp infloop.
* Fix: Close pop security hole.
* Fix: Update documentation for programming modes.
* Fix: Fix typos in the tutorial.
* Fix: Another parallel build fix.
* Fix: Make XEmacs build on VC++ 7.
* Update: Sync the API of make-obsolete(-variable) with GNU Emacs.
* Update: Make definition of command more accessible in Lispref.
* Update: Update directory locations in nt/config.inc.samp to correspond to 
current optional-libs.exe and Cygwin makeinfo.
* Feature: Improve comments in regex.c.
* Feature: Improve docstrings for keymap functions.
* Feature: Add a test for shy regexps to verify gnus infloop fix.

 21.4.16:
 
* Fix: Repair configure boo-boo on deprecating Motif.
* Fix: Repair PUI breakage if EMACSPACKAGEPATH is specified.
* Fix: Make etags --include work.
* Fix: Clean up split-string docstring.
* Fix: Make etags recognize Python classes and global functions.
* Fix: Don't redefine NSIG.
* Fix: Default package-get-require-signed-base-updates to nil.
* Fix: Avoid CVS conflicts in package-ui.el.
* Fix: GTK: Working tab controls and widget drawing.
* Fix: Sync gnuserv.el to the version from 21.5.
* Fix: Fix precedence gotcha in lstream.c.
* Fix: Fix void-function error in apropos.
* Fix: Eliminate a warning in regex.c.
* Fix: Fix bug in truncate-command-history-for-gc / pre-gc-hook.
* Fix: Warning elimination in glyphs.c.
* Fix: Eliminate bogus xref in positions.texi.
* Fix: Paragraph-start should not be anchored to bol in Japanese.
* Fix: Don't flag an error under some circumstances in search.c.
* Fix: Fix typo in lispref/windows.texi.
* Fix: Make sure the argument to Frecord_buffer is a buffer.
* Fix: search.c fixes.
* Fix: Preserve successful isearch targets on abort.
* Fix: Fix typo in zmacs-region's docstring.
* Fix: Fix shy groups bug.
* Fix: Backport sorted saving of custom.
* Fix: Working GTK buttons for 21.4.
* Fix: The IA-64 has a large address space.
* Fix: Fix repeatable crash while using w3
* Fix: Eliminate misleading warnings when configuring GTK.
* Fix: Remove compiler warnings for icc.
* Fix: Minor cleanup for tag test.
* Fix: GTK Button fix.
* Fix: Fix configure warning about disabling regex-malloc.
* Fix: PPC Linux no longer requires ppc.ldscript.
* Fix: GTK backgrounds fix.
* Fix: The IA-64 has a large address space part 2.
* Fix: Fix etags loading of include 

RE: [PATCH] Uninstall .dll last, reinstall first - final version

2005-05-04 Thread Buchbinder, Barry (NIH/NIAID)
At Tuesday, May 03, 2005 5:28 PM, Corinna Vinschen wrote:
 On May  3 21:49, Max Bowsher wrote:
 The other potential solution would be to attempt to uninstall the
 packages in dependency-sorted order, but that might get awkward in
 the case of circular dependencies.
 
 See my previous posting:  Circular dependencies are bugs, right?
 Creating a dependency tree and complaining about circular dependencies
 in setup would be nice, though.
 
 Corinna

As you pointed out earlier, circular dependencies can be considered bugs in
the setup.hint files.  Shouldn't they be caught and fixed when setup.ini is
being made?  Then setup/Brian, which/who has enough to do, wouldn't have to
worry about it.


Re: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Igor Pechtchanski
On Wed, 4 May 2005, Corinna Vinschen wrote:

 On May  3 15:30, Brian Dessent wrote:
  The problem is joe user installs for me and then tries to install a
  service like sshd, cron, etc.  And it naturally fails because SYSTEM
  doesn't see any mounts.  So one or more of (setup.exe, cygrunsrv,
  /usr/bin/foo-install-script) probably needs to do more sanity checking
  in those cases.

 This is a case of not enough information in the dialog, IMHO.  The
 choice the user has to make at this point is quite important, right?
 Usually this begs for a dialog of its own in typical Windows installers,
 something along the lines of

Agreed.  I would also say If you want to switch, re-run setup and change
the setting on this page somewhere.
Also, since we're making dialogs more verbose, how about adding something
like the following to the initial welcome page:

  This is the Cygwin setup program.  It can be used to perform both an
  initial setup and subsequent updates, so make sure you remember where
  you saved it.

It might also make sense to have the verbosity appear as context popup
hints (in the future, of course, as SHTDI).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


Please upload: man-1.5p-1

2005-05-04 Thread Dr. Volker Zell
Hi

Please upload at your earliest convinience

 cut here 
#!/bin/bash

mkdir man

cd man
# wget http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/man/setup.hint
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/man/man-1.5p-1-src.tar.bz2
wget 
http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/man/man-1.5p-1.tar.bz2
 cut here 


DESCRIPTION:

Man, apropos and whatis.


CYGWIN NEWS:


 - Routine update

Man NEWS


- Don't (potentially) use a pager with apropos and whatis
- Superfluous security fix
- Filter .iX macros out when constructing whatis database
- Allow globbed MANPATH items like /opt/*/man
- Return a correct status
- Continue search when an appropriate page was found to be inaccessible
 
  
Thanks
  Volker



Re: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Christopher Faylor
On Tue, May 03, 2005 at 11:49:25PM -0600, Warren Young wrote:
Christopher Faylor wrote:
I don't think that the option of reading READMEs should ever be
turned off, unless it's via a command line option.  I'd rather annoy
people with the prospect of documentation than casually turn it off
because they decided once that they didn't want to see it.

At the very least, consider my versioning idea.  I shouldn't have to
page through the same set of READMEs every time I upgrade Cygwin.

I don't think anyone is proposing having multiple pagers pop up, requiring
you to type 'q' 127 times for 127 different READMEs.  My suggestion was
either to have a dialog box which reminds people about the readmes in
/usr/share/doc/Cygwin (which would be trivial to implement) or to be
helpful and provide a screen where people can click on the readme that
they want to inspect and have it displayed automatically.

cgf


Re: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 09:10:15AM -0400, Igor Pechtchanski wrote:
On Wed, 4 May 2005, Corinna Vinschen wrote:

 On May  3 15:30, Brian Dessent wrote:
  The problem is joe user installs for me and then tries to install a
  service like sshd, cron, etc.  And it naturally fails because SYSTEM
  doesn't see any mounts.  So one or more of (setup.exe, cygrunsrv,
  /usr/bin/foo-install-script) probably needs to do more sanity checking
  in those cases.

 This is a case of not enough information in the dialog, IMHO.  The
 choice the user has to make at this point is quite important, right?
 Usually this begs for a dialog of its own in typical Windows installers,
 something along the lines of

Agreed.  I would also say If you want to switch, re-run setup and change
the setting on this page somewhere.
Also, since we're making dialogs more verbose, how about adding something
like the following to the initial welcome page:

  This is the Cygwin setup program.  It can be used to perform both an
  initial setup and subsequent updates, so make sure you remember where
  you saved it.

I like this idea.

cgf


Re: Please upload: xpdf-3.00-2

2005-05-04 Thread Corinna Vinschen
On May  4 14:56, Dr. Volker Zell wrote:
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xpdf/xpdf-3.00-2-src.tar.bz2
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xpdf/xpdf-3.00-2.tar.bz2

Uploaded.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: Please upload: tzcode-2005h-1

2005-05-04 Thread Corinna Vinschen
On May  4 14:57, Dr. Volker Zell wrote:
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/tzcode/tzcode-2005h-1-src.tar.bz2
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/tzcode/tzcode-2005h-1.tar.bz2

Uploaded.  I've removed 2003e-1.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: Please upload: man-1.5p-1

2005-05-04 Thread Corinna Vinschen
On May  4 15:40, Dr. Volker Zell wrote:
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/man/man-1.5p-1-src.tar.bz2
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/man/man-1.5p-1.tar.bz2

Uploaded.  I've removed 1.5o1-1.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: Please upload: openldap-2.2.26-1/libopenldap2_2_7-2.2.26-1/openldap-devel-2.2.26-1

2005-05-04 Thread Corinna Vinschen
On May  4 14:56, Dr. Volker Zell wrote:
  cut here 
 #!/bin/bash
 
 mkdir -p openldap openldap/openldap-devel openldap/libopenldap2_2_7
 
 cd openldap
 # wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/setup.hint
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-2.2.26-1.tar.bz2
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-2.2.26-1-src.tar.bz2
 
 cd openldap-devel
 # wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-devel/setup.hint
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/openldap-devel/openldap-devel-2.2.26-1.tar.bz2
 
 cd ../libopenldap2_2_7
 # wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/libopenldap2_2_7/setup.hint
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/openldap/libopenldap2_2_7/libopenldap2_2_7-2.2.26-1.tar.bz2
  cut here 

Uploaded.  I've removed 2.2.17-1.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: [PATCH] Uninstall .dll last, reinstall first - final version

2005-05-04 Thread Corinna Vinschen
On May  4 09:05, Buchbinder, Barry (NIH/NIAID) wrote:
 At Tuesday, May 03, 2005 5:28 PM, Corinna Vinschen wrote:
  On May  3 21:49, Max Bowsher wrote:
  The other potential solution would be to attempt to uninstall the
  packages in dependency-sorted order, but that might get awkward in
  the case of circular dependencies.
  
  See my previous posting:  Circular dependencies are bugs, right?
  Creating a dependency tree and complaining about circular dependencies
  in setup would be nice, though.
  
  Corinna
 
 As you pointed out earlier, circular dependencies can be considered bugs in
 the setup.hint files.  Shouldn't they be caught and fixed when setup.ini is
 being made?  Then setup/Brian, which/who has enough to do, wouldn't have to
 worry about it.

In theory yes.  It just won't hurt to have a dependency checker in setup
at one point, methinks.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Corinna Vinschen
On May  4 10:08, Christopher Faylor wrote:
 On Wed, May 04, 2005 at 09:10:15AM -0400, Igor Pechtchanski wrote:
 like the following to the initial welcome page:
 
   This is the Cygwin setup program.  It can be used to perform both an
   initial setup and subsequent updates, so make sure you remember where
   you saved it.
 
 I like this idea.

AOL.  Could be worth at least a silver star :-)


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: Please upload: xemacs-21.4.17-1/xemacs-tags-21.4.17-1/xemacs-emacs-common-21.4.17-1

2005-05-04 Thread Corinna Vinschen
On May  4 14:58, Dr. Volker Zell wrote:
  cut here 
 #!/bin/bash
 
 mkdir -p xemacs/xemacs-emacs-common xemacs/xemacs-tags
 
 cd xemacs
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/setup.hint
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-21.4.17-1-src.tar.bz2
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-21.4.17-1.tar.bz2
 
 cd xemacs-tags
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-tags/setup.hint
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-tags/xemacs-tags-21.4.17-1.tar.bz2
 
 cd ../xemacs-emacs-common
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-emacs-common/setup.hint
 wget 
 http://cygwin.dev.wapme.net/packages/vzell/cygwin/release/xemacs/xemacs-emacs-common/xemacs-emacs-common-21.4.17-1.tar.bz2
  cut here 

Uploaded and 21.4.14-2 removed.

One question though:  Why is 21.4.17-1 curr and 21.4.16-1 test?
Shouldn't 21.4.16-1 better be removed now?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.


Re: [PATCH] Uninstall .dll last, reinstall first - final version

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 04:45:22PM +0200, Corinna Vinschen wrote:
On May  4 09:05, Buchbinder, Barry (NIH/NIAID) wrote:
 At Tuesday, May 03, 2005 5:28 PM, Corinna Vinschen wrote:
  On May  3 21:49, Max Bowsher wrote:
  The other potential solution would be to attempt to uninstall the
  packages in dependency-sorted order, but that might get awkward in
  the case of circular dependencies.
  
  See my previous posting:  Circular dependencies are bugs, right?
  Creating a dependency tree and complaining about circular dependencies
  in setup would be nice, though.
  
  Corinna
 
 As you pointed out earlier, circular dependencies can be considered bugs in
 the setup.hint files.  Shouldn't they be caught and fixed when setup.ini is
 being made?  Then setup/Brian, which/who has enough to do, wouldn't have to
 worry about it.

In theory yes.  It just won't hurt to have a dependency checker in setup
at one point, methinks.

I hate to disagree but I don't think circular dependencies are always
bugs.

For instance, it would not be inconceivable for gcc to rely on gcc-mingw
since, for correct operation of gcc, gcc-mingw should be present.
However, the same rationale could be made for gcc-mingw.  It doesn't
make any sense to just install gcc-mingw since it needs gcc to function
so it could rely on gcc.

cgf


doxygen update please? (I even have a patch!)

2005-05-04 Thread William. Rivet
Short version:

I would like to see cygwin's doxygen updated. I think I followed the
steps to make the needed files for a cygwin distribution but would like
help. Ideally I would think the maintainer would look at what I have and
work from there. (even if only to tell me to go fix x-y-z)

Comments? Suggestions?



Longer version

doxygen1.2.18 seems to be the latest cygwin build available for doxygen.

I had a need for it so I of course didn't start by following the rules
blush and emailed the maintainer, Ryunosuke Satoh(RS)...well, I'm
sorry if that email made it through because our email filters had a
field day for 2 days afterwards, something about attachment policies and
potential viruses blah-blah-blah...maybe unrelated, I don't know.

Anyway, I don't really know what I'm doing. I read RS's README and
manually applied the provided patch to the new sources. I didn't
understand all of it, and only had one additional modification to make
before I had a successful build. Then I just followed his README
instructions to make the files that seem to be required.


Feel free to email me directly if you can help me move this along.


Thanks everyone for all your hard work,

Bill


Re: doxygen update please? (I even have a patch!)

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 11:08:30AM -0400, William. Rivet wrote:
Short version:

I would like to see cygwin's doxygen updated. I think I followed the
steps to make the needed files for a cygwin distribution but would like
help. Ideally I would think the maintainer would look at what I have and
work from there. (even if only to tell me to go fix x-y-z)

Comments? Suggestions?

This isn't a mailing list for update requests.  Please confine yourself to
the main cygwin mailing list.


Re: Welcoming Brian Dessent as setup maintainer

2005-05-04 Thread Igor Pechtchanski
On Wed, 4 May 2005, Corinna Vinschen wrote:

 On May  4 10:08, Christopher Faylor wrote:
  On Wed, May 04, 2005 at 09:10:15AM -0400, Igor Pechtchanski wrote:
  like the following to the initial welcome page:
  
This is the Cygwin setup program.  It can be used to perform both an
initial setup and subsequent updates, so make sure you remember where
you saved it.
 
  I like this idea.

 AOL.
  ^^^
Acronym OverLoad?  ;-)

 Could be worth at least a silver star :-)

Let's get it into setup first. :-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


Re: Please upload: xemacs-21.4.17-1/xemacs-tags-21.4.17-1/xemacs-emacs-common-21.4.17-1

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 08:37:58PM +0200, Dr. Volker Zell wrote:
 Corinna Vinschen writes:

 One question though:  Why is 21.4.17-1 curr and 21.4.16-1 test?
 Shouldn't 21.4.16-1 better be removed now?

setup.hint should have the following entries.

prev: 21.4.15-1
curr: 21.4.17-1
test: 21.5.16-1

Yes, this is a cut and paste from the hint on sourceware:

prev: 21.4.15-1
curr: 21.4.17-1
test: 21.5.16-1

So all seems to be well.

cgf


doxygen-1.4.2_20050421-1 ready for review.

2005-05-04 Thread Max Bowsher
doxygen-1.4.2_20050421-1 ready for packaging review:
Setup URL:
http://unicorn.robinson.cam.ac.uk/~mob22/cygdoxygen/
setup.hint:
category: Devel
requires: cygwin libpng12
sdesc: A documentation system for C++, C, Java, Objective-C, IDL (Corba and 
Microsoft flavors) and to some extent PHP, C#, and D.
ldesc: Doxygen is a documentation system for C++, C, Java, Objective-C, IDL 
(Corba and Microsoft flavors) and to some extent PHP, C#, and D.

Max.


Re: doxygen-1.4.2_20050421-1 ready for review.

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 08:38:15PM +0100, Max Bowsher wrote:
doxygen-1.4.2_20050421-1 ready for packaging review:

Setup URL:
http://unicorn.robinson.cam.ac.uk/~mob22/cygdoxygen/

setup.hint:
category: Devel
requires: cygwin libpng12
sdesc: A documentation system for C++, C, Java, Objective-C, IDL (Corba 
and Microsoft flavors) and to some extent PHP, C#, and D.
ldesc: Doxygen is a documentation system for C++, C, Java, Objective-C, 
IDL (Corba and Microsoft flavors) and to some extent PHP, C#, and D.

As heretical as it sounds, I don't think there's any reason to review
this.  You've had enough painful experience with packaging for me to
trust that you've gotten this right or, at least, that you'll fix it if
someone complains.

So, I'd say, upload away.

cgf


RE: Summary, was Re: Welcoming ...

2005-05-04 Thread Robb, Sam
 Here's the synopsis of this thread and other recent conversations:

...

 If there was anything I missed, please add.

Improved support for unattended installs would be
particularly nice. The current state of setup is
OK for unattended installs, but there are a couple
of minor glitches here and there that need to be
resolved before unattended installs go as smoothly
as manual installs.

Adding support for specifying a list of packages
to install or upgrade as part of an unattended
install would also be a fine thing.

-Samrobb


Gentle ping for Berkeley DB 4.3 package.

2005-05-04 Thread Max Bowsher
I'm not in any hurry for it, but it would be great if there could be a 
db4.3 package at some point in the next couple of months or so.

Thanks!
Max.


Re: Cannot connect to a Sun server using xterm

2005-05-04 Thread a12
Hello,
Pardon my ignorance, but what am I supposed to do to solve the problem ?
Regards,
Marek
Alexander Gottwald skrev:
On Tue, 3 May 2005, a12 wrote:

connect /tmp/.X11-unix/X0: No such file or directory
X connection to localhost:10.0 broken (explicit kill or server shutdown).
What about this message ?
This just means your local server is not running. Same as before with can't 
connect to localhost:6000. But this time DISPLAY was :0.0, not localhost:0.0

bye
ago


Re: Cannot connect to a Sun server using xterm

2005-05-04 Thread Alexander Gottwald
On Wed, 4 May 2005, a12 wrote:

 Hello,
 
 Pardon my ignorance, but what am I supposed to do to solve the problem ?

Start XWin.

-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Cannot connect to a Sun server using xterm

2005-05-04 Thread a12
Which means: use XDMCP  don't use xterm.
Please correct me, if I am wrong.
Regards,
Marek
Alexander Gottwald skrev:
On Wed, 4 May 2005, a12 wrote:

Hello,
Pardon my ignorance, but what am I supposed to do to solve the problem ?
Start XWin.



XWin -indirect

2005-05-04 Thread Bill Schaffer
Hello.
I am having a problem with XWin -indirect, where the foreign machine 
cannot access my local X server.  I have researched the mailing list 
archives, and found this thread to be very similar:

 http://sourceware.org/ml/cygwin-xfree/2002-06/msg00331.html
But, it did not conclude with an answer that seemed useful to me.  Or 
least, it was not an answer I understood.

My scenario:
-I have several development Solaris and Linux systems, which are 
running xdm, kdm, or dtlogin.

-I have several users running Windows XP with Cygwin/X.  These users 
can connect to all of the Unix systems just fine with the invocation:

 XWin -query target-ip-address
However, this means I have to manage several startup scripts for the 
users, edit and add to them, as target systems change, which they do 
here every couple of weeks.  I have one system which is stable and 
non-changing, so I thought it might be useful to make one script which 
had the invocation:

 XWin -indirect stable-target-system
And let the users select the system they wanted that day.
The problem:
Well, the user does get the list of systems, however, they can only 
access the system specified as the parameter to the indirect option. 
 All of the other systems are blocked from accessing the XWin server 
on the user's machine, including the user's own machine.  An excerpt 
from kdm log output on one of the Linux systems:

 Hung in XOpenDisplay(users_system_addr:0), aborting
 server open failed for users_system_addr:0, giving up
This seems like an access control problem with XWin at the user's 
system.  I would like to run xhost + but the local system can't 
access XWin either.  (Yes, I realize the security implications, but 
want to get it working first)  I have tried establishing an 
/etc/X0.host file, but XWin seems to disregard it.

Could someone provide some insight, or point me in the right 
direction, please?

Thanks in advance,
Bill Schaffer

--
Let it snow


Re: Cannot connect to a Sun server using xterm

2005-05-04 Thread Igor Pechtchanski
On Wed, 4 May 2005, a12 wrote:

 Alexander Gottwald skrev:

  On Wed, 4 May 2005, a12 wrote:
 
   Pardon my ignorance, but what am I supposed to do to solve the
   problem ?
 
  Start XWin.

 Which means: use XDMCP  don't use xterm.
 Please correct me, if I am wrong.

You're wrong.  It means exactly what it says: run startx (or
startxwin.bat, or start XWin.exe ..., or any of your favorite methods
for starting the X server on your local machine) before running ssh -X/Y.

And please don't top-post.  Thanks.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


Re: XWin -indirect

2005-05-04 Thread Alexander Gottwald
Bill Schaffer wrote:

 The problem:

 Well, the user does get the list of systems, however, they can only
 access the system specified as the parameter to the indirect option.
   All of the other systems are blocked from accessing the XWin server
 on the user's machine, including the user's own machine.  An excerpt
 from kdm log output on one of the Linux systems:

   Hung in XOpenDisplay(users_system_addr:0), aborting
   server open failed for users_system_addr:0, giving up

 This seems like an access control problem with XWin at the user's
 system.  I would like to run xhost + but the local system can't
 access XWin either.  (Yes, I realize the security implications, but
 want to get it working first)  I have tried establishing an
 /etc/X0.host file, but XWin seems to disregard it.

XDMCP overrides the xhost access system. More likely a firewall is blocking
access from the system. Are all hosts on the same network?

Running some tracing with tcpdump may help.

bye
ago
NP: SITD - Wegweiser
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Re: XWin -indirect

2005-05-04 Thread Bill Schaffer
Thanks!
That was the tip I needed.  The one machine that couldn't access the 
others via XWin -query was the one I picked to test with.  I went 
over to one of the other Win systems, did the -indirect and had no 
problems.

A Windows firewall issue.
I hate when that happens.
Thanks muchly,
-Bill


Alexander Gottwald wrote:
Bill Schaffer wrote:

The problem:
Well, the user does get the list of systems, however, they can only
access the system specified as the parameter to the indirect option.
 All of the other systems are blocked from accessing the XWin server
on the user's machine, including the user's own machine.  An excerpt
from kdm log output on one of the Linux systems:
 Hung in XOpenDisplay(users_system_addr:0), aborting
 server open failed for users_system_addr:0, giving up
This seems like an access control problem with XWin at the user's
system.  I would like to run xhost + but the local system can't
access XWin either.  (Yes, I realize the security implications, but
want to get it working first)  I have tried establishing an
/etc/X0.host file, but XWin seems to disregard it.

XDMCP overrides the xhost access system. More likely a firewall is blocking
access from the system. Are all hosts on the same network?
Running some tracing with tcpdump may help.
bye
ago
NP: SITD - Wegweiser
--
Let it snow


src/winsup/cygwin ChangeLog cygerrno.h debug.cc

2005-05-04 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2005-05-04 11:00:24

Modified files:
winsup/cygwin  : ChangeLog cygerrno.h debug.cc 

Log message:
* cygerrno.h (__set_errno): Define as inline function here.
(set_errno): Always define as call to __set_errno.
* debug.cc (__set_errno): Move to cygerrno.h.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2869r2=1.2870
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygerrno.h.diff?cvsroot=srcr1=1.11r2=1.12
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/debug.cc.diff?cvsroot=srcr1=1.53r2=1.54



src/winsup/cygwin ChangeLog cygerrno.h

2005-05-04 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2005-05-04 11:05:13

Modified files:
winsup/cygwin  : ChangeLog cygerrno.h 

Log message:
* cygerrno.h (__set_errno): Remove useless parentheses.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.2870r2=1.2871
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygerrno.h.diff?cvsroot=srcr1=1.12r2=1.13



Re: Bespoke installations: simple elegance of setup.exe when setup.ini is absent

2005-05-04 Thread Carlo Florendo
Christopher Faylor wrote:
On Tue, May 03, 2005 at 12:57:03AM +0100, Cliff Hones wrote:
 

Gary R. Van Sickle wrote:
   

...
[Yet more boring vitriolic rubbish.]
...
 

I've been on this list for a good four years now, and never ever
considered setting up a filter.  I came close during the fortune
flamewars and I'm getting even more close now.  Please, Gary and CGF,
can you take your discussion offline.
   

Sorry, Cliff.  You're right.  I'll stop now.  I was having fun but it
was at the expense of the cygwin mailing list.
There really is no place to take this off-line since Gary has adamantly
vetoed the idea of personal email.  I guess the cygwin-talk list is an
option but there's no reason to bore people over there either.
So, I'll stop now.  My apologies to the cygwin list.
 

Oh.  No apologies please...This thread has been very entertainingand 
yes, a few threads ago too.   Cygwin really is the best mailing list.  :)

--
Carlo Florendo
Astra Philippines Inc.
www.astra.ph
--
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 alternatives (was Re: Bespoke installations: simple elegance of setup.exe when setup.ini is absent)

2005-05-04 Thread Arturus Magi
Jani Tiainen wrote:
Why to reinvent wheel..?
You could use existing systems, like Debian package-system (deb), 
RPM-system like Fedora Core/RedHat, or Gentoo's Emerge.
I also seem to recall someone using apt-get in Cygwin-space at one time, 
but Google doesn't want to be my friend 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: Best antivirus for cygwin? - was Norton antivirus and the Trojans

2005-05-04 Thread Arturus Magi
bob sandefur wrote:
Hi-
Apparently Norton antivirus is getting a false positive with rsync and wget.
I would really like to dump Norton AntiVirus but I have never found any AV
program to be very satisfactory.  I would like the following:
1. 64-bit compatible (if the drivers ever show up I will migrate to xp64)
2. Relatively cheap for up to 10 machines (every year I buy enough three or
five packs of Norton for about 10 or 20 bucks with rebates, uninstall the
old version and run the new version for a year.  This is much cheaper than
upgrading through the Norton web site.).
3. Auto updating.
4. Cygwin friendly
I use AVG myself, but the ultimate option for Cygwin-friendliness is the 
port of clamscan already in the 'net Release.

You'll have to set up a cron tab to run freshclam to autoupdate 
clamscan, though (someone else will have to advise you on that).

--
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 I mount an EXT3 partition that WinXP sees as (Unknown partition)?

2005-05-04 Thread Morche Matthias
On http://www.fs-driver.org/index.html You will find an ext2-driver for WXP, 
who is also able to read and write ext3-filesystems.

  matthias


[EMAIL PROTECTED] wrote:
 FYI, explore2fs found both my boot and root partitions
 on the firewire external drive with no trouble.
 
 Thanks for the pointer, this is just what I needed, an
 easy way to copy info over to cygwin.
 
 Peter

--
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: echo $(echo '\r') oddity

2005-05-04 Thread Jan Just Keijser
socat (http://www.dest-unreach.org/socat/) is a multi-purpose relay tool
that can be used to connect sockets to pipes and vice versa, or terminal
pty's to TCP sockets etc etc. I have found it a very handy tool to build
VPN-like things in a environment where you cannot or do not want to modify
the existing networking infrastructure. 

The socat code comes with a test script for testing socat functionality.
Prior to upgrading to cygwin 1.5.16 almost all socat options were functional
under cygwin, except for a few that used the 'exec:'parameter. An example of
a command that is failing is:
  ./socat -t 0.1 exec:'openssl s_server -accept 12002 -quiet -cert
testsrv.pem' pipe 
  echo hallo | ./socat -t0.1  - openssl:localhost:12002,verify=0 

this command runs fine on Linux but under Cygwin there is no output echoed
back from the openssl s_server application. More specifically, the socat
server process (first line) does return the output but it looks like the
output never reaches the client - to me, that sounds like a pipe flushing
problem or a line-termination problem. 

the command that I reported yesterday:
  echo $(echo '\r')
is now working under a newly-compiled version of bash 3.0 in which I
commented out the offending section in subst.c.

An interesting note is that after I upgraded to cygwin 1.5.16 (from 1.5.14)
yesterday) a few other options ALSO stopped working. I am not sure what has
caused this.

regards,

JJ Keijser

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Brian Dessent
 Sent: Tuesday, May 03, 2005 17:54
 To: 'cygwin@cygwin.com'
 Subject: Re: echo $(echo '\r') oddity
 
 Jan Just Keijser wrote:
 
  thx for the quick answer. Lemme guess: I am going to have 
 to build my 
  own version of bash that does not have this behaviour... 
 what is going 
  to break if I undo this patch from the bash source code?
  
  It's a shame though, coz this seems to be the only issue that stops 
  that nifty socat from working... all tests pass except those tests 
  that use `` or
  $() ...
 
 My guess is that that patch was added so that command 
 substitution on windows programs works.  Or something to that 
 effect.  You could certainly recompile without it, and see 
 what happens.
 
 But the question that I think we're left with is what exactly 
 is socat doing that is broken by this?  If you give examples 
 I'm sure someone here will be able to show you a way to do 
 what you want without patching anything.  Note: I have no 
 idea what socat is...
 
 Brian
 
 --
 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/
 

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

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



Using -mno-cygwin flag

2005-05-04 Thread Brian Salter-Duke
I have had some success with using the -mno-cygwin flag, but this more
complex case is failing. The code is mostly Fortran and all the Fortran
routines compiles with the -mno-cygwin flag OK. However it uses some C 
routines which it puts in a library. The script for doing this, modified 
with the -mno-cygwin flag starts off with these errors:-

Beginning the DDI compilation at Wed May 4 18:09:43 AUSCST 2005
Compiling common object: soc_create.o
gcc -DLINUX -O3 -mno-cygwin -fstrict-aliasing -I./include -DDDI_SOC 
-DMAX_SMP_PROCS=8 -DMAX_NODES=32 -c ./src/soc_create.c -o ./obj/soc_create.o
In file included from src/soc_create.c:21:
include/mysystem.h:34:28: sys/resource.h: No such file or directory
include/mysystem.h:73:23: pthread.h: No such file or directory
include/mysystem.h:81:21: netdb.h: No such file or directory
include/mysystem.h:82:26: sys/socket.h: No such file or directory
include/mysystem.h:83:26: netinet/in.h: No such file or directory
include/mysystem.h:84:27: netinet/tcp.h: No such file or directory

Now I think it is looking in /usr/include/mimgw. Is that right? Before
line 34 of mysystem.h there are several include files which are in
/usr/include/mingw or /usr/include/mingw/sys. However the ones it flags
above are not there, although they are in /usr/include or
/usr/include/sys.

Now, I did not install any of the mingw stuff deliberately. When I came
to use -mno-cygwin, I found they were already there. However, am I
missing something? Or is there another explanation of the above errors.

Everything compiles OK without the -mno-cygwin flag and the code runs
under cygwin fine.

Regards to all, Brian.

-- 
Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
 Post: 626 Melbourne Rd, Spotswood, VIC, 3015, Australia
  Phone 03-93992847. http://members.iinet.net.au/~linden1/brian/

--
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: SSHD key based authentication hangs cscript

2005-05-04 Thread Corinna Vinschen
On May  4 11:15, Stuart Westbury wrote:
 There are actually two problems here: 1) a problem with CygWin/OpenSSH
 (after  public  key  authentication  GetUserName()  returns  incorrect
 value)...
 
 Is this my problem?

No, that's our problem.  There's nothing we can do about it, I'm sorry.

What happens is this:  When sshd calls seteuid(), the Cygwin DLL creates
a new user token based on the information in the SAM and Cygwin's /etc/passwd
and /etc/group files.  Nothing wrong with that, but since this happens
in user land and not within a registered Windows authentication package,
there's a problem here.  The new sub process still runs in the authenticated
session for the SYSTEM resp. the sshd_server user.  Even though the new
user token contains all the correct information otherwise, it doesn't
contain a new session identifier since as a non-authentication package,
it can't create its own session identifier.  This has the unfortunate
result, that Windows functions still return the name resp. SID of the user
who started the original process (SYSTEM/sshd_server).  From my point of
view this is a bug in Windows, but who am I to be asked?

This doesn't happen when using password authentication because in this
case the authentication is done by the standard authentication package
and a new, shiny session identifier is added to the new user token.


And the second question is what?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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.16-1: chmod problem

2005-05-04 Thread Corinna Vinschen
On May  4 06:53, Pach Roman (GS-EC/ESA4) * wrote:
 I admit I'm stubborn about this topic but I'd like to propose 
 the change of chmod implementation.
 I thing, it would be nice if the 'chmod +/-w' would have in the discussed 
 case the same
 functionality as the Windows' command 'attrib'.
 See please the appended screenshot.

Try the latest snapshot from http://www.cygwin.com/snapshots/.
I've tried to workaround a bug in chmod since it was originally meant
to work the way you suggest.  However, if you don't have the 
write attribute permission set in the file's ACL, you're out of luck.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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 sshd service could not be started

2005-05-04 Thread Corinna Vinschen
On May  3 15:57, Igor Pechtchanski wrote:
 You probably want to reverse the test, e.g.,
 
 --- ssh-host-config.orig  2005-05-02 13:09:13.984375000 -0700
 +++ ssh-host-config   2005-05-02 13:23:50.640625000 -0700
 @@ -583,6 +583,16 @@
   chown ${_user}.544 ${LOCALSTATEDIR}/log/sshd.log
fi
  fi
 +if ! mount | egrep -q 'on /(|usr/(bin|lib)) type system'
 +then
 +  echo
 +  echo Warning: It appears that you have user mode mounts (\Just me\
 +  echo chosen during install.)  Any daemons installed as services will
 +  echo fail to function unless system mounts are used.  To change this,
 +  echo re-run setup.exe and choose \All users\.
 +  echo
 +  echo For more information, see http://cygwin.com/faq/faq0.html#TOC33;
 +fi
fi
  fi
 
 In the future versions, we should also check for user mounts for the SYSTEM
 user -- unlikely, but very nasty and hard to detect.  I also wonder if the
 above test should go into configurations for all services, or perhaps even
 added to cygrunsrv in some form...

Well, you know the acronym for this... ;-)


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Dave Korn
Original Message
From: John Williams
Sent: 04 May 2005 06:20

 OK - I see the confusion.  Make is spawning ash as the subshell, not
 bash.  Now everything you said makes sense.  Out of interest, can that
 behaviour be modified at the runtime/user/Makefile level?

  The make documentation regarding $SHELL would suggest so.  Search for the
Command execution node in info make.

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: echo $(echo '\r') oddity

2005-05-04 Thread Brian Dessent
Jan Just Keijser wrote:

 socat (http://www.dest-unreach.org/socat/) is a multi-purpose relay tool
 that can be used to connect sockets to pipes and vice versa, or terminal
 pty's to TCP sockets etc etc. I have found it a very handy tool to build
 VPN-like things in a environment where you cannot or do not want to modify
 the existing networking infrastructure.

Thanks for the tip.  It indeed does look like a very powerful program, and I am 
quite
glad to have it in my tool chest now.

I built socat and tried the very same commands you did, and it seems to work 
fine.  I
normally run a CVS build of the Cygwin DLL but I switched to 1.5.16 and it 
works fine
with that version as well.

$ socat -t 0.1 exec:'openssl s_server -accept 12002 -quiet -cert cacert.pem -key
privkey.pem' pipe 
[1] 3276

$ socat -d -d -t 0.1 - openssl:localhost:12002,cafile=cacert.pem,verify=1
2005/05/04 02:19:30 socat[2460] N reading from and writing to stdio
2005/05/04 02:19:30 socat[2460] N opening connection to AF=2 127.0.0.1:12002
2005/05/04 02:19:30 socat[2460] N successfully connected from local address AF=2
127.0.0.1:4335
2005/05/04 02:19:30 socat[2460] N SSL connection using DHE-RSA-AES256-SHA
2005/05/04 02:19:30 socat[2460] N starting data transfer loop with FDs [0,1] 
and [3,3]
hello
hello
goodbye
goodbye
2005/05/04 02:19:34 socat[2460] N socket 1 (fd 0) is at EOF
2005/05/04 02:19:34 socat[2460] N socket 2 (fd 3) is at EOF
2005/05/04 02:19:34 socat[2460] W shutdown(3, 2): Bad file descriptor
2005/05/04 02:19:34 socat[2460] N exiting with status 0

The hello and goodbye I each typed once, the second one was echoed back to me.  
I then
hit ^D.  If there was any network problems I would not have expected the ssl 
handshake
to succeed (I used a dummy cert on both sides as you can tell.)

 this command runs fine on Linux but under Cygwin there is no output echoed
 back from the openssl s_server application. More specifically, the socat
 server process (first line) does return the output but it looks like the
 output never reaches the client - to me, that sounds like a pipe flushing
 problem or a line-termination problem.

I can't quite parse this.  You say it returns the output but it never reaches 
the
client?  How do you know this?  Surely this swiss army knife of socat will have 
enough
verbose debugging information for you to find out what's going on.

 the command that I reported yesterday:
   echo $(echo '\r')
 is now working under a newly-compiled version of bash 3.0 in which I
 commented out the offending section in subst.c.

I very much doubt that this has anything to do with the above.  Pipes and 
sockets are
always opened in binary mode by default.  Regular files default to binary mode 
as well,
unless you chose 'Dos' at setup.  Even if you did, that still would result in 
no change
in behavior with pipes or sockets -- that is why bash had to be patched to set 
textmode
explicitly on the subprocess' fd, becauase unless the application asks for that 
it will
never be done.

Brian

--
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: SSHD key based authentication hangs cscript

2005-05-04 Thread Brian Dessent
Corinna Vinschen wrote:

 Nothing wrong with that, but since this happens
 in user land and not within a registered Windows authentication package,
 there's a problem here.  The new sub process still runs in the authenticated

Is that what the old 'subautha' thing was aiming at?  To be able to
issue a real SID?  (I know that it's dead and gone now, but I was
curious.)

Brian

--
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: SSHD key based authentication hangs cscript

2005-05-04 Thread Corinna Vinschen
On May  4 02:49, Brian Dessent wrote:
 Corinna Vinschen wrote:
 
  Nothing wrong with that, but since this happens
  in user land and not within a registered Windows authentication package,
  there's a problem here.  The new sub process still runs in the authenticated
 
 Is that what the old 'subautha' thing was aiming at?  To be able to
 issue a real SID?  (I know that it's dead and gone now, but I was
 curious.)

Yes, that was the original idea.  But it had two drawbacks, it had to
be installed into the WINDOWS/system32 path plus adding a registry key
and ob-reboot, and it only worked well on 2K but not on NT4, AFAIR
(No XP on the horizon back then).

I'm in the progress of beginning to think of starting to plan to create
a real authentication package for Cygwin... for about three or four years
now.  The frustrating lack of example code from Microsoft and the Net
holds me back :-(


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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: Using -mno-cygwin flag

2005-05-04 Thread Brian Dessent
Brian Salter-Duke wrote:

 Beginning the DDI compilation at Wed May 4 18:09:43 AUSCST 2005
 Compiling common object: soc_create.o
 gcc -DLINUX -O3 -mno-cygwin -fstrict-aliasing -I./include -DDDI_SOC 
 -DMAX_SMP_PROCS=8 -DMAX_NODES=32 -c ./src/soc_create.c -o ./obj/soc_create.o
 In file included from src/soc_create.c:21:
 include/mysystem.h:34:28: sys/resource.h: No such file or directory
 include/mysystem.h:73:23: pthread.h: No such file or directory
 include/mysystem.h:81:21: netdb.h: No such file or directory
 include/mysystem.h:82:26: sys/socket.h: No such file or directory
 include/mysystem.h:83:26: netinet/in.h: No such file or directory
 include/mysystem.h:84:27: netinet/tcp.h: No such file or directory

This is working just the way it's supposed to.  I don't think you fully
understand what the -mno-cygwin flag means.  Cygwin provides the
unix/posix emulation layer, things like the berkeley sockets API and
pthreads[*] that you are missing above.  When you use -mno-cygwin, you
are using a completely different compiler.  Mingw has no emulation
layer, that's the minimalist part.  When you use mingw, you get a
standard C runtime library (provided by MSVCRT, i.e. Windows), the bare
win32 API, and not much else.  No berkeley sockets.  No pthreads.  None
of the stuff that Cygwin provides.

-mno-cygwin does not just make things that doesn't depend on the cygwin
DLL, it removes Cygwin from the equation entirely.

Brian

[*] Yes I know of projects like pthreads-win32.  But that's neither
Cygwin nor mingw, really.

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



AW: 1.5.16-1: chmod problem

2005-05-04 Thread Pach Roman (GS-EC/ESA4) *
Hello Corinna,
it's running now !!!
Thanks you very much for your fast reaction.
Roman

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag
von Corinna Vinschen
Gesendet: Mittwoch, 4. Mai 2005 11:06
An: cygwin@cygwin.com
Betreff: Re: 1.5.16-1: chmod problem


On May  4 06:53, Pach Roman (GS-EC/ESA4) * wrote:
 I admit I'm stubborn about this topic but I'd like to propose 
 the change of chmod implementation.
 I thing, it would be nice if the 'chmod +/-w' would have in the discussed 
 case the same
 functionality as the Windows' command 'attrib'.
 See please the appended screenshot.

Try the latest snapshot from http://www.cygwin.com/snapshots/.
I've tried to workaround a bug in chmod since it was originally meant
to work the way you suggest.  However, if you don't have the 
write attribute permission set in the file's ACL, you're out of luck.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

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



sshd problem: setgid: Invalid argument

2005-05-04 Thread Douglas De Couto
When I try to log into my Windows Server 2003 SP1 machine over ssh, I get the 
following error and my connection is closed after typing my password:

$ ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password: 
Last login: Wed May  4 14:04:26 2005 from mymachine
setgid: Invalid argument
Connection to machine closed.

I am running a relatively recent version of Cygwin on the machine (from this 
spring), and everything had been working fine until I made the following error, 
blowing away my /etc/group file while logged into the machine over ssh.

mkgroup -l -d  /etc/group

I searched the web and the best I could find was that perhaps my user didn't 
have a valid group on the machine, but, that's not the case.

I've tried reinstalling the OpenSSH package, removing the sshd user from the 
system, and various other combinations of tricks, but, no change.

Can anyone suggest a fix short of reinstalling all of Cygwin on that machine?

Thanks,

Doug



--
Douglas S. J. De Couto
d.decouto *at* orbisfunds.com
 

--
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: sshd problem: setgid: Invalid argument

2005-05-04 Thread Steven Hartland
iirc your cygwin passwords are out of sync with windows.
The details of this are covered in the readme I believe its been
a long while since I set it up.
   Steve
- Original Message - 
From: Douglas De Couto

When I try to log into my Windows Server 2003 SP1 machine over ssh, I get the following error and my connection is closed after 
typing my password:

$ ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
Last login: Wed May  4 14:04:26 2005 from mymachine
setgid: Invalid argument
Connection to machine closed.
I am running a relatively recent version of Cygwin on the machine (from this spring), and everything had been working fine until I 
made the following error, blowing away my /etc/group file while logged into the machine over ssh.

mkgroup -l -d  /etc/group
I searched the web and the best I could find was that perhaps my user didn't have a valid group on the machine, but, that's not 
the case.

I've tried reinstalling the OpenSSH package, removing the sshd user from the system, and various other combinations of tricks, 
but, no change.

Can anyone suggest a fix short of reinstalling all of Cygwin on that machine? 



This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please 
telephone (023) 8024 3137
or return the E.mail to [EMAIL PROTECTED]
--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Igor Pechtchanski
On Wed, 4 May 2005, John Williams wrote:

 Christopher Faylor wrote:

In this case, the operative observation is bash != ash.  PWD is a
bash construct.  You would be much better off just using the gnu
make CURDIR variable.  Changing PWD to CURDIR in your examples
makes things work as you'd expect.
  
   Thanks for the quick response and workaround.
  
   While what you say might be a true statement, better off means
   different things to different people!
 
   What surprised me was that the same shell, and same make, resulted
   in different behaviour.  I guess this is just reflecting differences
   in the underlying process architectures of Linux vs Windows.
 
  Again, it *isn't* the same shell.  You have now learned that it isn't
  the same shell and you now know that this is the reason for the
  inconsistency.  ash isn't normally used as /bin/sh on linux.  A
  stripped down version of ash is used as /bin/sh for performance
  purposes on cygwin.  ash does not set PWD.

 OK - I see the confusion.  Make is spawning ash as the subshell, not
 bash. Now everything you said makes sense.  Out of interest, can that
 behaviour be modified at the runtime/user/Makefile level?

In addition to what Gary said, you could also try the following (WARNING:
untested), which isn't as drastic:

mount -u -f -b -x `cygpath -aw /bin/bash.exe` /bin/sh.exe
mount -u -f -b -x `cygpath -aw /bin/bash` /bin/sh
make
umount -u /bin/sh.exe
umount -u /bin/sh

I may have gotten some flags slightly wrong -- man mount should help
with that.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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 sshd service could not be started

2005-05-04 Thread Igor Pechtchanski
On Wed, 4 May 2005, Corinna Vinschen wrote:

 On May  3 15:57, Igor Pechtchanski wrote:
  You probably want to reverse the test, e.g.,
 
  --- ssh-host-config.orig2005-05-02 13:09:13.984375000 -0700
  +++ ssh-host-config 2005-05-02 13:23:50.640625000 -0700
  @@ -583,6 +583,16 @@
  chown ${_user}.544 ${LOCALSTATEDIR}/log/sshd.log
 fi
   fi
  +if ! mount | egrep -q 'on /(|usr/(bin|lib)) type system'
  +then
  +  echo
  +  echo Warning: It appears that you have user mode mounts (\Just 
  me\
  +  echo chosen during install.)  Any daemons installed as services 
  will
  +  echo fail to function unless system mounts are used.  To change 
  this,
  +  echo re-run setup.exe and choose \All users\.
  +  echo
  +  echo For more information, see 
  http://cygwin.com/faq/faq0.html#TOC33;
  +fi
 fi
   fi

I'm guessing the above is acceptable?

  In the future versions, we should also check for user mounts for the
  SYSTEM user -- unlikely, but very nasty and hard to detect.  I also
  wonder if the above test should go into configurations for all
  services, or perhaps even added to cygrunsrv in some form...

 Well, you know the acronym for this... ;-)

Oh, you mean http://cygwin.com/acronyms/#BWAM? ;-)
I know someone will have to do that, just wanted to put that one in the
archives.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 09:27:15AM -0400, Igor Pechtchanski wrote:
On Wed, 4 May 2005, John Williams wrote:

 Christopher Faylor wrote:

In this case, the operative observation is bash != ash.  PWD is a
bash construct.  You would be much better off just using the gnu
make CURDIR variable.  Changing PWD to CURDIR in your examples
makes things work as you'd expect.
  
   Thanks for the quick response and workaround.
  
   While what you say might be a true statement, better off means
   different things to different people!
 
   What surprised me was that the same shell, and same make, resulted
   in different behaviour.  I guess this is just reflecting differences
   in the underlying process architectures of Linux vs Windows.
 
  Again, it *isn't* the same shell.  You have now learned that it isn't
  the same shell and you now know that this is the reason for the
  inconsistency.  ash isn't normally used as /bin/sh on linux.  A
  stripped down version of ash is used as /bin/sh for performance
  purposes on cygwin.  ash does not set PWD.

 OK - I see the confusion.  Make is spawning ash as the subshell, not
 bash. Now everything you said makes sense.  Out of interest, can that
 behaviour be modified at the runtime/user/Makefile level?

In addition to what Gary said, you could also try the following (WARNING:
untested), which isn't as drastic:

mount -u -f -b -x `cygpath -aw /bin/bash.exe` /bin/sh.exe
mount -u -f -b -x `cygpath -aw /bin/bash` /bin/sh
make
umount -u /bin/sh.exe
umount -u /bin/sh

I may have gotten some flags slightly wrong -- man mount should help
with that.
HTH,

I really don't understand why using CURDIR isn't the ultimate solution
here.  If you can mess with your mount table or copy bash to sh, then
you really should be able to also change your Makefile to use $(CURDIR)
rather than $$PWD.

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: setup alternatives (was Re: Bespoke installations: simple elegance of setup.exe when setup.ini is absent)

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 03:04:24AM -0400, Arturus Magi wrote:
Jani Tiainen wrote:
Why to reinvent wheel..?

You could use existing systems, like Debian package-system (deb),
RPM-system like Fedora Core/RedHat, or Gentoo's Emerge.

I also seem to recall someone using apt-get in Cygwin-space at one
time, but Google doesn't want to be my friend today.

When I asked for alternatives I was thinking that maybe anyone who had
to use a screen reader would have a suggestion for software that was
more accessible than cygwin's setup.exe.  So far, I haven't seen any
suggestions which take that into account.

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/



Perl: maximum number of lines for negative lookahead assertion

2005-05-04 Thread Paul G Cantalupo
Hello,

I'm using the negative lookahead assertion in a regular expression to
parse tokens of a text file that start with a ''. Some of the tokens can
be very long like 500, 1000 or up to 2000 lines long. It seems that the
negative lookahead assertion fails on tokens that are too many lines long.
For example, if you run the following code on Cygwin Perl version 5.8.6,
the program crashes at line 1547. I'm running this on a Win2K, 512 MB Ram
machine.  Also, I've attached the output from cygcheck -s -r.

I've posted this to perlmonks.org. Please see the discussion at
http://www.perlmonks.org/index.pl?node_id=453725. Grinder asked I don't
suppose that your Cygwin or Mac builds of Perl do something extra, like running 
in
utf-8 by default? Does anybody know if Cygwin Perl runs utf-8 by default?

#!/usr/bin/perl

use strict;

# initially, create a scalar that is 1 line long
my $line = .\n x 1;
my $incr = 1;

while (1) { # run until it crashes

   while ($line =~ /^(.*)\n(^(?!).*\n)+/gm) {
  print Number of lines: , length($line)-1,\n;
   }

   # add another line
   $line .= \n x $incr;
}



Thank you,

Paul

Paul Cantalupo
Research Specialist/Systems Programmer
559 Crawford Hall
Department of Biological Sciences
University of Pittsburgh
Pittsburgh, PA 15260
Work: 412-624-4687
Fax: 412-624-4759

Ask me about Toastmasters: www.toastmasters.org
Midday Club Treasurer

Cygwin Configuration Diagnostics

Current System Time: Wed May 04 10:21:37 2005



Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4



Path:   C:\cygwin\lib\subversion\bin

C:\cygwin\usr\local\bin

C:\cygwin\bin

C:\cygwin\bin

C:\cygwin\usr\X11R6\bin

.\

%SDS_ALGO_PATH%

c:\WINNT\system32

c:\WINNT

c:\WINNT\System32\Wbem

c:\jdk1.3.1_06\bin

c:\jdk1.3.1_06\jre\bin

c:\Program Files\MSDE\BINN

c:\Program Files\Imview

%FMQ_DIR%\lib

%FMQ_DIR%\bin

c:\Program Files\MySQL\MySQL Server 4.1\bin

.\

.\

C:\cygwin\home\lupey\bin\

c:\Program Files\Apache Group\Apache\htdocs\pipaslab\projects\VGP\bin\

C:\cygwin\usr\local\blast\

C:\cygwin\usr\local\clustalw1.83\

C:\cygwin\usr\local\phylip-3.62\exe\

C:\cygwin\usr\local\emboss\bin\



Output from C:\cygwin\bin\id.exe (nontsec)

UID: 1000(lupey) GID: 513(None)

513(None)



Output from C:\cygwin\bin\id.exe (ntsec)

UID: 1000(lupey) GID: 513(None)

513(None)547(Power Users) 545(Users)



SysDir: C:\WINNT\system32

WinDir: C:\WINNT



HOME = `C:\cygwin\home\lupey'

MAKE_MODE = `unix'

PWD = `/home/lupey/VGP/Genomes/Adenovirus'

USER = `lupey'



HKEY_CURRENT_USER\Software\Cygnus Solutions

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2

  (default) = `/cygdrive'

  cygdrive flags = 0x0022

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/

  (default) = `C:\cygwin'

  flags = 0x000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin

  (default) = `C:\cygwin/bin'

  flags = 0x000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib

  (default) = `C:\cygwin/lib'

  flags = 0x000a

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options



a:  fd N/AN/A

c:  hd  NTFS 74002Mb  26% CP CS UN PA FC 

d:  hd  NTFS  2314Mb   8% CP CS UN PA FC WD800JB_2

e:  fd N/AN/A

f:  cd N/AN/A

g:  hd  NTFS 14009Mb  88% CP CS UN PA FC 

h:  hd  FAT32  814Mb   6% CPUN   LOCAL DISK



C:\cygwin  /  system  binmode

C:\cygwin/bin  /usr/bin   system  binmode

C:\cygwin/lib  /usr/lib   system  binmode

.  /cygdrive  system  binmode,cygdrive



Found: C:\cygwin\bin\awk.exe

Found: C:\cygwin\bin\bash.exe

Found: C:\cygwin\bin\cat.exe

Found: C:\cygwin\bin\cp.exe

Found: C:\cygwin\bin\cpp.exe

Found: C:\cygwin\bin\find.exe

Found: C:\cygwin\bin\gcc.exe

Found: C:\cygwin\bin\gdb.exe

Found: C:\cygwin\bin\grep.exe

Found: C:\cygwin\bin\ld.exe

Found: C:\cygwin\bin\ls.exe

Found: C:\cygwin\bin\make.exe

Found: C:\cygwin\bin\mv.exe

Found: C:\cygwin\bin\rm.exe

Found: C:\cygwin\bin\sed.exe

Found: C:\cygwin\bin\sh.exe

Found: C:\cygwin\bin\tar.exe



  125k 2004/12/30 C:\cygwin\lib\subversion\bin\cygsvn_client-1-0.dll

   28k 2004/12/30 C:\cygwin\lib\subversion\bin\cygsvn_delta-1-0.dll

   23k 2004/12/30 C:\cygwin\lib\subversion\bin\cygsvn_diff-1-0.dll

   15k 2004/12/30 C:\cygwin\lib\subversion\bin\cygsvn_fs-1-0.dll

  113k 2004/12/30 

Re: sh.exe coredumps when init.exe is running as service

2005-05-04 Thread Bob Heckel
* On Tue, May 03, 2005 at 04:33:35PM -0400, Igor Pechtchanski wrote:
 On Tue, 3 May 2005, Dr. Volker Zell wrote:
 
  I'm in the process of updating my packages. I just upgraded to
  cygwin-1.5.16 from 1.5.12.
 
  Now whenever I run configure from one of my packages sh.exe segfaults
  randomly. A fresh installation of cygwin doesn't have this problem.
 
  The only difference between the problematic installation and the fresh
  one is a running cygwin init service from sysvinit-2.84-4. When I stop
  the init service everything is fine again. (Under cygwin 1.5.12 there
  was no problem)
 
  I can reproduce this problem when ruuning init as service whithout
  adding any system service with chkconfig --add
 
  Is anybody using init and can confirm my findings ?
 
 I'm not using init, but I do observe random crashes of processes
 (sometimes sh.exe, sometimes perl, sometimes others) with not-very-useful
 stackdumps.  I don't have more information at the moment, so didn't report
 this to the list.  It seems to be correlated with heavy memory usage on
 the machine.  I'll post when I have any debugging info.
   Igor

At the risk of being a me too post -- I don't run init either but
I've experienced the same stackdump problem.  

I'm not able to provide much info which is why I've kept quiet
too.  I could not find a pattern on my two W2K machines, same random
stackdumps across almost all apps.

After unsuccessfully doing clean reinstalls of 1.5.14 and 1.5.15 I
gave up, reverted to 1.5.12 and uninstalled cron to stabilize my
systems.

Bob

--
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 sshd service could not be started

2005-05-04 Thread Corinna Vinschen
On May  4 09:35, Igor Pechtchanski wrote:
 On Wed, 4 May 2005, Corinna Vinschen wrote:
  On May  3 15:57, Igor Pechtchanski wrote:
   You probably want to reverse the test, e.g.,
   [...]
 I'm guessing the above is acceptable?

Yes, it is.  Thanks.

   In the future versions, we should also check for user mounts for the
   SYSTEM user -- unlikely, but very nasty and hard to detect.  I also
   wonder if the above test should go into configurations for all
   services, or perhaps even added to cygrunsrv in some form...
 
  Well, you know the acronym for this... ;-)
 
 Oh, you mean http://cygwin.com/acronyms/#BWAM? ;-)
 I know someone will have to do that, just wanted to put that one in the
 archives.

Ok.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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: sh.exe coredumps when init.exe is running as service

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 10:33:53AM -0400, Bob Heckel wrote:
* On Tue, May 03, 2005 at 04:33:35PM -0400, Igor Pechtchanski wrote:
 On Tue, 3 May 2005, Dr. Volker Zell wrote:
 
  I'm in the process of updating my packages. I just upgraded to
  cygwin-1.5.16 from 1.5.12.
 
  Now whenever I run configure from one of my packages sh.exe segfaults
  randomly. A fresh installation of cygwin doesn't have this problem.
 
  The only difference between the problematic installation and the fresh
  one is a running cygwin init service from sysvinit-2.84-4. When I stop
  the init service everything is fine again. (Under cygwin 1.5.12 there
  was no problem)
 
  I can reproduce this problem when ruuning init as service whithout
  adding any system service with chkconfig --add
 
  Is anybody using init and can confirm my findings ?
 
 I'm not using init, but I do observe random crashes of processes
 (sometimes sh.exe, sometimes perl, sometimes others) with not-very-useful
 stackdumps.  I don't have more information at the moment, so didn't report
 this to the list.  It seems to be correlated with heavy memory usage on
 the machine.  I'll post when I have any debugging info.
  Igor

At the risk of being a me too post -- I don't run init either but
I've experienced the same stackdump problem.  

I'm not able to provide much info which is why I've kept quiet
too.  I could not find a pattern on my two W2K machines, same random
stackdumps across almost all apps.

After unsuccessfully doing clean reinstalls of 1.5.14 and 1.5.15 I
gave up, reverted to 1.5.12 and uninstalled cron to stabilize my
systems.

Ok.  Until someone actually has details, I don't see any reason to post
more me toos.

I really do trust that Volker is not crazy and is reporting a problem.
Random stack dumps are not a good thing and it is something that we
want to fix but if you can't provide any more details than I saw one,
too! then I can't provide any info, but me too email is not any
help whatsoever.

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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Peter Farley
But what if it is *not* your Makefile, but someone
else's, e.g. the many GNU source packages that expect
bash behavior?  Surely you don't intend that ordinary
users (well, OK, anyone compiling from a source
package isn't really ordinary) should modify every
package maintained by GNU in order to make it under
cygwin, do you?

With respect,

Peter

P.S. - If there have already been discussions or if
there already exists documentation on why ash vs. bash
(I gather it is for performance reasons), I'd
appreciate (a) pointer(s) so I could better learn the
history so I don't re-hash settled issues.

--- Christopher Faylor
[EMAIL PROTECTED] wrote:
Snipped 
 I really don't understand why using CURDIR isn't
 the ultimate solution here.  If you can mess with
 your mount table or copy bash to sh, then
 you really should be able to also change your
 Makefile to use $(CURDIR) rather than $$PWD.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Dave Korn
Original Message
From: Peter Farley
Sent: 04 May 2005 16:06

 But what if it is *not* your Makefile, but someone
 else's, e.g. the many GNU source packages that expect
 bash behavior?  Surely you don't intend that ordinary
 users (well, OK, anyone compiling from a source
 package isn't really ordinary) should modify every
 package maintained by GNU in order to make it under
 cygwin, do you?


  HELLO?  CAN ANYONE HEAR ME?tap-tap-tap  Testing, testing,  is this
thing on?  Am I invisible all of a sudden?  Has everyone in the world gone
mad except me?  Why is everyone coming out with awkward solutions involving
remounting mounts or fiddling with symlinks or hacking around every
poorly-written-makefile-containing-nonportable-bashisms-in-the-whole-world?


  I did actually post the answer to this problem six hours and four posts
ago.  I guess it must be stuck somewhere behind a heavy flow of spam and not
made it to the list yet.  Anyway here it is again.

make SHELL=/bin/bash.exe

  This FIXES your original testcase.  Look, if you don't believe me:

[EMAIL PROTECTED] ~/maketest make -C topdir SHELL=/bin/bash.exe
make: Entering directory `/home/dk/maketest/topdir'
In topdir, TOPDIR=/home/dk/maketest/topdir
In topdir, PWD=/home/dk/maketest/topdir
make -C subdir all
make[1]: Entering directory `/home/dk/maketest/topdir/subdir'
in subdir, TOPDIR=/home/dk/maketest/topdir
in subdir, PWD=/home/dk/maketest/topdir/subdir
make[1]: Leaving directory `/home/dk/maketest/topdir/subdir'
make: Leaving directory `/home/dk/maketest/topdir'
[EMAIL PROTECTED] ~/maketest

 P.S. - If there have already been discussions or if
 there already exists documentation on why ash vs. bash
 (I gather it is for performance reasons), I'd
   ^^^

 appreciate (a) pointer(s) so I could better learn the

  See the phrase between brackets in your previous line!  When you run a big
configure or build of something of the scale gcc there may be anywhere
between tens and hundreds of thousands of sub-shell invocations in the
entire process, and given that forks are already quite a bit slow on cygwin,
it's really worth shaving time off them by using a leaner meaner shell.

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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 04:38:08PM +0100, Dave Korn wrote:
Original Message
From: Peter Farley
Sent: 04 May 2005 16:06

But what if it is *not* your Makefile, but someone else's, e.g.  the
many GNU source packages that expect bash behavior?  Surely you don't
intend that ordinary users (well, OK, anyone compiling from a source
package isn't really ordinary) should modify every package maintained
by GNU in order to make it under cygwin, do you?

HELLO?  CAN ANYONE HEAR ME?tap-tap-tap  Testing, testing,  is this
thing on?  Am I invisible all of a sudden?  Has everyone in the world
gone mad except me?  Why is everyone coming out with awkward solutions
involving remounting mounts or fiddling with symlinks or hacking around
every
poorly-written-makefile-containing-nonportable-bashisms-in-the-whole-world?

Maybe because fixing the Makefile means not having to remember to type
SHELL=/bin/bash.exe every time you invoke make?  That's why I didn't
suggest this in my first response even though I'm a makefile *guru*.

I agree that the mount technique doesn't make a lot of sense (and woe to
you if you hit CTRL-C at the wrong point) but your solution is
actually a workaround.

Of course, you could just put a

SHELL = /bin/bash

in the Makefile but then, gasp!, you'd be modifying the makefile and
shirley you don't intend every person in this space time continuum to do
that.

I guess if your goal is to just build a package and forget about it, then
using the command line is acceptable.  You just have to remember to do that
again, when you build the package in six months.  Or, maybe you could make
a shell alias!  Yeah, that's the ticket.

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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Peter Farley
WHOA there.  I think we have a slight failure to
communicate.  I am NOT the OP, I was just chiming in
on the conversation (I should have said PMFJI right up
front, apologies for forgetting that).

That said, I understand your position better now,
especially with Dave's workaround (perfectly
acceptable to me, don't know about the OP).

I certainly did NOT intend to say or to imply that 
cygwin maintainers should make any global fix to
address this issue.  I just did not understand the
reason that bash was not the default shell.  Now I do.
 Thank you (and Dave Korn) for straightening me out.

Mea maxima culpa for not being clear in my question or
my comments.

Peter

--- Christopher Faylor
[EMAIL PROTECTED] wrote:
 On Wed, May 04, 2005 at 08:05:40AM -0700, Peter
 Farley wrote:
 But what if it is *not* your Makefile,
 
 I just went back and reread this thread.  It isn't
 exactly clear that this was not your Makefile. 
 You mentioned a test setup which seemed
 to imply that you were using your own Makefiles.
 
 but someone else's, e.g.  the many GNU source
 packages that expect bash behavior?
 
 Most GNU packages are interested in being portable. 
 Assuming that every system out there is POSIX
 compliant is not portable.  I have a couple of
 older systems that I use which would have the same
 problems as cygwin if you use PWD in a Makefile. 
 Actually, CURDIR would also be a problem
 for them since they don't use GNU make.  Since the
 workaround is trivial it would make sense to not
 rely on PWD in any package that is supposed
 to be disseminated widely.
 
 Surely you don't intend that ordinary users (well,
 OK, anyone compiling
 from a source package isn't really ordinary)
 should modify every
 package maintained by GNU in order to make it under
 cygwin, do you?
 
 I would expect a GNU-maintained package to accept a
 patch to eliminate a potential problem source.
 
 However, I surely don't intend to keep talking
 about this any further. I get the feeling that you
 want us (i.e., cygwin maintainers) to do
 something globally to solve this.  We've been using
 ash for many years and we're not about to change
 anytime soon.  You've been given enough
 alternatives now that you should be able to get
 things working.
 
 Cygwin is not guaranteed to be 100% POSIX compliant
 or 100% linux compliant.  Sometimes we make
 tradeoffs because of Windows constraints.
 Since bash is noticeably slower than ash under
 Cygwin, we use ash as our /bin/sh.  That produces
 some problems for non-portable shell constructs.
 
 cgf


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Igor Pechtchanski
On Wed, 4 May 2005, Christopher Faylor wrote:

 On Wed, May 04, 2005 at 04:38:08PM +0100, Dave Korn wrote:
 Original Message
 From: Peter Farley
 Sent: 04 May 2005 16:06
 
 But what if it is *not* your Makefile, but someone else's, e.g.  the
 many GNU source packages that expect bash behavior?  Surely you don't
 intend that ordinary users (well, OK, anyone compiling from a source
 package isn't really ordinary) should modify every package maintained
 by GNU in order to make it under cygwin, do you?
 
 HELLO?  CAN ANYONE HEAR ME?  tap-tap-tap Testing, testing, is this
 thing on?  Am I invisible all of a sudden?  Has everyone in the world
 gone mad except me?  Why is everyone coming out with awkward solutions
 involving remounting mounts or fiddling with symlinks or hacking around
 every
 poorly-written-makefile-containing-nonportable-bashisms-in-the-whole-world?

Sorry, Dave, I should've said In addition to what Gary and Dave said.

 Maybe because fixing the Makefile means not having to remember to type
 SHELL=/bin/bash.exe every time you invoke make?  That's why I didn't
 suggest this in my first response even though I'm a makefile *guru*.

 I agree that the mount technique doesn't make a lot of sense (and woe to
 you if you hit CTRL-C at the wrong point) but your solution is
 actually a workaround.

The mount technique was a temporary alternative to cp /bin/bash.exe
/bin/sh.exe.  No more, no less.  I agree in retrospect that it's a bit of
an overkill.

 Of course, you could just put a

 SHELL = /bin/bash

 in the Makefile but then, gasp!, you'd be modifying the makefile and
 shirley you don't intend every person in this space time continuum to do
 that.

Frankly, CGF is absolutely right -- any Makefile that uses bash-specific
features in its commands should have SHELL=/bin/bash at the top.  Period.

 I guess if your goal is to just build a package and forget about it,
 then using the command line is acceptable.  You just have to remember to
 do that again, when you build the package in six months.  Or, maybe you
 could make a shell alias!  Yeah, that's the ticket.

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

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Dave Korn
Original Message
From: Peter Farley
Sent: 04 May 2005 17:30

 WHOA there.  I think we have a slight failure to
 communicate.  I am NOT the OP, I was just chiming in
 on the conversation 

  Oops, so you are!  Umm, I mean, So you aren't!  Ermmm.. guess I mean
Pardon me for not checking!



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: Using -mno-cygwin flag

2005-05-04 Thread Sam Steingold
 * Brian Dessent [EMAIL PROTECTED] [2005-05-04 03:00:37 -0700]:

 -mno-cygwin does not just make things that doesn't depend on the
 cygwin DLL, it removes Cygwin from the equation entirely.

this is very unfortunate, actually.
things like berkeley-db, postgresql, pcre c all have a native win32
port, and it it a pity that -mno-cygwin does not use them.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.camera.org http://www.mideasttruth.com/
http://www.palestinefacts.org/ http://www.iris.org.il
All extremists should be taken out and shot.

--
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: Using -mno-cygwin flag

2005-05-04 Thread Larry Hall
At 12:53 PM 5/4/2005, you wrote:
 * Brian Dessent [EMAIL PROTECTED] [2005-05-04 03:00:37 -0700]:

 -mno-cygwin does not just make things that doesn't depend on the
 cygwin DLL, it removes Cygwin from the equation entirely.

this is very unfortunate, actually.
things like berkeley-db, postgresql, pcre c all have a native win32
port, and it it a pity that -mno-cygwin does not use them.

That's something to take up with the MinGW folks (www.mingw.org).




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


--
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: Using -mno-cygwin flag

2005-05-04 Thread René Berber
Sam Steingold wrote:
* Brian Dessent [EMAIL PROTECTED] [2005-05-04 03:00:37 -0700]:

-mno-cygwin does not just make things that doesn't depend on the
cygwin DLL, it removes Cygwin from the equation entirely.
 
 
 this is very unfortunate, actually.
 things like berkeley-db, postgresql, pcre c all have a native win32
 port, and it it a pity that -mno-cygwin does not use them.

But it can use them; any library that you have in dll form can be used by
creating a so called stub (.a) library that is used by gcc/g++/gcj to link to
the dll.  In fact, that's the way mingw links to the Windows system dll.

For the OP that means he needs to port the package he is trying to build.  By
port I mean search for required libraries and if all of them have already been
ported then just complete the mingw environment... this is a topic better
discused in a MingW list, but it's really easy.

Regards.
-- 
René Berber


--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Dave Korn
Original Message
From: Christopher Faylor
Sent: 04 May 2005 17:04

 On Wed, May 04, 2005 at 04:38:08PM +0100, Dave Korn wrote:

 Maybe because fixing the Makefile means not having to remember to type
 SHELL=/bin/bash.exe every time you invoke make?  

s,every time you invoke make,on those rare occasions when you invoke make on
a buggy non-portable makefile that specifically is non-portable in this
particular fashion of expecting bash behaviour from any arbitrary /bin/sh
implementation,g

That's why I didn't
 suggest this in my first response even though I'm a makefile *guru*.

  I guess that first post of mine must _still_ not have arrived then,
because all I said was to use the $SHELL variable:  I have never at any
point *denied* there is more than one way to set a make variable.
 
 Of course, you could just put a
 
 SHELL = /bin/bash
 
 in the Makefile but then, gasp!, you'd be modifying the makefile and
 shirley you don't intend every person in this space time continuum to do
 that.

  I'm not clear now... are you recommending changing the makefile locally,
or not?!

  In any case, it's not necessarily the most appropriate answer to give in
reply to a post that asked What if it is not your makefile?, which I
implicitly took as meaning Is there a solution that *doesn't* involve
editing the makefile?.

 I guess if your goal is to just build a package and forget about it, then
 using the command line is acceptable.  You just have to remember to do
 that again, when you build the package in six months.

  Whereas with your solution, you only have to remember to edit the makefile
and add SHELL=/bin/bash again, when you build the package in six months.
Hey, I really don't see one of those as being any more or less  difficult /
easy / reliable / errorprone than the other.

  Or, maybe you
 could make a shell alias!  Yeah, that's the ticket.
 
 cgf

  My *goal* was to suggest a solution that met the requirements specified by
the OP:

Make is spawning ash as the subshell, not bash.  [ ...snip... ] Can that 
behaviour be modified at the runtime/user/Makefile level?

  The answer I gave was simple and correct and pointed at the *technique*
without specifying a particular implementation:

The make documentation regarding $SHELL would suggest so.

  When my first post seemed to have entirely skipped below everyone's
threshold of perception, I posted a concrete example.  I didn't say it was
the only way to do it.




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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 05:50:14PM +0100, Dave Korn wrote:
Original Message
From: Peter Farley
Sent: 04 May 2005 17:30

 WHOA there.  I think we have a slight failure to
 communicate.  I am NOT the OP, I was just chiming in
 on the conversation 

  Oops, so you are!  Umm, I mean, So you aren't!  Ermmm.. guess I mean
Pardon me for not checking!

Ditto.  I even went back to check the original posting and didn't notice
the different From:.  That's embarrassing.  Sorry.

The points are still valid, , however.  I don't see any reason to raise
global concerns about makefile interoperability with linux just because
one person has a trivially-solveable problem with a couple of makefiles.

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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Dave Korn
Original Message
From: Christopher Faylor
Sent: 04 May 2005 18:13


 The points are still valid, , however.  I don't see any reason to raise
 global concerns about makefile interoperability with linux just because
 one person has a trivially-solveable problem with a couple of makefiles.

  Trivially-solveable ?

  Aha, so you accept that a command-line workaround is a suitable and
proportionate fix after all!  



   GOTCHA!  HAH!  



snigger

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: Using -mno-cygwin flag

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 12:53:26PM -0400, Sam Steingold wrote:
 * Brian Dessent [EMAIL PROTECTED] [2005-05-04 03:00:37 -0700]:

 -mno-cygwin does not just make things that doesn't depend on the
 cygwin DLL, it removes Cygwin from the equation entirely.

this is very unfortunate, actually.  things like berkeley-db,
postgresql, pcre c all have a native win32 port, and it it a pity that
-mno-cygwin does not use them.

If you want to use mingw versions of berkeley-db, posgresql, pcre, etc.,
then go ahead and install those versions.  -mno-cygwin is not so magic
as to ignore correctly installed libraries.  You just have to put the
libraries and headers in locations that are searched when -mno-cygwin
is used.  Those locations are distinct from the locations used when
-mno-cygwin is not provided -- for frighteningly obvious reasons.

/usr/i686-pc-mingw32/include and /usr/i686-pc-mingw32/lib would be
the place to put the headers/libraries.

/usr/include/mingw is also searched for the header files.  I don't
remember if /usr/local/lib/mingw is searched for library files.

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: Using -mno-cygwin flag

2005-05-04 Thread Sam Steingold
 * Larry Hall [EMAIL PROTECTED] [2005-05-04 13:02:44 -0400]:

 At 12:53 PM 5/4/2005, you wrote:
 * Brian Dessent [EMAIL PROTECTED] [2005-05-04 03:00:37 -0700]:

 -mno-cygwin does not just make things that doesn't depend on the
 cygwin DLL, it removes Cygwin from the equation entirely.

this is very unfortunate, actually.
things like berkeley-db, postgresql, pcre c all have a native win32
port, and it it a pity that -mno-cygwin does not use them.

 That's something to take up with the MinGW folks (www.mingw.org).

I am not quite clear on the exact relationship between cygwin and MinGW
project (I assumed that they are independent except that cygwin includes
parts of MinGW).  Why would I want to talk to them?

I think that cygwin should include the native ports of packages for
which such ports exist - as a matter of policy.
Of course, it is probably up to the individual package maintainer how
to build the package, so, e.g., I could lobby Ronald to build the
native PCRE version...

Here is the rationale:

Supposed I am developing several different programs:
A: just my own C code, compiled with gcc -mno-cygwin
B: my own C + PCRE: I could compile it with gcc -mno-cygwin, but
 PCRE requires cygwin - for no technical reason because actually
 PCRE compiles under win32 natively, without cygwin
C: my own C + PCRE + X: there is no way to build it without cygwin,
 because there is no native w32 port of X

Thus right now I can build a native w32 version of A but only cygwin
versions of B and C.
I want to be able to build a native w32 version of B also.

To do that, I must install _also_ MinGW - with its idiosyncratic
installation system c.

Note that I cannot switch to MinGW completely because it does not
support X, so I am either stuck with B using cygwin (for no technical
reason), or with two separate independent development systems (Cygwin
and MinGW).

Thanks.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://pmw.org.il/ http://www.camera.org http://www.jihadwatch.org/
http://www.openvotingconsortium.org/ http://www.memri.org/
Apathy Club meeting this Friday.  If you want to come, you're not invited.

--
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: Using -mno-cygwin flag

2005-05-04 Thread Dave Korn
Original Message
From: Christopher Faylor
Sent: 04 May 2005 18:20


 as to ignore correctly installed libraries.  You just have to put the
 libraries and headers in locations that are searched when -mno-cygwin
 is used.  Those locations are distinct from the locations used when
 -mno-cygwin is not provided -- for frighteningly obvious reasons.
 
 /usr/i686-pc-mingw32/include and /usr/i686-pc-mingw32/lib would be
 the place to put the headers/libraries.
 
 /usr/include/mingw is also searched for the header files.  I don't
 remember if /usr/local/lib/mingw is searched for library files.

 but anyone can easily find out for themselves, using the command gcc
-mno-cygwin -print-search-dirs  (and for interest's sake, compare it to the
output you get without -mno-cygwin).

  Hm.  Why should gcc -mno-cygwin be looking in /lib and /usr/lib, where
it's only likely to find cygwin libraries?  That looks a bit wrong to me


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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Christopher Faylor

To clarify:

1) The correct long-term solution to the problem of bash/ash
incompatibilities is to modify the makefile to avoid the problem.
If the Makefile is yours, then you are done.  If the makefile is
from someone else, then you provide the someone else with a patch.

If you can be guaranteed that you are using GNU make then you can
use $(CURDIR) in place of $$PWD.  Otherwise, you'll need to use
`pwd`.

2) The easiest workaround to the problem is make SHELL=/bin/bash.
I did not suggest this originally because I thought that the makefile
was home-grown and would benefit from being permanently fixed.

This has the drawback of requiring you to remember to do this every
time you type make which is somewhat of a problem if you are doing
active development.

3) When I said shirley you don't intend I was parodying the poster who
was appalled by the idea of modifying the thousands of makefiles out
there which just must be rife with the use of PWD.  It was not a serious
comment, since if you are going to modify your makefile to say SHELL =
/bin/bash you might as well just modify your makefile to use CURDIR.

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: Using -mno-cygwin flag

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 06:34:46PM +0100, Dave Korn wrote:
Original Message
From: Christopher Faylor
Sent: 04 May 2005 18:20


 as to ignore correctly installed libraries.  You just have to put the
 libraries and headers in locations that are searched when -mno-cygwin
 is used.  Those locations are distinct from the locations used when
 -mno-cygwin is not provided -- for frighteningly obvious reasons.
 
 /usr/i686-pc-mingw32/include and /usr/i686-pc-mingw32/lib would be
 the place to put the headers/libraries.
 
 /usr/include/mingw is also searched for the header files.  I don't
 remember if /usr/local/lib/mingw is searched for library files.

 but anyone can easily find out for themselves, using the command gcc
-mno-cygwin -print-search-dirs  (and for interest's sake, compare it to the
output you get without -mno-cygwin).

  Hm.  Why should gcc -mno-cygwin be looking in /lib and /usr/lib, where
it's only likely to find cygwin libraries?  That looks a bit wrong to me

Not only is it wrong, it has been mentioned as a problem here before.

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: Using -mno-cygwin flag

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 01:32:19PM -0400, Sam Steingold wrote:
 * Larry Hall [EMAIL PROTECTED] [2005-05-04 13:02:44 -0400]:

 At 12:53 PM 5/4/2005, you wrote:
 * Brian Dessent [EMAIL PROTECTED] [2005-05-04 03:00:37 -0700]:

 -mno-cygwin does not just make things that doesn't depend on the
 cygwin DLL, it removes Cygwin from the equation entirely.

this is very unfortunate, actually.  things like berkeley-db,
postgresql, pcre c all have a native win32 port, and it it a pity that
-mno-cygwin does not use them.

That's something to take up with the MinGW folks (www.mingw.org).

I am not quite clear on the exact relationship between cygwin and MinGW
project (I assumed that they are independent except that cygwin
includes parts of MinGW).  Why would I want to talk to them?

I think that cygwin should include the native ports of packages for
which such ports exist - as a matter of policy.

I don't see any reason to duplicate the work of the people who are
already providing native windows ports.  -mno-cygwin is mainly a
convenience for people who need to write trivial windows programs.  It
isn't intended to be used to port huge non-cygwin projects to windows.

It can be used to do that with some added work, but I think I'm being
pretty consistent in saying that supporting non-cygwin applications
is not a high-priority goal for the cygwin project.

Note that I cannot switch to MinGW completely because it does not
support X, so I am either stuck with B using cygwin (for no technical
reason), or with two separate independent development systems (Cygwin
and MinGW).

You can install the mingw toolchain and use it with cygwin with no
problem (Danny are you reading this?).  MinGW and cygwin are not
mutually exclusive.

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: Using -mno-cygwin flag

2005-05-04 Thread Dave Korn
Original Message
From: Sam Steingold
Sent: 04 May 2005 18:32

 That's something to take up with the MinGW folks (www.mingw.org).
 
 I am not quite clear on the exact relationship between cygwin and MinGW
 project (I assumed that they are independent except that cygwin includes
 parts of MinGW).  Why would I want to talk to them?

  Because it is *their* compiler, *their* header files, *their* libraries,
and in all regards *their* distribution of software that you are invoking
when you use -mno-cygwin, so if you want changes to it, that's who you need
to talk to.

  Try and think of -mno-cygwin as invoking a cross compile to a different
target.

 I think that cygwin should include the native ports of packages for
 which such ports exist - as a matter of policy.

  Why?  This is the Cygwin project, not the MinGW project.  That's a bit
like saying I don't think Cygwin should be a POSIX compatibility layer, I
think it should be an office suite.  We're responsible for supplying cygwin
ports.  MinGW is responsible for supplying MinGW ports.  If cygwin came with
a cross-compiler to powerpc-eabi, would you say Cygwin should come bundled
with an entire powerpc O/S?

 Here is the rationale:

 Supposed I am developing several different programs:
 A: just my own C code, compiled with gcc -mno-cygwin
 B: my own C + PCRE: I could compile it with gcc -mno-cygwin, but
  PCRE requires cygwin - for no technical reason because actually
  PCRE compiles under win32 natively, without cygwin
 C: my own C + PCRE + X: there is no way to build it without cygwin,
  because there is no native w32 port of X
 
 Thus right now I can build a native w32 version of A but only cygwin
 versions of B and C.

  No, that's nonsense.  Since you compile with -mno-cygwin, you aren't
making a cygwin version of B.  You're making a MinGW version of B.  This
is no more the same thing than a VAX is a SPARC.

 I want to be able to build a native w32 version of B also.

  You just did.  You used -mno-cygwin.  That gets you a native w32
program.

 To do that, I must install _also_ MinGW - with its idiosyncratic
 installation system c.

  Well, duh.  If you want to USE MinGW, you have to INSTALL it.  That much
is obvious.

  The point you're missing is that Cygwin is not responsible for mingw and
is not going to spend a lot of time adding packages to its distro.

 Note that I cannot switch to MinGW completely because it does not
 support X, so I am either stuck with B using cygwin (for no technical
 reason), or with two separate independent development systems (Cygwin
 and MinGW).

  You just don't get the significance of -mno-cygwin yet.  The point is,
when you are using -mno-cygwin, you are using an entirely different suite of
software.

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: Using -mno-cygwin flag

2005-05-04 Thread Sam Steingold
 * Christopher Faylor [EMAIL PROTECTED] [2005-05-04 13:41:25 -0400]:

 On Wed, May 04, 2005 at 06:34:46PM +0100, Dave Korn wrote:
Original Message
From: Christopher Faylor
Sent: 04 May 2005 18:20


 as to ignore correctly installed libraries.  You just have to put the
 libraries and headers in locations that are searched when -mno-cygwin
 is used.  Those locations are distinct from the locations used when
 -mno-cygwin is not provided -- for frighteningly obvious reasons.
 
 /usr/i686-pc-mingw32/include and /usr/i686-pc-mingw32/lib would be
 the place to put the headers/libraries.
 
 /usr/include/mingw is also searched for the header files.  I don't
 remember if /usr/local/lib/mingw is searched for library files.

 but anyone can easily find out for themselves, using the command gcc
-mno-cygwin -print-search-dirs  (and for interest's sake, compare it to the
output you get without -mno-cygwin).

  Hm.  Why should gcc -mno-cygwin be looking in /lib and /usr/lib, where
it's only likely to find cygwin libraries?  That looks a bit wrong to me

 Not only is it wrong, it has been mentioned as a problem here before.

http://article.gmane.org/gmane.os.cygwin:61279

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.palestinefacts.org/ http://www.honestreporting.com
http://www.iris.org.il http://www.openvotingconsortium.org/
If at first you don't suck seed, try and suck another seed.

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



Any people using the neon package?

2005-05-04 Thread Max Bowsher
The only user of the neon package within the Cygwin distribution itself is 
subversion.

Neon has recently moved from 0.24.x to 0.25.x, a major API change.
I would like to know whether the neon package is being used by anyone for 
anything else except subversion, so that I can decide how long the old neon 
DLL should be retained in the distribution once Subversion no longer 
requires it.

Thankyou,
Max.
--
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: pwd vs $PWD, bash, cygwin vs Linux

2005-05-04 Thread Gary R. Van Sickle
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Dave Korn
 Sent: Wednesday, May 04, 2005 10:38 AM
 To: cygwin@cygwin.com
 Subject: RE: pwd vs $PWD, bash, cygwin vs Linux

   HELLO?  CAN ANYONE HEAR ME?tap-tap-tap  Testing, 
 testing,  is this
 thing on?  Am I invisible all of a sudden? 

Do you guys hear that tapping?

;-)

-- 
Gary R. Van Sickle
 


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



Lilypond brought up to date?

2005-05-04 Thread John Sellers
At www.lilypond.org, the current stable version of Lilypond is 2.4.6 
and the lastest development version is 2.5.22.

The most current version of Lilypond offered by cygwin's setup for 
Windows is 2.4.3-1.  This lag has been true for the last year or two.

Is there any change any time soon that the cygwin version of Lilypond 
will be brought up to date?

--
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: Lilypond brought up to date?

2005-05-04 Thread Bertalan Fodor
I'm still struggling with the release of 2.4.5.
Anyway, 2.4.3 was released 6 months ago, and it is true that it takes 
quite some time to build a new version, because there are lots of 
problems appearing each time.

Bert
The most current version of Lilypond offered by cygwin's setup for 
Windows is 2.4.3-1.  This lag has been true for the last year or two.

Is there any change any time soon that the cygwin version of Lilypond 
will be brought up to date?

--
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: Using -mno-cygwin flag

2005-05-04 Thread Sam Steingold
 * Dave Korn [EMAIL PROTECTED] [2005-05-04 18:49:24 +0100]:

 Original Message
From: Sam Steingold
Sent: 04 May 2005 18:32

 That's something to take up with the MinGW folks (www.mingw.org).
 
 I am not quite clear on the exact relationship between cygwin and MinGW
 project (I assumed that they are independent except that cygwin includes
 parts of MinGW).  Why would I want to talk to them?

   Because it is *their* compiler, *their* header files, *their*
 libraries, and in all regards *their* distribution of software that
 you are invoking when you use -mno-cygwin, so if you want changes to
 it, that's who you need to talk to.

but it came with cygwin - the cygwin team packaged their software and
distributed it with cygwin.
I consider this to be more of a packaging issue than a software issue.
I don't want mingw to change their product.
I want cygwin to package mingw somewhat differently.
actually, not even that.
I want cygwin to package some of its packages without unnecessary
dependencies.

 Here is the rationale:

 Supposed I am developing several different programs:
 A: just my own C code, compiled with gcc -mno-cygwin
 B: my own C + PCRE: I could compile it with gcc -mno-cygwin, but
  PCRE requires cygwin - for no technical reason because actually
  PCRE compiles under win32 natively, without cygwin
 C: my own C + PCRE + X: there is no way to build it without cygwin,
  because there is no native w32 port of X
 
 Thus right now I can build a native w32 version of A but only cygwin
 versions of B and C.

 No, that's nonsense.  Since you compile with -mno-cygwin, you aren't
 making a cygwin version of B.  You're making a MinGW version of B.

But I cannot make a MinGW version of B because B requires PCRE and
cygwin comes with the PCRE version that requires cygwin1.dll

 I want to be able to build a native w32 version of B also.

   You just did.  You used -mno-cygwin.  That gets you a native w32
 program.

I got a link error: no libpcre

 To do that, I must install _also_ MinGW - with its idiosyncratic
 installation system c.

   Well, duh.  If you want to USE MinGW, you have to INSTALL it.  That
 much is obvious.

I thought I did - when I installed the gcc-mingw cygwin package.

   The point you're missing is that Cygwin is not responsible for mingw
 and is not going to spend a lot of time adding packages to its distro.

you already have the pcre package.
I want it to be built with -mno-cygwin to avoid an unnecessary
dependency.

Imagine that pcre were lined with -lhuge where libhuge.a were just a
huge library which did not add to the pcre's functionality.
do you think it would be a reasonable request to re-package pcre so that
it does not use that library?


-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://ffii.org/ http://www.iris.org.il http://www.palestinefacts.org/
http://www.camera.org http://www.openvotingconsortium.org/
Takeoffs are optional.  Landings are mandatory.

--
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: Best antivirus for cygwin? - was Norton antivirus and the Trojans

2005-05-04 Thread Reini Urban
Larry Hall schrieb:
While discussion of this may be useful to folks on this list, anything 
beyond Cygwin's clamav package is probably off-topic here.  Can I suggest
you take this to the cygwin-talk list instead?  It would certainly be on-
topic there.
And while we are here and there is still the latest release pending for 
some days, I just want to say that the test version in setup.exe is 
featurewise almost the same and the delay of the 0.84 release proper is 
caused by some change in the build system.

clamav-devel is also talking now about adding a klamuko-like on-access 
scanner to windows also. (It was written by some AntiVir.de developer, 
one of the best scanners on windows, so it should be no problem ...)

--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
http://phpwiki.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: Using -mno-cygwin flag

2005-05-04 Thread Christopher Faylor
On Wed, May 04, 2005 at 05:23:58PM -0400, Sam Steingold wrote:
Well, duh.  If you want to USE MinGW, you have to INSTALL it.  That
much is obvious.

I thought I did - when I installed the gcc-mingw cygwin package.

No.  The name of the package is gcc-mingw.  Did you think that you
installed all of cygwin when you installed cygwin's gcc?  No, you
didn't.  You installed lots of other stuff, too.

gcc-mingw installs a compiler which can produce native windows binaries
sans cygwin1.dll.  That's it.

The point you're missing is that Cygwin is not responsible for mingw
and is not going to spend a lot of time adding packages to its distro.

you already have the pcre package.  I want it to be built with
-mno-cygwin to avoid an unnecessary dependency.

I think we understand what you want.  You want packagers to go out of
their way to produce mingw versions of some packages for your
convenience.

What we're saying is that you are not going to get that.  Instead, you
have to get the packages that you want from mingw or other sources which
provide pure-windows libraries.

Imagine that pcre were lined with -lhuge where libhuge.a were just a
huge library which did not add to the pcre's functionality.
do you think it would be a reasonable request to re-package pcre so that
it does not use that library?

I don't understand this analogy at all.  If pcre was linked with -lhuge and
-lhuge didn't actually add anything to pcre, then the size of pcre would be
unchanged since adding -lhuge is a no-op.

If you are trying to equate this with linking with cygwin then it still
isn't a good analogy.  What you're saying is I want something that is
not cygwin-related.  Cygwin already has a little bit of the something.
Since Cygwin has a little bit of the something it only stands to reason
that it should provide 100% of the something.  I know that I can install
the something myself but: I don't want to think about where to get more
of the something.  I don't want to think about how to install more of
the something.  I want the something to be installed for me since you
have promised it to me by virtue of the fact that there is a tiny bit
of the something on my computer already.

Again, given the cygwin project's goals, I think there is little benefit
to anyone spending a lot of time worrying about how to bypass cygwin.  I
wouldn't necessarily turn down submission of mingw libraries but I'd
certainly have to be convinced that the person was around for the long
haul and willing to keep them up-to-date.  Corinna's MMV.  If she vetoes
this idea, then, that's fine with me.

So, gee, now all we need is a volunteer.

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: Best antivirus for cygwin? - was Norton antivirus and the Trojans

2005-05-04 Thread René Berber
Reini Urban wrote:
[snip]
 And while we are here and there is still the latest release pending for
 some days, I just want to say that the test version in setup.exe is
 featurewise almost the same and the delay of the 0.84 release proper is
 caused by some change in the build system.
[snip]

Clamav-0.84 compiles almost out of the box, shared libraries and all.  The
almost is because the libtool generated lacks the -shared parameter for building
the libraries, other than that there is no problem, including the new contrib
program clamdmon, all tested and working.

So the question is: what change in the build system?

Regards.
-- 
René Berber


--
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: Using -mno-cygwin flag

2005-05-04 Thread Brian Salter-Duke
On Wed, May 04, 2005 at 03:00:37AM -0700, Brian Dessent wrote:
 Brian Salter-Duke wrote:
 
  Beginning the DDI compilation at Wed May 4 18:09:43 AUSCST 2005
  Compiling common object: soc_create.o
  gcc -DLINUX -O3 -mno-cygwin -fstrict-aliasing -I./include -DDDI_SOC 
  -DMAX_SMP_PROCS=8 -DMAX_NODES=32 -c ./src/soc_create.c -o ./obj/soc_create.o
  In file included from src/soc_create.c:21:
  include/mysystem.h:34:28: sys/resource.h: No such file or directory
  include/mysystem.h:73:23: pthread.h: No such file or directory
  include/mysystem.h:81:21: netdb.h: No such file or directory
  include/mysystem.h:82:26: sys/socket.h: No such file or directory
  include/mysystem.h:83:26: netinet/in.h: No such file or directory
  include/mysystem.h:84:27: netinet/tcp.h: No such file or directory
 
 This is working just the way it's supposed to.  I don't think you fully
 understand what the -mno-cygwin flag means.  Cygwin provides the
 unix/posix emulation layer, things like the berkeley sockets API and
 pthreads[*] that you are missing above.  When you use -mno-cygwin, you
 are using a completely different compiler.  Mingw has no emulation
 layer, that's the minimalist part.  When you use mingw, you get a
 standard C runtime library (provided by MSVCRT, i.e. Windows), the bare
 win32 API, and not much else.  No berkeley sockets.  No pthreads.  None
 of the stuff that Cygwin provides.
 
 -mno-cygwin does not just make things that doesn't depend on the cygwin
 DLL, it removes Cygwin from the equation entirely.

I did understand that. If I understand you correctly, one can not use
Mingw from inside cygwin to produce working code that uses sockets and
pthreads. Is that correct? This code does use sockets and pthreads
although I do not strictly need them as it is code that uses them to run
in parallel and I only want to run on one processor. Oh well, I can
still use it in cygwin. 

Thanks for your help.

Brian.

 Brian
 
 [*] Yes I know of projects like pthreads-win32.  But that's neither
 Cygwin nor mingw, really.
 
 --godpcjfpnnceejebejnh
 Content-Type: message/rfc822;
   name=cygwin.107248
 Content-Disposition: attachment;
   filename=cygwin.107248

-- 
Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
 Post: 626 Melbourne Rd, Spotswood, VIC, 3015, Australia
  Phone 03-93992847. http://members.iinet.net.au/~linden1/brian/

--
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 sshd service could not be started

2005-05-04 Thread Brian Dessent
Igor Pechtchanski wrote:

   In the future versions, we should also check for user mounts for the
   SYSTEM user -- unlikely, but very nasty and hard to detect.  I also
   wonder if the above test should go into configurations for all
   services, or perhaps even added to cygrunsrv in some form...
 
  Well, you know the acronym for this... ;-)
 
 Oh, you mean http://cygwin.com/acronyms/#BWAM? ;-)
 I know someone will have to do that, just wanted to put that one in the
 archives.

Maybe cygpath needs another option, check path as user.  E.g.

cygpath -c SYSTEM /usr/bin  # return true if SYSTEM user can access
/usr/bin

It would consider all the mounts, check the permissions on the
directory, do traverse checking if that's enabled, and anything else
relevent.  For files it would check the ability to read, for paths the
ability to execute/traverse.

This could be used for troubleshooting various problems reported on the
mailing list relating to permissions.  It seems to come up in various
forms often.

Although I fully admit that SHTDI applies here too.

Brian

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