X-Spam-Check-By: sourceware.org Date: Sat, 28 Oct 2006 14:10:26 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Dave Korn cc: cygwin AT cygwin DOT com Subject: RE: Cygwin broken after update (PATH problem?) In-Reply-To: <07a501c6f67d$252f9ca0$a501a8c0@CAM.ARTIMI.COM> Message-ID: References: <07a501c6f67d$252f9ca0$a501a8c0 AT CAM DOT ARTIMI DOT COM> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list 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. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com 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 Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/