amd64 and i386 version uses same /etc/alternative and conflicts

Bug #1012266 reported by Ernst Sjöstrand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
s2tc (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
High
Unassigned

Bug Description

[IMPACT]

* 0~git20110809-2 is not multiarch compatible. This means that currently a mix of amd64 and i386 variants can not be installed simultaneously. This is however required for e.g. wine installations which require a i386 version of mesa and therefore s2tc to be installed.
* The recently released Humble Bundle 5 makes use of the s2tc extension but requires both architecture versions to be installed for different games. See Bug #1012266
* The s2tc postinst/prerm scripts use update-alternatives to allow multiple versions of texture compression extensions to be installed and easy switching between these. The update-alternatives key was not multiarch compatible in -2 which was fixed in -3.
* Currently the following bug reports are related to this sync Bug #1012266 and Bug #1023184

[TESTCASE]

 1. Install libtxc-dxtn-s2tc0 and libtxc-dxtn-s2tc0:i386
 2. Notice that the link /usr/x86_64-linux-gnu/libtxc_dxtn_s2tc.so.0 was removed in favor of /usr/lib/i386-linux-gnu/libtxc_dxtn_s2tc.so.0

[Regression Potential]
* There is really none. On update the the old handle is removed and replaced by new multiarch update-alternatives.

* Original Description *

I installed the games from Humble Indie Bundle 5 and got some problems.
First Bastion worked fine. Then I installed Psyconauts and Bastion stopped working.
Bastion depends on libtxc-dxtn-s2tc0:amd64 and Psyconatus depends on libtxc-dxtn-s2tc0:i386.
Both libtxc-dxtn-s2tc0 packages use the same /etc/alternatives/libtxc-dxtn so they randomly overwrite each other.

Revision history for this message
Lennart Weller (lhw) wrote :

I uploaded a "fix" to debian. As soon as it is build I will request a port to ubuntu if that is required.
This is a really interesting problem though. I build this package with the intent to allow a possible future s3tc package to use the same update-alternatives config. But update-alternatives is currently not adequately set up for libraries especially not for multiarch libraries. This is more or less just a workaround but it should work.

Changed in s2tc (Ubuntu):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package s2tc - 0~git20110809-3

---------------
s2tc (0~git20110809-3) unstable; urgency=low

  * fixes multiarch alternatives bug (LP: #1012266)

 -- Lennart Weller <email address hidden> Tue, 12 Jun 2012 22:36:28 +0200

Changed in s2tc (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Ernst Sjöstrand (ernstp) wrote :

Nice! Now Ubuntu is the ultimate gaming platform, no one can stop it!

Revision history for this message
Scott Kitterman (kitterman) wrote :

Seems SRU worthy.

Changed in s2tc (Ubuntu Precise):
importance: Undecided → High
milestone: none → precise-updates
Revision history for this message
Lennart Weller (lhw) wrote :

I attached a debdiff targeting precise-proposed created according to Scott.

Revision history for this message
Brian Murray (brian-murray) wrote :

SRU information regarding this bug can be found in bug 1023197.

Changed in s2tc (Ubuntu Precise):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for the debdiff I've uploaded it to precise-proposed.

description: updated
description: updated
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Ernst, or anyone else affected,

Accepted s2tc into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/s2tc/0~git20110809-2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in s2tc (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Stéphane Graber (stgraber) wrote :

Confirmed that alternatives are now per-architecture.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package s2tc - 0~git20110809-2.1

---------------
s2tc (0~git20110809-2.1) precise-proposed; urgency=low

  * fixes multiarch alternatives bug (LP: #1012266, LP: #1023184, LP: #1023197)
 -- Lennart Weller <email address hidden> Wed, 18 Jul 2012 13:37:56 -0700

Changed in s2tc (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.