Re: How to detect a broken cygwin mirror? (gold star alert)

2004-09-04 Thread Reini Urban
Christopher Faylor schrieb:
On Fri, Sep 03, 2004 at 05:58:03PM +0200, Reini Urban wrote:
Christopher Faylor schrieb:
On Fri, Sep 03, 2004 at 01:49:40PM +0100, Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of luke.kendall
Sent: 03 September 2004 02:41

Cygwin-specific expertise, and move on.  The worst experiences, in my
opinion, are like this one, that seem to come down to a broken mirror:
our mirror rsyncing to it and breaking, and then people updating or
installing from our broken mirror, and getting into states like my PC
is in now.
I don't think it's a sensible policy to be permanently chasing the
bleeding-edge of development in a production environment.  I think you
should set up your mirror with known good and stable versions of the
tools you need in your environment and then freeze it, and only update
parts of it as and when specifically needed and after testing and
change control.  IOW, I think this problem is better solved by
development methodology and management techniques than by a shell
script.
Can I get YA gold star for Dave here?
This is eminently sensible advice.  I was thinking the same thing but
every message I started to compose on the subject did not put it as well
or as non-meanly.
I have a very different opinion on this.

That's because you don't seem to be understanding what was being said.

When a mirror stops mirroring, the poor user will not be able to update 
any fixes to his installation, and will bother the mailing list then.
He will never detect that another mirror has a newer setup.ini, because 
mirroring is only pull, not push.

So he will never get to any updates or fixes.

Dave said that you set up YOUR OWN mirror with known, good, working
versions of the packages and only update parts of it when needed.  That
is the only sane way to set things up for a production environment.
Otherwise, you are subject to the whims of every package maintainer.
If I update cygwin tomorrow and it has a bug, and you download the buggy
cygwin to either your mirror or your local drive, you are potentially
dead in the water.  If everyone in your organization does this, then the
whole organization is dead in the water.
Worrying about "the best" mirror to use doesn't help.  "The best" mirror
is not going to know that cygwin is broken.  The only way to verify that
nothing is broken for your organization is to do controlled, staged,
tested updates to your own local mirror.
Your local mirror needs to be maintained by someone, of course.  There
should never be a situation where it is not being updated due to lack
of attention.  The added delay will mean that a user may not see a bug
fix as fast as someone who updates cygwin every fifteen minutes but,
for an environment that entails unknowledgeable users and relies on
not being down for long periods of time, this is the only way to do
things.
Ah, okay. I missed the "local" mirror part.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
Unsubscribe info:  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: Installing php 5

2004-09-04 Thread Reini Urban
Robert Schmidt schrieb:
Reini Urban wrote:
mirko tebaldi schrieb:
Please, someone can help me (eventually in private mailing) step by 
step for
installing php 5 ?

Go to http://www.php.net
Neither PHP4 nor 5 take part of cygwin because the package was broken. 
I'm also anxious to see it back in!

I succeeded installing the Win32 PHP4 binaries from php.net, and got it 
to work in cygwin Apache 1.3 as a CGI handler.

This is suboptimal compared to an Apache module, though, and the Win32 
PHPs won't understand cygwin's home folders or symlinks (and probably 
much more).
Yes, but these php.net builds and snaps come with all needed modules.
The real problem with php packaging for cygwin is not php alone. 
(besides the not yet solved apache ssl - rebase problem, which is 
irrelevant to the cli target)
It's all the seperate and dirty old modules you need to install.
About 60?
If it would be easy, I would have made it also.

But for my company I had to do php updates on linux once in a while and 
it was a nightmare. Esp. Boutell's GD way of things.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
Unsubscribe info:  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: Change path for php

2004-09-04 Thread Reini Urban
Brian Dessent schrieb:
"Mirko Tebaldi (Indirizzo Pubblico)" wrote:
in /etc/profile i indicate PATH as :
PATH="cygdrive/c/php4/cli:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH"
it is correct ? so why configure doesn't find it !?

If that is the actual line you are using and not a typo then it would
seem you are missing the leading / in front of cygdrive.  The way you've
got it above is specifying a relative path, you want instead
"/cygdrive/c/..."  You should be able to verify that there is a PHP in
the path by typing "type php" or "which php" from your shell prompt
before running configure.
I already told you to copy php.exe to /usr/local/bin because most/all 
pear apps expect it there!

And don't take the other cfg paths from your italian openjade docs 
granted, just the default paths or none at all.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

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


What is this

2004-09-04 Thread Mirko Tebaldi \(Indirizzo Pubblico\)
What is /bin/test.exe ?

i have a script that uses that, but it has not output and no --help
or --usage !!!


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



Updated: TeXmacs-1.0.4-4

2004-09-04 Thread Andreas Seidl
TeXmacs: A scientific wysiwyg Editor and Interface for Computer Algebra 
Systems

The current stable version 1.0.4 has been updated to the latest
revision. For more information, please refer to
http://www.cygwin.com/ml/cygwin-announce/2004-08/msg00027.html
Andreas
--
http://www.fmi.uni-passau.de/~seidl/
--
Unsubscribe info:  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: /proc registry access

2004-09-04 Thread Brian Dessent
linda w wrote:

> gotta figure out how to get cvs to work through a proxy and, maybe
> better, set up a cross development environment on linux.  I lost the
> last simple set of instructions I had to build the setup command...sigh.
> 
> I think for the proxy bit, I seem to remember having to use a sockified
> CVS...

Google[1] says that if you have cvs >= 1.12.6 you can specify a http
proxy in the pserver CVSROOT specification:

cvs -d
:pserver;proxy=foo;proxyport=bar:[EMAIL PROTECTED]:/cvs/src co
winsup


However, if you have a SOCKS proxy then you'll indeed need a socksified
version of the cvs client.

Brian

[1] https://www.cvshome.org/cyclic/cvs/dev-http.txt

--
Unsubscribe info:  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: What is this

2004-09-04 Thread Brian Dessent
"Mirko Tebaldi (Indirizzo Pubblico)" wrote:
> 
> What is /bin/test.exe ?
> 
> i have a script that uses that, but it has not output and no --help
> or --usage !!!

Have you considered "man test"?

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/



ipc debugging

2004-09-04 Thread Reini Urban
I experience a shmget problem with postgresql and try to debug that.
I created debug version of cygserver.
cd "src\obj\i686-pc-cygwin\winsup\cygserver"
insight cygserver.exe
I put a breakpoint at shmget()
break ../../../../winsup/cygserver/sysv_shm.cc:807
But I guess this will not work since
$ ipcs -a
Bad system call
Is this enough or do I have to create a debug cygwin0.dll also?
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Problem executing a .bat script in a directory with spaces using bash

2004-09-04 Thread Brian Dessent
Christopher Cobb wrote:

> I use the following shell function cmd() to invoke batch files.  It removes
> cygwinisms from the PATH and the environment first and does some argument
> pre-processing.  It also seems to fix the space problem.

Interesting function.  However, I found that it chokes if the name of
the command to run has spaces, even if they are properly quoted on the
command line, e.g.

$ cmd /cygdrive/c/Program\ Files/something\ with\ a\ space/test.bat
'c:Program' is not recognized as an internal or external command,
operable program or batch file.

If you enable "set -x" and run it you see that it's ultimately trying to
execute:

eval /winxp/system32/cmd.exe /c 'c:\Program Files\something with a
space\test.bat'

...which then acutally tries to run:

/winxp/system32/cmd.exe /c c:Program Filessomething with a spacetest.bat

I'm not sure why 'eval' is needed here at all but I assume there's a
good reason.  I'm no scripting guru and the levels of quoting here are
really nasty.  However, I found the following version seems to fix the
issue for me.  It does explicit quoting on the $c part so that the eval
line gets $c with shell-quoting already applied, which it then removes.

cmd ()
{
( local c=`cygpath -w "$1"|sed -r 's@([^a-z0-9.:])@[EMAIL PROTECTED]'`;
shift;
local cmd=`cygpath -u $COMSPEC`;
while [ $# != 0 ]; do
if [ -f "$1" ]; then
local args="$args '`cygpath -w $1`'";
else
if [ -d "$1" ]; then
local args="$args '`cygpath -w $1 | sed '[EMAIL PROTECTED]@@'`'";
else
local args="$args '$1'";
fi;
fi;
shift;
done;
PATH=`echo $PATH |
  tr : '\n' |
  egrep -vw '^(/usr/local/bin|/usr/bin|/bin|/usr/X11R6/bin)$' |
  tr '\n' :`;
unset BASH_ENV COLORTERM CYGWIN DISPLAY HISTCONTROL MAKE_MODE;
unset MANPATH PKG_CONFIG_PATH PS1 PWD SHLVL TERM USER _;
unset CVS CVSROOT CVS_RSH GEN_HOME GROOVY_HOME TOMCAT_DIR;
eval $cmd /c $c $args )
}

This version successfully allows you to do:

cmd /posix/path/with\ spaces\ in\ it/file.bat

..and have it work correctly.

-

I've used a simiar function for a while in the past, but both it and
this still suffer from one really annoying flaw: if an argument that is
meant to be a filename does not exist, the script will not windows-ize
it.  The context that this comes up is that I would like to be able to
run a windows editor, passing it a posix filespec on the command line of
a file that does not exist:

cmd /cygdrive/c/Program\ Files/UltraEdit/uedit32.exe ~/foo

If ~/foo already exists then this is properly translated into:

/winxp/system32/cmd.exe /c 'c:\Program Files\UltraEdit\uedit32.exe'
'C:\cygwin\home\brian\foo'

However, if ~/foo is a new file that does not exist, then the script
will not convert it into a windows path, and the win32 program gets
really confused.  I guess you could assume all arguments are filenames
and "cygpath -w" them, but I'm sure that ends up breaking yet something
else.  Any ideas?

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/



R: What is this

2004-09-04 Thread Mirko Tebaldi \(Indirizzo Pubblico\)
sorry.. i'm new in the linux-like world !
now i try something tell me it's ... the manual ?

..i tryed.
i didn't know the man utility. thank you ! now i'll try with about all .exe
files..



-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di
Brian Dessent
Inviato: sabato 4 settembre 2004 13.10
A: [EMAIL PROTECTED]
Oggetto: Re: What is this


"Mirko Tebaldi (Indirizzo Pubblico)" wrote:
>
> What is /bin/test.exe ?
>
> i have a script that uses that, but it has not output and no --help
> or --usage !!!

Have you considered "man test"?

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/


__ Informazione NOD32 1.842 (20040813) __

Questo messaggio  h stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it



--
Unsubscribe info:  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: openldap 2.2.15-2

2004-09-04 Thread Robert Schmidt
Robert Schmidt wrote:
On Fri, 3 Sep 2004, Robert Schmidt wrote:
I have problems running openldap 2.2.15-2 (cygwin is up-to-date as of 
this
moment).
You have minires-0.97-1 installed.  The latest version is 0.98-3.  Try
upgrading to it.  The API has apparently changed between the versions,
though the library is not versioned (this is arguably a packaging bug).
I got that far an hour later, but the problem persists.
Problem solved.  Some (yet unidentified) application had installed a 
couple of old cygwin DLLs in the SYSTEM32 folder.  I should have thought 
of that earlier.

Strangely, though, c:\cygwin\bin is *before* c:\windows\system32, so 
something doesn't make sense to me.

[C:\]which cygminires.dll
cygminires.dll is an external : C:\cygwin\bin\cygminires.dll
Ah well, at least slapd runs, after removing the rogue DLL.
Cheers,
Rob
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


changing chgwin from c to i drive

2004-09-04 Thread David
Hi,

I'm running cygwin on windows NT.

Last month, I installed cygwin from the internet on my I drive,
and deleted it from my c drive. After changing the paths, 
everything seems to work fine except that after reboot I
have to run this command:

mount i:\sys\cygwin /

Can this be automated so it always is done on reboot?

Thanks,

David

--
Unsubscribe info:  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: changing chgwin from c to i drive

2004-09-04 Thread Larry Hall
At 11:47 AM 9/4/2004, you wrote:
>Hi,
>
>I'm running cygwin on windows NT.
>
>Last month, I installed cygwin from the internet on my I drive,
>and deleted it from my c drive. After changing the paths, 
>everything seems to work fine except that after reboot I
>have to run this command:
>
>mount i:\sys\cygwin /
>
>Can this be automated so it always is done on reboot?


It's not necessary.  Mount settings are persistent until removed or
changed.  See 
for more info on 'mount' (there's a man page too, thought the User's Guide
has more details).

If the above doesn't help, please read and follow the guidelines set forth 
in:

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

for any follow-up inquiries to the list.  This will help anyone here more
effectively understand your installation and the details of your problems
with it.


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



[ANNOUNCEMENT] New package: ctetris-0.29-1

2004-09-04 Thread Reini Urban
The package 'ctetris' is now available in the Cygwin distribution.

ctetris is a console mode tetris clone, written in C using the ncurses
library. It works very fast and efficient, so it should be possible to
play it even over a slow remote terminal. With highscores. The author is
Dominik Hackl. License: GPL

The ctetris home page is http://sourceforge.net/projects/ctetris

*** INSTALLATION ***

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.  ctetris
is located in the "Games" category.  Click on this category to install
ctetris if it is not already installed.  If ctetris is already
installed, it will be updated automatically.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] I would appreciate it if you would
use this mailing list rather than emailing me directly.

In this build the docs are duplicated. This will be addressed in a 
future update. In between you can safely rm -rf /usr/share/doc/ctetris/

   *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/






--
Unsubscribe info:  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: Keeping a local mirror up to date (cy: addressed to exclusive sender for this address)

2004-09-04 Thread Larry Hall
At 06:04 PM 9/3/2004, you wrote:
>Dave Korn wrote:
>>  By design, setup searches through all the download directories, keeps
>>track of all the versions, should know exactly what you've already got and
>>never re-download something you already have; if it ever does, it's a bug.
>
>For me setup.exe always seems to compare what I actually have INSTALLED with what it 
>downloads rather than what is in the download directory. So I have ended up making 
>local 'mirrors' that are missing essential utilities, because my machine already had 
>them installed. Similarly it seems to download over and over again components I have 
>downloaded but not installed.


Setup is not a mirroring tool.  It is an install tool.  In the process of 
performing the setup, it downloads what you ask for (including dependencies)
and optionally (depending on whether you choose "Download from Internet" or
"Install from Internet") installs what it downloads.  It will not download
these same versions again unless you switch mirrors.  The local archive it
creates can be brought to another machine and installed if desired.  
'setup.exe' will automatically download updated versions of packages you 
have installed, unless otherwise instructed by you.  If you're actually 
trying to create and maintain a mirror, you're better off using tools like 
'wget', 'curl', or 'rsync'.  These tools are meant to provide mirror 
functionality.  'setup.exe' keeps a local archive.  As you've determined 
already, there's a difference between the two notions.

   

--
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: /proc registry access

2004-09-04 Thread Larry Hall
At 07:54 PM 9/3/2004, you wrote:
>Igor Pechtchanski wrote:
>
>>Yes. Cygwin will not process paths that contain a ":" -- perhaps
>>
>>erroneously, as it should probably check that the ":" is the second
>>character, preceded by a letter.  .
>> 
>---
>   Do you think it would be desirable to have cygwin not encumber itself
>with character/filename validity, but instead let it be processed by the
>underlying subsystem (or pseudo subsystem, in this case).  Thanks for
>the MLADP.


What pseudo subsystem is that?  Win32?  

Cygwin does what it does to support POSIX path semantics while still 
providing reasonable support for Win32 path semantics.  But like Igor
said, if you have an idea to improve the handling, 
.  Having a concrete patch always 
focuses the discussion very quickly. :-)




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



postgres 8 plperl

2004-09-04 Thread Reini Urban
Just a short notice that I successfully created the new
postgresql-8.0.0beta2 (full debugging) with plperl,
and this still fails with the same plperl problem as the older versions.
postmaster crashes on executing a plperl function.
All other regression tests pass ok.
But the overall performance is MUCH better than with the 7.4.x series.
The automatic test at initdb gets you max_connections=100.
Before 5 were recommended for the testsuite.
As soon as the plperl problems are fixed I will provide a test package. 
(taking over from Jason)
My current patchset is at
http://xarch.tu-graz.ac.at/home/rurban/software/cygwin/postgresql/postgresql-8.0.0beta2-1/
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

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


[ANNOUNCEMENT] Updated: cygwin-1.5.11-1

2004-09-04 Thread Christopher Faylor
I've made a new version of the Cygwin DLL and associated utilities
available for download.  As usual, a list of what has changed is below.

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

Christopher Faylor
Red Hat, Inc.

Changes since 1.5.10-3:

- Fix various reported cygserver problems.  (Corinna Vinschen)

- Add -g/--group option to mkgroup (q.v.) (Igor Pechtchanski)

- Fix some problems with rsync hangs on Windows NT class systems.  (Bob Byrnes)

- Fix mysterious configure script premature exit.  (Pierre Humblet)

- Properly zero fill file on windows 9x when file is extended.  (Pierre Humblet)

- Regularize errno text output.  (Corinna Vinschen)

- Fix handling of audio fds when duped.  (Pierre Humblet)

- Report correct processor-specific flags in /proc/cpuinfo.
  (Christopher January, Tomas Ukkonen)

- Add workaround to get Cygwin working on 64-bit systems.
  (Corinna Vinschen, Christopher Faylor)

- Fix handling of chdir with windows paths.  (Pierre Humblet)

- Make path handling and error checking for mount more robust.
  (Pierre Humblet)

- Add minor speedup to spawn/exec processing.  (Christophe Jaillet)

- Fix shmget handling.  (Corinna Vinschen)

- Don't create filenames, on disk, which normal Windows interprets as
  "special".  (Pierre Humblet, David Fritz, Christopher Faylor)

- Make IPC_INFO visible only for ipc system utilities, to make it
  consistent with declaration of struct seminfo.  (Egor Duda)

- Fix usage message in ssp.  (John Paul Wallington)


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