This is the mail archive of the
mailing list for the Cygwin project.
Re: Is setup.exe _supposed_ to delete the cygwin dll before attempting to run shell scripts?
- From: "Karl M" <karlm30 at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 24 Sep 2004 13:51:00 -0700
- Subject: Re: Is setup.exe _supposed_ to delete the cygwin dll before attempting to run shell scripts?
From: Igor Pechtchanski Reply-To: email@example.comWould it be easier to delay the deletion of the files. What I mean is in the
preremove scripts, append the files to a list of "files to be deleted"
instead of deleting them and not actually delete anything until all of the
preremove scripts have run. Then delete the files in the list. Then remove
the installed files.
To: Max Bowsher CC: firstname.lastname@example.org
Subject: Re: Is setup.exe _supposed_ to delete the cygwin dll before
attempting to run shell scripts?
Date: Fri, 24 Sep 2004 15:30:44 -0400 (EDT)
On Fri, 24 Sep 2004, Max Bowsher wrote:
> Igor Pechtchanski wrote:
> > This is more likely to be the culprit -- postinstall scripts are run
> > 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
> 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.
> I guess I should now go and see how hard that would be to make happen...
Express yourself instantly with MSN Messenger! Download today - it's FREE!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html