update-alternatives (and other such pre/post scripts) in multi-arch
I'm trying to create a multi-arch package that uses update-alternatives.
I followed the spec on
this falls apart when uninstalling a package in a multi-arch system,
when the partner package is also installed e.g. removing the i686 when
the x86_64 is installed. $1=1 to %postun, like it was a simple upgrade.
java-1.6.0-openjdk appears to be one example of a package suffering this
Using $1 for other tasks in multi-arch packages gets just as messy.
https://bugzilla.redhat.com/show_bug.cgi?id=340391 is an open bug about
this issue with a history tracking back to 2004 that has received little
Is there any clean or possible way to get this to work? Or just hope
users don't uninstall and notice that alternatives now contains stale data?
System Administrator, CoreFiling Ltd
packaging mailing list