Created attachment 592010 [details, diff] Patch to qtsql QSqlTableModel tries to select pg_attrdef.adsrc: https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/sqldrivers/psql/qsql_psql.cpp?id=3a1613c2276a30ccf101e7349d89611cf5d86e6a#n1444 but it was removed in PostgreSQL 12.0: https://www.postgresql.org/docs/12/release-12.html Patch attached DCO_SIGNED_OFF_BY="Chris Mayo <aklhfex@gmail.com>" Submitted by me on upstream bug: https://bugreports.qt.io/browse/QTBUG-79033
*** Bug 698034 has been marked as a duplicate of this bug. ***
Created attachment 593336 [details, diff] qtsql-5.12.5-postgresql-12.patch untested crap for brave souls
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=5e2f02e82905794314667eb0fcd657af2abd0a47 commit 5e2f02e82905794314667eb0fcd657af2abd0a47 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-10-19 21:41:55 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-19 21:41:55 +0000 dev-qt/qtsql: Fix build against PostgreSQL 12.0 Clean backport from qtsql 5.14 branch. Bug: https://bugs.gentoo.org/696870 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../qtsql/files/qtsql-5.13.1-postgresql-12.patch | 97 ++++++++++++++++++++++ dev-qt/qtsql/qtsql-5.13.1.ebuild | 5 ++ dev-qt/qtsql/qtsql-5.13.9999.ebuild | 5 ++ 3 files changed, 107 insertions(+)
Hi, I tested the second patch by asturm against qtsql-5.12.5-r1::gentoo with postgresql-12.0::gentoo and the akonadi bug is now gone (was: second start with akonadi fails if akonadi uses pg backend and =postgres-5.12.0). Huge thanks to both of you!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6519752b4d6e8609db3a09a2a3da94d329d443e2 commit 6519752b4d6e8609db3a09a2a3da94d329d443e2 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-10-19 21:12:07 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-26 10:52:19 +0000 dev-qt/qtsql: Fix build against PostgreSQL 12.0 Backport from qtsql 5.14 branch. Tested-by: Nils Freydank <holgersson@posteo.de> Bug: https://bugs.gentoo.org/696870 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../qtsql/files/qtsql-5.12.5-postgresql-12.patch | 97 ++++++++++++++++++++++ dev-qt/qtsql/qtsql-5.12.5-r2.ebuild | 62 ++++++++++++++ 2 files changed, 159 insertions(+)