Control: tag -1 pending On Mon, Apr 07, 2014 at 12:22:20PM +0200, Christian Hofstaedtler wrote: > * Christian Hofstaedtler <z...@debian.org> [140406 23:33]: > > I /think/ we should add this to all interpreter preinsts: > > update-alternatives --remove-all ruby > > On second thought, there are probably some corner cases; for one > this needs to be done in src:ruby-defaults, and we must ensure that > 1.8 never gets configured again after the preinst runs. > > I don't see how to guarantee that whatever workaround we come up > with won't break in a random way. I'd be much more comfortable with > readding the Conflicts on ruby1.8.
I think I achieved a solution: http://anonscm.debian.org/gitweb/?p=collab-maint/ruby-defaults.git;a=commitdiff;h=8d8239020464f18e96c816b87cc6c7ca834a562f I tested several different cases and it always succeeds in keeping the symlinks pointing to default ruby, even if you reconfigure or reinstall ruby1.8 and ruby1.9.1. I admit that hacking /var/lib/dpkg/info/ruby{1.8,1.9.1}.postinst from ruby.postinst is not very pretty, but the situation as a whole is already not pretty. ;-) -- Antonio Terceiro <terce...@debian.org>
signature.asc
Description: Digital signature