Bug#2436: bash with shared readline library breaks ncurses3.0 postinst script
David Engel writes ("Bug#2436: bash with shared readline library breaks ncurses3.0 postinst script"):
...
> There two things at play here. First, the dependencies in the bash
> control file should possibly be a pre-depends types. I didn't add
> these yet since I didn't think we were ready to start using that
> feature of dpkg yet.
Yes, go ahead and use it straight away. Make sure you say
dpkg --assert-support-predepends
in the preinst script, in case the package gets fed to an older
version of dpkg (which would just ignore the Pre-Depends control file
field).
> Second, the install/remove scripts for
> ncurses3.0 are screwed up in that they do not leave a version in place
> during upgrades. We won't have to keep doing this kludgyness of
> moving things around during installs when Ian Jackson changes the
> symlink handling in dpkg. In the meantime, everyone with ncurses3.0
> installed should remove the support scripts for it by executing 'rm
> /var/lib/dpkg/info/ncurses3.0.p*'.
Can you change it straight away, please ? The window of brokenness
even with dpkg's old symlink handling is very small (smaller than that
between command invocations in a script), and that way you won't need
to change again.
Ian.
Reply to: