On Mon, 15 Nov 2004, Max Bowsher wrote:Rather than special-casing the cygwin dll, I think a better solution would be to run all preremove scripts, then perform all file deletions and extractions, then run all postinstall scripts.
This will work as long as preremove scripts depend only on the parts of other packages that are still functional after their respective preremove scripts have run. This is mostly the case with DLLs.
True, it's not a perfect solution, but it should perform significantly better than the current situation.
FWIW, there was some discussions on cygwin-apps a while ago (last year?) about the order of running preremove scripts. It wasn't quite the reverse dependency order.
Speaking of the order in which scripts are run (but unrelated to this discussion): the logic that is supposed to invoke postinstall scripts in topological order of dependencies doesn't seem to work -- instead of being invoked when their respective packages are traversed, the postinstall scripts are executed by the catch-all clause (and thus in alphabetical order).
Yuck.
Does anyone know how rpm/deb handle this kind of issue?
Max.