Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 24 Sep 2004 15:30:44 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Max Bowsher cc: cygwin AT cygwin DOT com Subject: Re: Is setup.exe _supposed_ to delete the cygwin dll before attempting to run shell scripts? In-Reply-To: <011d01c4a266$19792470$78d96f83@robinson.cam.ac.uk> Message-ID: References: <20040924164839 DOT GJ674 AT trixie DOT casa DOT cgf DOT cx> <20040924170321 DOT GL12802 AT cygbert DOT vinschen DOT de> <011d01c4a266$19792470$78d96f83 AT robinson DOT cam DOT ac DOT uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Fri, 24 Sep 2004, Max Bowsher wrote: > Igor Pechtchanski wrote: > > This is more likely to be the culprit -- postinstall scripts are run after > > all the package files were installed. Unfortunately, preremove script > > dependencies aren't easily computed from regular package dependencies -- > > this has been discussed on cygwin-apps some time ago. > > Couldn't this be trivially solved by running all preremove scripts in a batch, > before actually beginning to delete files? > > Any flaw to that reasoning? It'll work for simple programs, but not for packages where preremove scripts erase files that are needed to run some programs from that package. One example (not necessarily a perfect one) that comes to mind right away is the base-files package, where the preremove script will currently erase /etc/profile (so any script executing "bash -l" will not get the expected results). I'm sure there are better examples... FWIW, this is probably somewhat similar to the issue of circular dependencies of postinstall scripts -- there is no good general solution if we assume monolithic scripts. Igor > I guess I should now go and see how hard that would be to make happen... > Max. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- 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/