Bug 986939 - qt4 sql drivers cannot load after update
Summary: qt4 sql drivers cannot load after update
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Upgrade Problems (show other bugs)
Version: Current
Hardware: x86-64 SUSE Other
: P2 - High : Major (vote)
Target Milestone: Current
Assignee: Dirk Mueller
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords: easy_fix
Depends on:
Blocks:
 
Reported: 2016-06-29 09:24 UTC by Forgotten User G_u_ToryjC
Modified: 2016-08-06 18:17 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Error log (1.43 KB, text/plain)
2016-06-29 09:24 UTC, Forgotten User G_u_ToryjC
Details
Corrected spec file (67.75 KB, text/plain)
2016-07-27 08:49 UTC, Forgotten User G_u_ToryjC
Details
GCC 6 detection patch from libqt4 source package (261 bytes, patch)
2016-07-27 08:56 UTC, Forgotten User G_u_ToryjC
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User G_u_ToryjC 2016-06-29 09:24:26 UTC
Created attachment 682475 [details]
Error log

The following Qt4 SQL drivers cannot load after qt4 update because of incompatible build keys:
libqsqlmysql.so
libqsqlodbc.so
libqsqlpsql.so
Comment 1 Forgotten User G_u_ToryjC 2016-07-15 13:49:29 UTC
To fix: 
The following packages should be rebuild using and the same build settings (compiler), which was used to build the libqt4 package:
libqt4-sql-mysql
libqt4-sql-odbc
libqt4-sql-postgresql
Comment 2 Forgotten User G_u_ToryjC 2016-07-27 08:49:23 UTC
Created attachment 685705 [details]
Corrected spec file

Changed Release to 4.2
Added fix-gcc6-detection from libqt4.spec
Comment 3 Forgotten User G_u_ToryjC 2016-07-27 08:56:53 UTC
Created attachment 685706 [details]
GCC 6 detection patch from libqt4 source package
Comment 4 Forgotten User G_u_ToryjC 2016-07-27 09:02:09 UTC
The problem can be fixed by rebuilding the libqt4-sql-plugins package using the spec file in the "Corrected spec file" attachment. "GCC 6 detection patch from libqt4 source package" should be added to the sources of libqt4-sql-plugins 
I changed the release number of libqt4-sql-plugins to 4.2.
Maybe the release number of libqt4 should be also changed to 4.2 to match with liqt4-sql-plugins release number
Comment 5 Wolfgang Bauer 2016-07-27 13:05:02 UTC
Thanks for the investigation and the patch.
We did add this patch over a month ago already though.

The problem was that it is only applied to the main libqt4 package, not libqt4-mysql-plugins in Factory.
This was fixed in the devel repo (KDE:Qt) a month ago too, but for some reason this has never been forwarded to Factory/Tumbleweed.

I did that now:
https://build.opensuse.org/request/show/415406

As a workaround, you can install libmysql-plgins-mysql from KDE:Qt for now, the packages there are fine.

And btw, the release number in the spec file is irrelevant, this gets set automatically by OBS... ;-)
Comment 6 Wolfgang Bauer 2016-08-06 18:17:55 UTC
The update is included in the latest snapshot, so this problem should be fixed now.