package is uninstallable on i386 due to file conflicts

Bug #1254686 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtmultimedia-opensource-src-touch (Ubuntu)
Fix Released
High
Sergio Schvezov

Bug Description

Trying to build images for Ubuntu Touch for the i386 target results in the following build log: http://paste.ubuntu.com/6473354/

starting around line 3623
...
dpkg: error processing /var/cache/apt/archives/libqt5multimedia5-touch_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libQt5Multimedia.so.5', which is also in package libqt5multimedia5:i386 5.0.2-4ubuntu4
...
dpkg: error processing /var/cache/apt/archives/libqgsttools-p1-touch_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libqgsttools_p.so.1.0.0', which is also in package libqgsttools-p1:i386 5.0.2-4ubuntu4
...
dpkg: error processing /var/cache/apt/archives/libqt5multimedia5-touch-plugins_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/qt5/plugins/mediaservice/libgstaudiodecoder.so', which is also in package libqt5multimedia5-plugins:i386 5.0.2-4ubuntu4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
...
dpkg: error processing /var/cache/apt/archives/libqt5multimediaquick-p5-touch_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libQt5MultimediaQuick_p.so.5', which is also in package libqt5multimediaquick-p5:i386 5.0.2-4ubuntu4
...

which results in:

Errors were encountered while processing:
 /var/cache/apt/archives/libqt5multimedia5-touch_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb
 /var/cache/apt/archives/libqgsttools-p1-touch_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb
 /var/cache/apt/archives/libqt5multimedia5-touch-plugins_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb
 /var/cache/apt/archives/libqt5multimediaquick-p5-touch_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb
 /var/cache/apt/archives/qtdeclarative5-qtmultimedia-touch-plugin_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
P: Begin unmounting filesystems...
P: Saving caches...
...

Oliver Grawert (ogra)
Changed in qtmultimedia-opensource-src-touch (Ubuntu):
importance: Undecided → High
Jani Monoses (jani)
Changed in qtmultimedia-opensource-src-touch (Ubuntu):
status: New → Confirmed
Oliver Grawert (ogra)
Changed in qtmultimedia-opensource-src-touch (Ubuntu):
assignee: nobody → Sergio Schvezov (sergiusens)
Revision history for this message
Jani Monoses (jani) wrote :

Adding 'diversion of /usr/lib/i686-linux-gnu/libQt5Multimedia.so.5 to /var/lib/libqt5multimedia5-touch-diverted/libQt5Multimedia.so.5.diverted-libqt5multimedia5-touch by libqt5multimedia5-touch'
dpkg: error processing /var/cache/apt/archives/libqt5multimedia5-touch_5.1.1+git20130920+5b12abb862-0ubuntu3_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libQt5Multimedia.so.5', which is also in package libqt5multimedia5:i386 5.0.2-4ubuntu4

The paths i386-linux-gnu and i686-linux-gnu above do not match.

Revision history for this message
Jani Monoses (jani) wrote :

should DEB_TARGET_GNU_TYPE be used in debian/rules?

Revision history for this message
Oliver Grawert (ogra) wrote :

the following patch to debian/rules fixes the issue, i did test builds on amd64, i386 and armhf to verify

--- debian/rules.orig 2013-11-25 14:34:12.000000000 +0000
+++ debian/rules 2013-11-25 14:34:39.000000000 +0000
@@ -36,25 +36,25 @@
   -Nlibqt5multimediawidgets5-touch

 override_dh_auto_configure:
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqgsttools-p1-touch.preinst
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqgsttools-p1-touch.postrm
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqt5multimedia5-touch.preinst
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqt5multimedia5-touch.postrm
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqt5multimediaquick-p5-touch.preinst
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqt5multimediaquick-p5-touch.postrm
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/qtdeclarative5-qtmultimedia-touch-plugin.preinst
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/qtdeclarative5-qtmultimedia-touch-plugin.postrm
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqt5multimedia5-touch-plugins.preinst
- sed "s/__ARCH__/$(DEB_HOST_GNU_TYPE)/g" -i \
+ sed "s/__ARCH__/$(DEB_HOST_MULTIARCH)/g" -i \
   debian/libqt5multimedia5-touch-plugins.postrm
  qmake CONFIG+=mir

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtmultimedia-opensource-src-touch - 5.1.1+git20130920+5b12abb862-0ubuntu4

---------------
qtmultimedia-opensource-src-touch (5.1.1+git20130920+5b12abb862-0ubuntu4) trusty; urgency=low

  * fix preinst and postrm to work on i386 and other arches too ...
    (LP: #1254686)
 -- Oliver Grawert <email address hidden> Mon, 25 Nov 2013 15:40:13 +0100

Changed in qtmultimedia-opensource-src-touch (Ubuntu):
status: Confirmed → Fix Released
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.