Re: xfree86 install makes wininit not working

2002-04-21 Thread Sylvain Petreolle

 Already know this (I develop for Wine Emulator :))
 But that's ok to
 review point after point to see a failure
 somewhere.
 
 So, you are reporting this problem for an actual
 version of Windows,
 then, i.e., you're not trying to run setup.exe on
 Wine, right?
 
 cgf
No, it's a real Windows :)
I'm having these problems on my own workstation.
I'm afraid kde-cygwin 2.2.1-alpha has no setup.ini at
this time, this would be great :=).


Off-topic :

Think that Wine doesn't need wininit to function :
every file can be overwritten even if in use
and wininit has a replacement because it doesn't
function (it reports that it cannot be launched from 
Windows)

___
Do You Yahoo!? -- Une adresse yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



RE: xfree86 install makes wininit not working

2002-04-21 Thread Harold Hunt

Ilya,

Very interesting.

On Windows NT 3.1, 4.0, Windows 2000, and (I believe) Windows XP you don't
use the wininit.ini approach.  There is a new function (only about 8 years
old now) called MoveFileEx that can be passed the flag
MOVEFILE_DELAY_UNTIL_REBOOT which stores a list of files to be moved upon
reboot in the registry at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\PendingFileRenameOperations


Robert may want to comment on whether this method is used or not in
setup.exe.

In any case the list of files to move could contain several thousand entries
if the XFree86 fonts packages are to be replaced upon reboot.  This would
take several minutes to move.  It was probably not a good thing that you
aborted this process... my guess is that it would have completed
successfully in ten to twenty minutes :)

 P.S. I guess the other burning question is why did setup.exe
 decide that it
 couldn't overwrite the Xfree files even though Xfree wasn't in use?

Think about your programmatic options here.  You are trying to determine if
the files in the XFree86 packages are being used, so you can:

1) Assume that if cygwin1.dll is being used then *all* packages are being
used.  When cygwin1.dll is not being used this allows you to install each
file with a single function call (i.e. MoveFile).  However, when cygwin1.dll
is being used you have to either use wininit.ini or use MoveFileEx with
MOVEFILE_DELAY_UNTIL_REBOOT for every single file.

2) Attempt to move each file individually; upon failure, add the file to the
wininit.ini list or call MoveFileEx with MOVEFILE_DELAY_UNTIL_REBOOT.
You've got a problem here: what if a program opens a file, reads part of it,
closes the file, then opens it again later and resumes reading where it left
off?  You're going to get into trouble if you replace such a file out from
under a running process.  On the other hand, Linux seems to think that this
is allowable, as Linux lets you overwrite any file, regardless of whether it
is being used.  The main problem with this method is that for every file
that is being used (could be thousands) you have to make two functions calls
instead of just one (one to find out it is being used, one to add it to the
list of files to replace upon reboot).


I'm guessing that Cygwin's setup.exe uses a method similar to the method I
described in (1), but I'll wait for Robert to comment on this.  Perhaps
Cygwin's setup.exe should consider using a method similar to (2), if it
doesn't already.

In related news: I think I'm going to hold off on making any wide-spread
announcements about Cygwin/XFree86 being available via setup.exe.  I'm not
comfortable with the installation process causing several minute delays in
starting the PC and in the possibility of the wininit.ini becoming too large
or not preserving long filenames.


Harold


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ilya Goldin
 Sent: Sunday, April 21, 2002 1:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: xfree86 install makes wininit not working


 Harold Hunt [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Basically: do we need to pull the Cygwin/XFree86 setup.exe release for
 now,
  or can I go on with making changes to the web page, etc to announce the
  release?


 Personal experience: I installed Xfree via the new setup.exe
 routine over an
 existing 4.2.0 installation. At the time, I was running rxvt and openssh,
 but not running Xfree. Cygwin warned me I'd have to restart to replace
 files.

 When I restarted, Win2K (which is what I'm running here, with all
 the latest
 patches), got stuck at the end of its second start-up screen (the
 first one
 is text-mode, the second one has the pretty W2K logo and a blue progress
 indicator). I could see my HD light blinking, and the PC was
 obviously doing
 something, but it remained stuck on this screen for several
 minutes. This
 repeated after a hard reset (couldn't do a soft one). Ultimately, I had to
 boot into the F8-on-startup screen, and go with last known good config.
 Only that got me back into W2K. (I was getting pretty worried by
 this time!)

 Having read the list since, I surmise that the WININIT.INI routine was
 replacing files during that start-up screen delay, but it took so
 ridiculously long (on a Pentium II 400, w/ 256 RAM), that I had to do
 several hard restarts to get anywhere, and ended up aborting that
 procedure
 anyway. (After which I deleted my entire Cygwin setup and reinstalled from
 scratch.)

 Notes from the field,
 ig
 P.S. I guess the other burning question is why did setup.exe
 decide that it
 couldn't overwrite the Xfree files even though Xfree wasn't in use?

 -- Ilya Goldin www.pitt.edu/~goldin








Re: xfree86 install makes wininit not working

2002-04-21 Thread Christopher Faylor

On Sun, Apr 21, 2002 at 03:15:05PM -0400, Harold Hunt wrote:
In related news: I think I'm going to hold off on making any wide-spread
announcements about Cygwin/XFree86 being available via setup.exe.  I'm not
comfortable with the installation process causing several minute delays in
starting the PC and in the possibility of the wininit.ini becoming too large
or not preserving long filenames.

FWIW, I agree.  We don't want a flood of requests from people reporting
problems.

cgf



RE: xfree86 install makes wininit not working

2002-04-21 Thread Robert Collins



 -Original Message-
 From: Ilya Goldin [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, April 22, 2002 3:52 AM

 When I restarted, Win2K (which is what I'm running here, with 
 all the latest patches), got stuck at the end of its second 
...

 Having read the list since, I surmise that the WININIT.INI 

There is no WININIT.INI on NT. There is an equivalent on-boot process
however.

 P.S. I guess the other burning question is why did setup.exe 
 decide that it couldn't overwrite the Xfree files even though 
 Xfree wasn't in use?

Send in your /var/logs/setup.log.full and /var/logs/setup.log and I'll
see what I can tell you.

Rob



RE: xfree86 install makes wininit not working

2002-04-20 Thread Harold Hunt

Robert,

  Hmm. What happens if you supply a (say) 16Kb subset
  of the wininit.ini
  file to windows ME - does it process it correctly?
 
  Rob

 Hi Rob,

 Renaming is done - but now renamed file haved 8.3
 names with ~ and are unusable, I think, by X,
 since names are incorrect - too bad.


What's your prognosis on this?  Is this a problem that is specific to
Sylvain's machine or is this going to be a problem because Cygwin/XFree86
has over 4000 files in the font directories?

Is there some limit to the allowed size of wininit.ini, or did you suggest
testing a subset simply to see if one of the commands in the latter part of
the file was invalid?

Basically: do we need to pull the Cygwin/XFree86 setup.exe release for now,
or can I go on with making changes to the web page, etc to announce the
release?

Harold




Re: xfree86 install makes wininit not working

2002-04-20 Thread Christopher Faylor

On Sun, Apr 21, 2002 at 12:59:26PM +1000, Robert Collins wrote:
 What's your prognosis on this?  Is this a problem that is 
 specific to Sylvain's machine or is this going to be a 
 problem because Cygwin/XFree86 has over 4000 files in the 
 font directories?

I haven't come to a root cause yet.

Have you actually duplicated the problem, Robert?

Maybe I've missed something but I don't think I've seen an indication
that this isn't just a Wine problem.

cgf 



RE: xfree86 install makes wininit not working

2002-04-20 Thread Robert Collins



 -Original Message-
 From: Christopher Faylor [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, April 21, 2002 1:15 PM
 To: [EMAIL PROTECTED]
 Subject: Re: xfree86 install makes wininit not working
 
 
 On Sun, Apr 21, 2002 at 12:59:26PM +1000, Robert Collins wrote:
  What's your prognosis on this?  Is this a problem that is
  specific to Sylvain's machine or is this going to be a 
  problem because Cygwin/XFree86 has over 4000 files in the 
  font directories?
 
 I haven't come to a root cause yet.
 
 Have you actually duplicated the problem, Robert?
 
 Maybe I've missed something but I don't think I've seen an 
 indication that this isn't just a Wine problem.

The user reported the problem as being under Windows ME.

Rob



RE: xfree86 install makes wininit not working

2002-04-19 Thread Harold Hunt

Robert,

Cygwin's setup.exe doesn't use wininit.ini, does it?  I'm going to guess
that the answer is something along the lines of no way in hell, but I
figure I had better check with you.

Harold

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher Faylor
 Sent: Friday, April 19, 2002 10:04 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: xfree86 install makes wininit not working


 And here it begins...

 Cygwin/XFree86 has its own mailing list:  [EMAIL PROTECTED]

 If you want help you should ask the experts.

 I've redirected this message there.

 cgf

 On Sat, Apr 20, 2002 at 03:59:32AM +0200, Sylvain Petreolle wrote:
 Hi,
 
 I wanted to update my existing Xfree86-4.2.0-1
 installation.
 So i choose a default Xfree86 installation.
 All files downloaded correct,
 and i was told that everything was ok.
 
 But at reboot,
 a 65497 bytes wininit.ini wants to rename/rewrite 627
 files, and no one is replaced (wininit.ini isn't even
 renamed to .bak)
 
 This damn thing makes windows write Please wait while
 updating your configuration files... every time
 I reboot if I don't rename the file.
 could the fact that wininit.ini is too big make it
 fail ?
 
 I'm running it under Windows Me.




RE: xfree86 install makes wininit not working

2002-04-19 Thread Robert Collins



 -Original Message-
 From: Harold Hunt [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, April 20, 2002 12:47 PM
 To: [EMAIL PROTECTED]
 Cc: Robert Collins
 Subject: RE: xfree86 install makes wininit not working
 
 
 Robert,
 
 Cygwin's setup.exe doesn't use wininit.ini, does it?  I'm 
 going to guess that the answer is something along the lines 
 of no way in hell, but I figure I had better check with you.

It does, via the proscribed windows API to perform copy-on-reboot for
in-use files in win95.

Windows is meant to perform the copies before loading the GUI, and then
remove the ini entries after it does that.

If I could get some details - the /var/log/setup.log and setup.log.full,
and the machine layout (where windows cygwin etc are), and a copy of the
ineffective wininit.ini, I will see what I can figure out.

As to why this happened, I assume that the user was running X at the
same time as installing it via setup.exe.

Rob



RE: xfree86 install makes wininit not working

2002-04-19 Thread Robert Collins

I realised the ini file was present in Sylvain's email.

Sylvain - do the .NEW files exist? Are the paths correct?


ROb



RE: xfree86 install makes wininit not working

2002-04-19 Thread Sylvain Petreolle

 It does, via the proscribed windows API to perform
 copy-on-reboot for
 in-use files in win95.
 Windows is meant to perform the copies before
 loading the GUI, and then
 remove the ini entries after it does that.
Already know this (I develop for Wine Emulator :))
But that's ok to review point after point to see a
failure somewhere.
 
 If I could get some details - the /var/log/setup.log
 and setup.log.full, and the machine layout (where
windows cygwin etc
 are), and a copy of the
 ineffective wininit.ini, I will see what I can
 figure out.
Ok, I attached them.

cygcheck -s -r -v follows separately (Yahoo doesn't
allow 3 attachments per message).

 
 As to why this happened, I assume that the user was
 running X at the
 same time as installing it via setup.exe.
 
 Rob 
I just updated Cygwin via typing
http://www.cygwin.com/setup.exe in IE 6.

Cygwin-X wasn't running at the time.
Even Cygwin itself wasn't running.


___
Do You Yahoo!? -- Une adresse yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


setup.log.gz
Description: setup.log.gz

2002/04/20 00:28:24 Starting cygwin install, version 2.194.2.24
2002/04/20 00:28:24 Current Directory: C:\Program Files\GOA
2002/04/20 00:28:24 Command line parameters
2002/04/20 00:28:24 0 - 'C:\WINDOWS\Temporary Internet 
Files\Content.IE5\KHQ7W5QN\setup[1].exe'
2002/04/20 00:28:24 1 parameters passed
2002/04/20 00:28:28 source: network install
2002/04/20 00:28:31 root: C:/cygwin binary user
2002/04/20 00:28:34 Ending cygwin install



WININIT.INI.gz
Description: WININIT.INI.gz


RE: xfree86 install makes wininit not working

2002-04-19 Thread Sylvain Petreolle

As I wrote in last message, I attached output of
cygcheck.


___
Do You Yahoo!? -- Une adresse yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sat Apr 20 06:01:37 2002

Windows ME Ver 4.90 Build 3000 

Path:   .
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINDOWS
c:\WINDOWS\COMMAND

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\Nom'
MAKE_MODE = `unix'
PWD = `/home/Nom'
USER = `Nom'

BLASTER = `A220 I5 D1 H7 P330 T6'
CMDLINE = `bash --login -i'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
MANPATH = `:/usr/ssl/man'
OLDPWD = `/usr/bin'
PROMPT = `$p$g'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SBPCI = `C:\PROGRA~1\CREATIVE\AUDIO\DOSDRV'
SHLVL = `1'
TEMP = `c:\WINDOWS\TEMP'
TERM = `cygwin'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start 
Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/cygwin'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:/cygwin/bin'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:/cygwin/lib'
  flags = 0x0002
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
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd   N/AN/A
c:  hd  FAT32  10234Mb  67% CPUN   DISQUE C
d:  hd  FAT32   4994Mb  62% CPUN   DISQUE D
e:  hd  FAT32   4994Mb  50% CPUN   DISQUE E
f:  cd  CDFS 619Mb 100%   UN   Collect6
g:  cd   N/AN/A
h:  cd   N/AN/A

C:/cygwin  /  userbinmode
C:/cygwin/bin  /usr/bin   userbinmode
C:/cygwin/lib  /usr/lib   userbinmode
.  /cygdrive  userbinmode,noumount

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
  cygform5.dll v0.0 ts=2001/4/25 7:28
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
  cygmenu5.dll v0.0 ts=2001/4/25 7:27
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
  cygncurses++5.dll v0.0 ts=2001/4/25 7:29
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
  cygncurses5.dll v0.0 ts=2001/4/25 7:17
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
  cygpanel5.dll v0.0 ts=2001/4/25 7:27
   50k 2002/03/12 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
  cygz.dll v0.0 ts=2002/3/12 5:38
  170k 2002/01/21 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
  cygpng2.dll v0.0 ts=2002/1/21 2:05
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
  cygform6.dll v0.0 ts=2002/1/9 7:03
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
  cygmenu6.dll v0.0 ts=2002/1/9 7:03
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
  cygncurses++6.dll v0.0 ts=2002/1/9 7:03
   81k 2001/10/19 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
  cygitcl30.dll v0.0 ts=2001/10/20 2:25
   35k 2001/10/19 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
  cygitk30.dll v0.0 ts=2001/10/20 2:25
  390k 2001/10/19 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
  cygtcl80.dll v0.0 ts=2001/10/20 2:24
5k 2001/10/19 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2001/10/19 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
  cygtclreg80.dll v0.0 ts=2001/10/20 2:24
  623k 2001/10/19 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
  cygtk80.dll v0.0 ts=2001/10/20 2:25
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
  

RE: xfree86 install makes wininit not working

2002-04-19 Thread Sylvain Petreolle

 --- Robert Collins [EMAIL PROTECTED] a
écrit :  I realised the ini file was present in
Sylvain's
 email.
 
 Sylvain - do the .NEW files exist? Are the paths
 correct?
 
 
 ROb 
Yes, I checked for some of these, the .new exists in
the correct paths (checked in dos box too to see if
8.3
names are correct, and they are).

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com