Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Packaging (http://www.linux-archive.org/fedora-packaging/)
-   -   update-alternatives (and other such pre/post scripts) in multi-arch (http://www.linux-archive.org/fedora-packaging/321343-update-alternatives-other-such-pre-post-scripts-multi-arch.html)

Daniel Piddock 02-05-2010 04:39 PM

update-alternatives (and other such pre/post scripts) in multi-arch
 
Hi,

I'm trying to create a multi-arch package that uses update-alternatives.
I followed the spec on
https://fedoraproject.org/wiki/PackagingDrafts/UsingAlternatives 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
problem.

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
attention.

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
http://www.corefiling.com
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging


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.