Summary: | gnome-extra/libgda-5.2.8-r1 USE="mysql" fails with dev-db/mysql-connector-c-8.0.17-r1: gda-mysql-provider.c:1838:2: error: unknown type name ‘my_bool’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Attila Tóth <atoth> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fkrogh, kripton, leonchik1976, mysql-bugs, o.freyermuth, phobosk |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gitlab.gnome.org/GNOME/libgda/-/issues/199 | ||
See Also: |
https://github.com/gentoo/gentoo/pull/15398 https://github.com/gentoo/gentoo/pull/22367 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 692570 | ||
Attachments: |
libgda-5.2.8-my_bool-error.diff
build.log.xz |
Description
Attila Tóth
2019-08-21 12:07:19 UTC
This bug is related to the recent mysql-8 & mysql-connector-c-8 version bump. Candidate for tracker: https://bugs.gentoo.org/692570 Created attachment 587742 [details, diff]
libgda-5.2.8-my_bool-error.diff
Proposed patch to make it compile with the recent version of mysql-connector-c.
Patch works for me. Same issue here still after six months (for the stable version of gnome-extra/libgda!), and the patch solves this - thanks! I added an ebuild for libgda-5.2.8-r2 using the patch to my private Gentoo repository: https://cgit.gentoo.org/user/AstroFloyd.git/tree/gnome-extra/libgda - should this or something similar be in Portage for a simpler workaround (unmasking rather than patching manually)? I had the same issue. The patch fixed it for me as well. Thank you! Same here. Patch maybe fixed it - I simply added line typedef bool my_bool; to providers/mysql/gda-mysql.h, as I noticed mysql uses 'bool' too. (In reply to Kelly Black from comment #5) > I had the same issue. The patch fixed it for me as well. Thank you! how do you use the patch please? (In reply to Eric from comment #7) > (In reply to Kelly Black from comment #5) > > I had the same issue. The patch fixed it for me as well. Thank you! > > how do you use the patch please? 1. Create directory: /etc/portage/patches/gnome-extra/libgda-5.2.8 2. Copy/save the patch in that directory 3. Re-emerge libgda Note, that if a solution gets into portage, you may need to delete or disable the patch by renaming it to make the package compile. Same problem with gnome-extra/libgda-5.2.9 The patch works there also (actually it is a generic one for all 5.2.X versions)... Shame it is still not implemented in portage for both versions After applying the patch, i still can't compile it Created attachment 687615 [details]
build.log.xz
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a2c12ba5c70d6887856c59e6c1b4e2633f9a441 commit 1a2c12ba5c70d6887856c59e6c1b4e2633f9a441 Author: shimataro <shimataro@zelkova.cc> AuthorDate: 2021-09-22 21:19:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-09-25 02:45:57 +0000 gnome-extra/libgda: fix build with newer MySQL Thanks-to: Attila Tóth <atoth@atoth.sote.hu> Closes: https://bugs.gentoo.org/692672 Signed-off-by: shimataro <shimataro@zelkova.cc> Closes: https://github.com/gentoo/gentoo/pull/22367 Signed-off-by: Sam James <sam@gentoo.org> .../libgda/files/libgda-5.2-my_bool-error.patch | 136 +++++++++++++++++++++ gnome-extra/libgda/libgda-5.2.9.ebuild | 3 + 2 files changed, 139 insertions(+) |