From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Re: [HEADSUP] Let's start a Cygwin 1.7 release area
Date: Sun, 13 Apr 2008 09:43:00 -0000 [thread overview]
Message-ID: <20080413094246.GJ23852@calimero.vinschen.de> (raw)
In-Reply-To: <48013F76.4D6B8FFC@dessent.net>
On Apr 12 16:02, Brian Dessent wrote:
> 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.
Sounds very reasonable. The "just me" would only decide about the
setup registry key and the place where the Cygwin desktop shortcut and
menu entries are created.
> 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,
I made a quick poll in my neighborhood:
Plan A - 0 votes
Plan B - 1 vote
What the hell are you talking about? - 7 votes
So I think Plan B is the clear winner.
> 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.
I'm not exactly concerned.
> - 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?
The registry mount table is supposed to go away. If you look into the
new postinstall script in the cygwin sources, there's (commented out)
code which reads the old registry keys and converts them to fstab
entries. I'm planning to use the same code in another script which can
be called by /etc/profile and friends, to create the user specific fstab
file on the fly from the existing registry entries. What's missing
right now is the code to remove the old registry keys. But I guess I
will add that, too.
So we're at the point to ask what's the name of the new registry key
should be. Here's still a problem: The registry is also used for other
purposes:
Program Options (Special $CYGWIN settings per application)
heap_chunk_in_mb
heap_slop_in_mb
We would need to transfer them to the new place or we stick to the
"Cygnus Solutions" for backward compatibility. I'm not sure we still
need the Program Options thingy. I never heard about anybody actually
using heap_slop_in_mb and only fortran programmers seem to need
heap_chunk_in_mb :)
I'm all for changing the name from "Cygnus Solutions" to "Red Hat", but
OTOH I think keeping the name of the key is more hassle free.
I'd suggest to use simply a subkey of the existing Cygwin key:
{HKLM,HKCU}/Software/Cygnus Solutions/Cygwin/setup-${versioninfo}/
You could use a string value called "install_root" and possibly others
as you see fit since only setup would use them at all. ${versioninfo}
should probably begin with 2.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
next prev parent reply other threads:[~2008-04-13 9:43 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
2008-04-13 9:43 ` Corinna Vinschen [this message]
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=20080413094246.GJ23852@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--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).