This is the mail archive of the
mailing list for the Cygwin project.
Re: Upload: bash-3.0-4 [test]
On Tue, 5 Jul 2005, Igor Pechtchanski wrote:
> > > > > This isn't good enough -- I think you do need a preremove script.
> > > > > I've been trying to figure out why the no-preremove solution seems
> > > > > wrong, and came up with the following scenario: suppose bash is
> > > > > linked against an older libreadline, and the user upgrades both
> > > > > bash and libreadline to newer versions. /bin/sh will be a copy of
> > > > > the old version of bash, but after the upgrade it won't have the
> > > > > necessary DLLs. So, running the postinstall script (with "/bin/sh
> > > > > --version") will result in a "Can't locate DLL" popup, which
> > > > > should be a no-no in a postinstall script.
Aha! <http://cygwin.com/ml/cygwin/2005-07/msg00337.html> -- that's what's
been nagging at me all that time. The reason you have to use the
preremove script instead of relying on the postinstall one is that there
may not *be* a postinstall script that does the right thing (for example,
FWIW, I still see nothing wrong with a preremove script.
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA