Linux Archive

Linux Archive (
-   Fedora Packaging (
-   -   update-alternatives (and other such pre/post scripts) in multi-arch (

Daniel Piddock 02-05-2010 04:39 PM

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 but
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. 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?

Thank you,

Dan Piddock
System Administrator, CoreFiling Ltd
packaging mailing list

All times are GMT. The time now is 07:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.