Bug 246502 - security/keepassxc: Cannot mix incompatible Qt library (version 0x50d02) with this library (version 0x50e02)
Summary: security/keepassxc: Cannot mix incompatible Qt library (version 0x50d02) with...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2020-05-16 14:16 UTC by Riccardo Mollo
Modified: 2020-07-01 13:47 UTC (History)
4 users (show)

See Also:
melanhit: maintainer-feedback+


Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Mollo 2020-05-16 14:16:24 UTC
When launching KeePassXC 2.5.4, I get the following error:

Cannot mix incompatible Qt library (version 0x50d02) with this library (version 0x50e02)
Abort trap (core dumped)

uname -a:

FreeBSD insanity 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC  amd64

involved packages:

keepassxc-2.5.4                KeePass Cross-platform Community Edition
qt5-concurrent-5.14.2          Qt multi-threading module
qt5-core-5.14.2_2              Qt core non-graphical module
qt5-dbus-5.14.2                Qt D-Bus inter-process communication module
qt5-declarative-5.14.2         Qt declarative framework for dynamic user interfaces
qt5-gtkplatform-0.2.2_3        GTK platform backend for Qt 5
qt5-gui-5.14.2                 Qt graphical user interface module
qt5-linguisttools-5.14.2       Qt localization tools
qt5-multimedia-5.14.2          Qt audio, video, radio and camera support module
qt5-network-5.14.2             Qt network module
qt5-opengl-5.14.2              Qt 5-compatible OpenGL support module
qt5-printsupport-5.14.2        Qt print support module
qt5-sql-5.14.2                 Qt SQL database integration module
qt5-style-plugins-   Additional Styles for Qt 5 and KDE
qt5-svg-5.14.2                 Qt SVG support module
qt5-testlib-5.14.2             Qt unit testing module
qt5-widgets-5.14.2             Qt C++ widgets module
qt5-x11extras-5.14.2           Qt platform-specific features for X11-based systems
qt5-xml-5.14.2                 Qt SAX and DOM implementations
qt5-xmlpatterns-5.14.2         Qt support for XPath, XQuery, XSLT and XML Schema
qtchooser-66_2                 Qt tool wrapper
qtcurve-utils-1.9.0.r1         QtCurve common files and libraries
Comment 1 Mikael Urankar freebsd_committer 2020-05-16 15:24:00 UTC
No problem here, where does the package come from (official or custom repo?)
Make sure you don't have any old qt5-*-5.13 packages installed
Comment 2 Riccardo Mollo 2020-05-16 16:13:05 UTC
I think I found a workaround to solve the problem.

I had the following environment variables set (because I use Mate and I like to have GTK look on QT apps when possible):

declare -x QT_QPA_PLATFORMTHEME="gtk2"
declare -x QT_SCALE_FACTOR="1"

by unsetting them, the problem disappeared.

Yes, I use official FreeBSD repo only:

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes

It seems that the responsible of the issue is package "qt5-style-plugins-".
By reading stuff on forums, it seems that other QT applications suffer from the same problem, and another way to fix it (instead of unsetting the variables) should be, at the moment, downgrading "qt5-style-plugins" to version "".
Comment 3 Tobias C. Berner freebsd_committer 2020-05-16 17:18:48 UTC
(In reply to Riccardo Mollo from comment #2)
Looks like the style plugin needs a revision bump to get a new package against the new Qt version.
Comment 4 commit-hook freebsd_committer 2020-05-16 17:22:19 UTC
A commit references this bug:

Author: tcberner
Date: Sat May 16 17:21:44 UTC 2020
New revision: 535482
URL: https://svnweb.freebsd.org/changeset/ports/535482

  qt5-style-plugins: reinstate PORTREVISION and bump it after r531601

  qt5-style-plugins has a wrong portname. It should not start with qt5-
  The portrevision got dropped when upgrading the proper qt5-* ports
  to 5.14.2; rather, this one should have been bumped.

  PR:		246502

Comment 5 Andrew Romanenko 2020-05-27 18:32:37 UTC
close PR, it is not a keepassxc bug