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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux