Permit loading plugins built with future major Qt releases (4.x)
authorModestas Vainius <modax@debian.org>
Sat, 5 May 2018 01:53:17 +0000 (02:53 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Sat, 5 May 2018 01:53:17 +0000 (02:53 +0100)
commit45b8699a0fabd4d98bece491ec21e43cc0e7a6ae
treeb9f1b311e95b8c54e8283052a3e0c2e7570fd3e8
parent62ba02039cf61067824620d342cb64ef53d275c4
Permit loading plugins built with future major Qt releases (4.x)

This check is too paranoid for us because it prevents from using symbol files
in full potential. Fine-grained package level dependencies should ensure that
the required version of the Qt Library is installed which might not necessarily
be the latest Qt 4.x the plugin was built against because the plugin actually
did not use any of new symbols in the Qt Library.

However, removal of this check might still increase likelihood of crashes when:

1) loading a new incompatible version of plugin into a running process still
using an old Qt Library. This might happen right after upgrade;

2) user tries to load incompatible non-packaged plugin;

but it's an acceptable compromise. Here we trade more bullet proof protection
from rare user faults or weird system misconfigurations for more flexibility,
installability and expand of forward binary compatibility beyond the same Qt
4.x whenever possible.

Gbp-Pq: Name 23_permit_plugins_built_with_future_qt.diff
src/corelib/plugin/qlibrary.cpp