Re: Problem installing setup-1.7

2008-04-28 Thread Corinna Vinschen
On Apr 27 18:36, Charles Wilson wrote:
 Corinna Vinschen wrote:
 The problem is that this doesn't allow a parallel installation for
 now, even if setup-1.7 is working as advertised. 

 That's what I was trying to say.

 I should add code
 to the script which replaces all $OLD_CYGWINROOT path components with
 $NEW_CYGWINROOT on the fly to support that.

 That would be useful, during the transition.

Right.  I'll look into it ASAP.

 /etc/fstab.d/$USER is created and old 1.5 registry user mount points are
 copied to /etc/fstab.d/$USER on the fly when the user starts the shell
 the first time.  That's done by the new /etc/profile.d/user-fstab.c?sh
 scripts in base-cygwin.

 it == 000-cygwin-post-install.sh.  I didn't know there were /other/ 
 components of base-cygwin that /would/ handle that part.

Isn't it nice to have a surprise every day? :)


Corinna

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


Re: Problem installing setup-1.7

2008-04-28 Thread Corinna Vinschen
On Apr 28 10:51, Corinna Vinschen wrote:
 On Apr 27 18:36, Charles Wilson wrote:
  Corinna Vinschen wrote:
  The problem is that this doesn't allow a parallel installation for
  now, even if setup-1.7 is working as advertised. 
 
  That's what I was trying to say.
 
  I should add code
  to the script which replaces all $OLD_CYGWINROOT path components with
  $NEW_CYGWINROOT on the fly to support that.
 
  That would be useful, during the transition.
 
 Right.  I'll look into it ASAP.

Should be fixed in the just uploaded base-cygwin 0.3-1.


Corinna

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


Problem installing setup-1.7

2008-04-27 Thread Steffen Sledz
I tried to install setup-1.7 on a system running a normal release 
before. I've deleted the whole C:\cygwin dir from the disk and removed 
all cygwin/cygnus related items from the registry.


But after running the new setup the mounts for /usr/bin and /usr/lib 
where missing. Also there is no /etc/fstab file. What went wrong here?


Steffen


Re: Problem installing setup-1.7

2008-04-27 Thread Charles Wilson

Steffen Sledz wrote:
I tried to install setup-1.7 on a system running a normal release 
before. I've deleted the whole C:\cygwin dir from the disk and removed 
all cygwin/cygnus related items from the registry.


But after running the new setup the mounts for /usr/bin and /usr/lib 
where missing. Also there is no /etc/fstab file. What went wrong here?


There used to be a script, 000-cygwin-post-install.sh, bundled with the 
cygwin package itself (well, 1.7 versions anyway), that did this.  It 
was recently moved to a package of its own, 'base-cygwin'.


However, that package does not seem to have been added to the 'Base' 
category, or has not been uploaded to the release-2 area (I don't know 
which). In any case, setup-1.7 didn't download it for me, either.


Here's the important part of the /etc/fstab file that it should have 
created:


C:/cygwin-1.7 /some_fs binary 0 0
C:/cygwin-1.7/bin /usr/bin some_fs binary 0 0
C:/cygwin-1.7/lib /usr/lib some_fs binary 0 0

...modify to suit your needs.

--
Chuck



Re: Problem installing setup-1.7

2008-04-27 Thread Corinna Vinschen
On Apr 27 10:41, Charles Wilson wrote:
 Steffen Sledz wrote:
 I tried to install setup-1.7 on a system running a normal release 
 before. I've deleted the whole C:\cygwin dir from the disk and removed all 
 cygwin/cygnus related items from the registry.
 But after running the new setup the mounts for /usr/bin and /usr/lib where 
 missing. Also there is no /etc/fstab file. What went wrong here?

 There used to be a script, 000-cygwin-post-install.sh, bundled with the 
 cygwin package itself (well, 1.7 versions anyway), that did this.  It was 
 recently moved to a package of its own, 'base-cygwin'.

 However, that package does not seem to have been added to the 'Base' 
 category, or has not been uploaded to the release-2 area (I don't know 
 which). In any case, setup-1.7 didn't download it for me, either.

It hasn't been uploaded to the release-2 area yet.  I simply forgot
to do it yesterday, sorry.  I'm going to upload it in a minute.


Corinna

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


Re: Problem installing setup-1.7

2008-04-27 Thread Corinna Vinschen
On Apr 27 17:56, Corinna Vinschen wrote:
 On Apr 27 10:41, Charles Wilson wrote:
  Steffen Sledz wrote:
  I tried to install setup-1.7 on a system running a normal release 
  before. I've deleted the whole C:\cygwin dir from the disk and removed all 
  cygwin/cygnus related items from the registry.
  But after running the new setup the mounts for /usr/bin and /usr/lib where 
  missing. Also there is no /etc/fstab file. What went wrong here?
 
  There used to be a script, 000-cygwin-post-install.sh, bundled with the 
  cygwin package itself (well, 1.7 versions anyway), that did this.  It was 
  recently moved to a package of its own, 'base-cygwin'.
 
  However, that package does not seem to have been added to the 'Base' 
  category, or has not been uploaded to the release-2 area (I don't know 
  which). In any case, setup-1.7 didn't download it for me, either.
 
 It hasn't been uploaded to the release-2 area yet.  I simply forgot
 to do it yesterday, sorry.  I'm going to upload it in a minute.

Nevertheless, take the scripts carefully for now.  I have a nagging
feeling that my approach to fetch the old mount points from the registry
is not exactly foolproof.  Something about the rootdir...


Corinna

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


Re: Problem installing setup-1.7

2008-04-27 Thread Charles Wilson

Corinna Vinschen wrote:


Nevertheless, take the scripts carefully for now.  I have a nagging
feeling that my approach to fetch the old mount points from the registry
is not exactly foolproof.  Something about the rootdir...


Well, if you follow Brian instructions here:
http://cygwin.com/ml/cygwin-apps/2008-04/msg00299.html

Then when you run setup-1.7.exe you don't /have/ any mounts in the 
registry -- so all you'll get in /etc/fstab are the basic default 
mounts. [*] Later, when setup-1.7.exe is updated -- so that we don't 
have to remove all the 1.5 mount info from the registry before running 
setup-1.7.exe -- it'll work better on that initial install, but only for 
system mounts - /etc/fstab.  It doesn't attemp to replicate user mounts 
(for all users? current user? some selected group of 'cygwin' users? 
Yech!) into /etc/fstab.d/.  That's ok, IMO, but when we release 1.7, 
end-users need to know about that update quirk.


--
Chuck

[*] 'course, 000-cygwin-post-install.sh does more than just manipulate 
mounts and /etc/fstab




Re: Problem installing setup-1.7

2008-04-27 Thread Corinna Vinschen
On Apr 27 15:09, Charles Wilson wrote:
 Corinna Vinschen wrote:

 Nevertheless, take the scripts carefully for now.  I have a nagging
 feeling that my approach to fetch the old mount points from the registry
 is not exactly foolproof.  Something about the rootdir...

 Well, if you follow Brian instructions here:
 http://cygwin.com/ml/cygwin-apps/2008-04/msg00299.html

 Then when you run setup-1.7.exe you don't /have/ any mounts in the registry 
 -- so all you'll get in /etc/fstab are the basic default mounts. [*] Later, 
 when setup-1.7.exe is updated -- so that we don't have to remove all the 
 1.5 mount info from the registry before running setup-1.7.exe -- it'll work 
 better on that initial install, but only for system mounts - /etc/fstab.  
 It doesn't attemp to replicate user mounts (for all users? current user? 
 some selected group of 'cygwin' users? Yech!) into /etc/fstab.d/.  That's 
 ok, IMO, but when we release 1.7, end-users need to know about that update 
 quirk.

I'm not quite sure I understand what you mean.  The postinstall script
is supposed to create the mount points according to the user's 1.5
based system registry mount table.  This is for a replacement of a
1.5 with a 1.7 installation, as it's supposed to be at one point.

The problem is that this doesn't allow a parallel installation for
now, even if setup-1.7 is working as advertised.  I should add code
to the script which replaces all $OLD_CYGWINROOT path components with
$NEW_CYGWINROOT on the fly to support that.

/etc/fstab.d/$USER is created and old 1.5 registry user mount points are
copied to /etc/fstab.d/$USER on the fly when the user starts the shell
the first time.  That's done by the new /etc/profile.d/user-fstab.c?sh
scripts in base-cygwin.


Corinna

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


Re: Problem installing setup-1.7

2008-04-27 Thread Charles Wilson

Corinna Vinschen wrote:

On Apr 27 15:09, Charles Wilson wrote:
Then when you run setup-1.7.exe you don't /have/ any mounts in the registry 
-- so all you'll get in /etc/fstab are the basic default mounts. [*] Later, 
when setup-1.7.exe is updated -- so that we don't have to remove all the 
1.5 mount info from the registry before running setup-1.7.exe -- it'll work 
better on that initial install, but only for system mounts - /etc/fstab.  


I'm not quite sure I understand what you mean.  The postinstall script
is supposed to create the mount points according to the user's 1.5
based system registry mount table. 


Right. And once cygwin-1.7 is released, and *regular* users use 
setup.exe to upgrade an existing installation of cygwin-1.5 to 
cygwin-1.7, that will work fine.



This is for a replacement of a
1.5 with a 1.7 installation, as it's supposed to be at one point.


Exactly.


The problem is that this doesn't allow a parallel installation for
now, even if setup-1.7 is working as advertised. 


That's what I was trying to say.


I should add code
to the script which replaces all $OLD_CYGWINROOT path components with
$NEW_CYGWINROOT on the fly to support that.


That would be useful, during the transition.


It doesn't attemp to replicate user mounts (for all users? current
user? some selected group of 'cygwin' users? Yech!) into
/etc/fstab.d/. That's ok, IMO, but when we release 1.7, end-users
need to know about that  update quirk.



/etc/fstab.d/$USER is created and old 1.5 registry user mount points are
copied to /etc/fstab.d/$USER on the fly when the user starts the shell
the first time.  That's done by the new /etc/profile.d/user-fstab.c?sh
scripts in base-cygwin.


it == 000-cygwin-post-install.sh.  I didn't know there were /other/ 
components of base-cygwin that /would/ handle that part.


--
Chuck