Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 542698

Summary: dev-qt/designer-5.4.1 crashes with dev-qt/qtquick1-5.4.0[designer]
Product: Gentoo Linux Reporter: Maik Nijhuis <manyac>
Component: [OLD] DevelopmentAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: Yanestra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 543326    

Description Maik Nijhuis 2015-03-09 13:55:02 UTC
When running 'designer', I got this message: "Cannot mix incompatible Qt library (version 0x50400) with this library (version 0x50401)"

The core dump quickly revealed that /usr/lib64/libQt5Declarative.so.5 caused the problem. This file belongs to qtquick1-5.4.0, which was still on my system even though I upgraded other qt packages to 5.4.1. After upgrading qtquick1 to 5.4.1 the problem disappeared. After removing qtquick1 I could still run designer.

Qt Designer apparantly automatically loads /usr/lib64/libQt5Declarative.so.5 (via the plugin /usr/lib64/qt5/plugins/designer/libqdeclarativeview.so) if it detects its presence.

The ebuild for dev-qt/designer should thus have a dependency on dev-qt/qtquick1: If qtquick1 is installed, it should have the same version as designer. Could you update the ebuild?

Reproducible: Always
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-03-16 16:04:22 UTC
Thanks, pushed a commit to the overlay for review.

https://gitweb.gentoo.org/proj/qt.git/commit/?id=c23384467ccb1541f1bb4e7f333355bb98ea62d6
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2015-03-16 17:42:10 UTC
Maybe this would be better solved using subslots? (see also bug 523616)
Comment 3 Michael Palimaka (kensington) gentoo-dev 2015-03-17 10:41:09 UTC
(In reply to Davide Pesavento from comment #2)
> Maybe this would be better solved using subslots? (see also bug 523616)

Is the error because the plugin was built against an older version, or because it is an older version? If the latter, subslots won't force an upgrade.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2015-03-17 12:55:35 UTC
Good question. But I agree that it's safer to use the ~ dependency, so ACK from me. Maybe add a comment in the ebuild with a reference to this bug.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2015-03-17 14:51:13 UTC
Thanks, fixed in CVS.

+  17 Mar 2015; Michael Palimaka <kensington@gentoo.org>
+  +qtquick1-5.4.1-r1.ebuild:
+  Pin dev-qt/designer dependency avoid a crash wrt bug #542698.