qmlscene not pulling all required dependencies

Bug #1178147 reported by Martin Mrazik
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Ubuntu)
Invalid
Undecided
Unassigned
qtdeclarative-opensource-src (Ubuntu)
Fix Released
Undecided
Timo Jyrinki

Bug Description

We have the qt5-propper ppa enabled and doing something like this:
sudo apt-get install qmlscene qt5-default qtdeclarative5-qtquick2-plugin

Now with the state of the ppa as of today we are getting:
+ qmlscene /tmp/main.qml
Cannot mix incompatible Qt library (version 0x50001) with this library (version 0x50002)
/tmp/hudson3105480027562072510.sh: line 32: 2959 Aborted (core dumped) qmlscene /tmp/main.qml

Adding libqt5quick5 and libqt5qml5 to the apt-get install seems to fix the problem.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtbase-opensource-src (Ubuntu):
status: New → Confirmed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

I believe this only happens when you've mixed versions of libraries and do only selected update instead of apt-get upgrade?

But true, probably all dependencies should have a strict version number requirement in this case, since Qt does not allow for example some libraries to be older version like 5.0.0 and some newer like 5.0.1/5.0.2.

Changed in qtdeclarative-opensource-src (Ubuntu):
status: New → Confirmed
Changed in qtbase-opensource-src (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Hmm. If you're making an assumption that raring archives + apt-get install works, that's not anymore the case since there's a newer Qt version. Also before this there have been many patches at the qt5-proper that should be in use instead of using the versions in raring archives, even though the version number didn't see other than a distro version increasing.

So when using the PPA, apt-get dist-upgrade should be done in all cases to be sure you're using the same versions that run on the device.

Changed in qtdeclarative-opensource-src (Ubuntu):
assignee: nobody → Martin Mrazik (mrazik)
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

(the version dependencies should still be made more strict so that partial upgrade wouldn't be possible, but it doesn't change that the whole PPA contents should be used when testing regardless)

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

This should be fixed in the 5.0.2 packages, qmlscene for example depends on >= 5.0.2 for the libqt5core5 etc.

Changed in qtdeclarative-opensource-src (Ubuntu):
status: Confirmed → Fix Committed
assignee: Martin Mrazik (mrazik) → Timo Jyrinki (timo-jyrinki)
Changed in qtdeclarative-opensource-src (Ubuntu):
status: Fix Committed → 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.