This is the mail archive of the
mailing list for the Cygwin project.
RE: Cygwin broken after update (PATH problem?)
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: cygwin at cygwin dot com
- Date: Sat, 28 Oct 2006 14:10:26 -0400 (EDT)
- Subject: RE: Cygwin broken after update (PATH problem?)
- References: <07a501c6f67d$252f9ca0$a501a8c0@CAM.ARTIMI.COM>
- Reply-to: cygwin at cygwin dot com
On Mon, 23 Oct 2006, Dave Korn wrote:
> On 23 October 2006 07:49, Com MN PG P E B Consultant 3 wrote:
> >> It won't overwrite a locally-modified /etc/profile, that's
> >> deliberate.
> > And it is a good thing to do. So it seems that setup did not
> > overwrite, but delete it, which is really kind of strange.
> Yep, it's absolutely not meant to do that. Which means that something
> went badly wrong, but it's a bit hard to guess what.
Actually, it's meant to do exactly that. The way the /etc files are
upgraded is this: the postinstall script adds the local versions of the
files if they aren't there already and keeps the copy of the original.
Upon uninstall, the preremove script compares the local version with the
original, and if they are the same, removes the local version. Then,
after installing the new version of the package (hence, the new original),
the original is again copied to the local version if it's not present.
What seems to have happened is that the preremove script ran fine (and
removed the local copy), but the postinstall didn't run (so the new local
copy did not get created).
> If setup.exe doesn't repair the system for you, you can get a fresh
> copy of /etc/profile out of /etc/defaults/etc. Hmm, you probably want
> bash.basrc from there as well, that seems to be missing from your /etc
> listing. Try copying those two files across, then see what you get, and
> don't forget to try d2u'ing your ~/.bashrc and ~/.bash_profile.
One thing to try would be temporarily adding a text mount for /etc and
seeing if it helps. If it does, then one of the postinstall scripts may
accidentally have CRLF line endings (which would be a packaging bug).
The mount can be removed after the install.
|\ _,,,---,,_ email@example.com | firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html