From: Brian Dessent <brian@dessent.net>
To: cygwin-apps@cygwin.com
Subject: Re: [HEADSUP] Let's start a Cygwin 1.7 release area
Date: Sat, 12 Apr 2008 23:00:00 -0000 [thread overview]
Message-ID: <48013F76.4D6B8FFC@dessent.net> (raw)
In-Reply-To: <20080412151515.GG23852@calimero.vinschen.de>
Corinna Vinschen wrote:
> I also found, when setup doesn't have the mount points it doesn't seem
> to be able to take the /etc/setup/installed.db from the path entered as
> root directory. It installs happily all base packages again a second
> time.
>
> Probably we will still need *some* registry entry. Setup could create
> one for its own purpose, just to find the installation path. Maybe the
> registry value should use a version number, so that we can have two
> parallel installation again, should we ever release a -3 distro...
Here's what I had in mind for the logic:
On startup, setup looks for $newkey. If found, it uses the Win32 path
stored there as the starting value for the root dir/install location.
If not found, it looks at $oldkey. If that's not found, it uses a
default of c:\cygwin.
In any case, if the user changes this value on the second step of the
installer, that new value becomes the effective value immediately;
anything obtained from the first value should be discarded. Access to
files in the POSIX namespace is done purely relative to this root, e.g.
setup creates an internal mount table of its own that maps the install
dir to "/" (and for the time being duplicating /{bin,lib} to
/usr/{bin,lib}, subject to change as well.) At the end of setup, the
effective value of the root dir is written out to $newkey.
Where:
newkey = some new key whose location is yet to be decided
oldkey = the location corresponding to the root dir of the current
registry mount table
In both of the above there is the implicit notion of looking first in
HKLM\Software and then falling back to HKCU\Software if not found,
allowing the non-admin user to install Cygwin as they please. The
location where it was found is used as the starting value for
justme/allusers, and if the user modifies the setting during the run the
resulting destination at the end is changed accordingly.
The above is meant to achieve the following objectives:
- the setup tool and other 3rd party tools have a key telling if Cygwin
is installed and where
- at startup setup can find its last-* from the last run and use them as
defaults so that the user doesn't have to re-enter them every time
- installing multiple trees becomes a matter of simply changing the root
dir at step 2 of the install process
Unresolved issues with this plan:
- What are we going to do about text/binary mode? To maintain the
setting, setup would have to be taught to parse/write fstab. Ugh. Plan
B would be to say that if you want textmode you have to edit fstab
yourself. That has the advantage of making it harder to use textmode,
which leads to fewer bugreports. On the other hand, the small army of
insane people that do actually use textmode will probably be mad that
they have to manually edit config files (the horror!) because the setup
tool no longer has a choice.
- Do we really want to pick a new key for $newkey, or wedge it into the
same existing location somehow? I admit that I do find it a bit silly
that Cygwin still installs under "Cygnus Solutions", and since a 1.7 DLL
will not even look at the registry I guess it is proper to move to a
totally new key for this setting. And of course for the 1.7 testing
period we'd want it to be separate. But I mean long term, are we making
3rd parties lives easier or harder by having two totally different
places/formats to check for an existing install of Cygwin?
Brian
next prev parent reply other threads:[~2008-04-12 23:00 UTC|newest]
Thread overview: 132+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-02 12:36 Corinna Vinschen
2008-04-02 17:46 ` Corinna Vinschen
2008-04-02 23:01 ` Charles Wilson
2008-04-03 9:42 ` Corinna Vinschen
2008-04-03 13:56 ` Christopher Faylor
2008-04-03 14:20 ` Corinna Vinschen
2008-04-03 15:16 ` Igor Peshansky
2008-04-03 15:37 ` Corinna Vinschen
2008-04-03 15:39 ` Corinna Vinschen
2008-04-03 15:47 ` Corinna Vinschen
2008-04-03 23:13 ` Charles Wilson
2008-04-03 16:12 ` Christopher Faylor
2008-04-03 16:27 ` Corinna Vinschen
2008-04-03 17:00 ` Christopher Faylor
2008-04-03 17:12 ` Corinna Vinschen
2008-04-03 23:06 ` Charles Wilson
2008-04-04 0:39 ` Christopher Faylor
2008-04-04 1:51 ` Charles Wilson
2008-04-03 23:21 ` Warren Young
2008-04-04 0:41 ` Christopher Faylor
2008-04-03 22:52 ` Charles Wilson
2008-04-04 12:22 ` Corinna Vinschen
2008-04-05 10:09 ` Corinna Vinschen
2008-04-05 6:17 ` Karl M
2008-04-04 0:50 ` Christopher Faylor
2008-04-04 12:16 ` Corinna Vinschen
2008-04-08 16:27 ` Corinna Vinschen
2008-04-08 17:27 ` Christopher Faylor
2008-04-08 17:40 ` Corinna Vinschen
2008-04-08 18:42 ` Christopher Faylor
2008-04-08 21:07 ` Corinna Vinschen
2008-04-08 21:18 ` Brian Dessent
2008-04-08 21:46 ` Corinna Vinschen
2008-04-08 21:54 ` Corinna Vinschen
2008-04-08 23:27 ` Brian Dessent
2008-04-09 8:27 ` Corinna Vinschen
2008-04-09 11:34 ` Brian Dessent
2008-04-09 12:16 ` Corinna Vinschen
2008-04-09 12:28 ` Brian Dessent
2008-04-09 14:32 ` Christopher Faylor
2008-04-09 16:28 ` Corinna Vinschen
2008-04-11 15:13 ` Corinna Vinschen
2008-04-12 0:35 ` Brian Dessent
2008-04-12 11:36 ` Corinna Vinschen
2008-04-12 12:23 ` Corinna Vinschen
2008-04-12 12:43 ` Brian Dessent
2008-04-12 15:15 ` Corinna Vinschen
2008-04-12 17:43 ` Eric Blake
2008-04-12 23:00 ` Brian Dessent [this message]
2008-04-13 9:43 ` Corinna Vinschen
2008-04-13 19:35 ` Christopher Faylor
2008-04-14 9:56 ` Corinna Vinschen
2008-04-14 14:36 ` Christopher Faylor
2008-04-15 3:00 ` Brian Dessent
2008-04-15 8:55 ` Corinna Vinschen
2008-04-15 9:09 ` Corinna Vinschen
2008-04-15 9:24 ` Brian Dessent
2008-04-15 9:31 ` Corinna Vinschen
2008-04-15 9:35 ` Corinna Vinschen
2008-04-15 14:17 ` Christopher Faylor
2008-04-15 15:44 ` Corinna Vinschen
2008-04-15 16:16 ` Reini Urban
2008-04-15 17:59 ` Christopher Faylor
2008-04-15 18:39 ` Corinna Vinschen
2008-04-15 18:52 ` Lapo Luchini
2008-04-16 9:39 ` Corinna Vinschen
2008-04-16 16:25 ` Christopher Faylor
2008-04-20 15:45 ` Christopher Faylor
2008-04-20 18:47 ` Charles Wilson
2008-04-20 21:56 ` Christopher Faylor
2008-04-20 22:11 ` Christopher Faylor
2008-04-20 22:44 ` Charles Wilson
2008-04-20 22:55 ` Christopher Faylor
2008-04-20 23:08 ` Charles Wilson
2008-04-20 22:40 ` Charles Wilson
2008-04-21 8:33 ` Corinna Vinschen
2008-04-21 20:34 ` Corinna Vinschen
2008-04-21 20:54 ` Christopher Faylor
2008-04-15 18:58 ` Eric Blake
2008-04-16 2:25 ` Brian Dessent
2008-04-16 8:45 ` Corinna Vinschen
2008-04-21 14:04 ` Corinna Vinschen
2008-04-21 17:48 ` Corinna Vinschen
2008-04-21 20:15 ` Corinna Vinschen
2008-04-22 6:03 ` Brian Dessent
2008-04-22 6:59 ` Jörg Schaible
2008-04-22 8:26 ` Brian Dessent
2008-04-22 11:12 ` Corinna Vinschen
2008-04-22 8:48 ` Corinna Vinschen
2008-04-22 9:46 ` Brian Dessent
2008-04-22 10:57 ` Corinna Vinschen
2008-04-22 11:07 ` Brian Dessent
2008-04-22 14:44 ` Pēteris Kļaviņš
2008-04-22 14:56 ` Brian Dessent
2008-04-22 15:26 ` Pēteris Kļaviņš
2008-04-22 15:39 ` Brian Dessent
2008-04-22 23:18 ` Pēteris Kļaviņš
2008-04-23 9:27 ` Brian Dessent
2008-04-23 20:09 ` Pēteris Kļaviņš
2008-04-22 15:38 ` Corinna Vinschen
2008-04-14 23:24 ` Igor Peshansky
2008-04-15 3:08 ` Brian Dessent
2008-04-15 8:59 ` Corinna Vinschen
2008-04-12 12:24 ` Dr. Volker Zell
2008-04-12 12:32 ` Corinna Vinschen
2008-04-13 3:43 ` Christopher Faylor
2008-04-13 9:03 ` Corinna Vinschen
2008-04-13 19:47 ` Christopher Faylor
2008-04-13 4:44 ` Christopher Faylor
2008-04-13 9:05 ` Corinna Vinschen
2008-04-14 2:34 ` Christopher Faylor
2008-04-08 21:39 ` Christopher Faylor
2008-04-08 21:53 ` Corinna Vinschen
2008-04-11 16:27 ` Andrew Schulman
2008-04-11 16:37 ` Corinna Vinschen
2008-07-24 22:41 ` Phil Nelson
2008-07-25 4:21 ` Christopher Faylor
2008-07-25 7:21 ` Corinna Vinschen
2008-07-25 13:56 ` Phil Nelson
2008-07-25 14:20 ` Corinna Vinschen
2008-04-06 14:35 klavins
2008-04-06 21:04 ` Christopher Faylor
2008-04-08 18:34 Charles Wilson
2008-04-08 18:43 ` Christopher Faylor
2008-04-08 21:09 ` Corinna Vinschen
2008-04-09 15:04 Charles Wilson
2008-04-09 16:02 ` Corinna Vinschen
2008-04-22 15:51 Charles Wilson
2008-04-22 16:01 ` Corinna Vinschen
2008-04-25 11:22 ` Corinna Vinschen
2008-04-22 16:08 ` Brian Dessent
2008-04-22 17:02 ` Charles Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48013F76.4D6B8FFC@dessent.net \
--to=brian@dessent.net \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).