mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/redland: Fix building against mysql 8
Closes: https://bugs.gentoo.org/692462 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Acked-by: Andreas K. Hüttel <dilfridge@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
15
dev-libs/redland/files/redland-1.0.17-mysql-8-my_bool.patch
Normal file
15
dev-libs/redland/files/redland-1.0.17-mysql-8-my_bool.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
--- a/src/rdf_storage_mysql.c
|
||||
+++ b/src/rdf_storage_mysql.c
|
||||
@@ -445,11 +445,11 @@
|
||||
/* Initialize closed MySQL connection handle */
|
||||
connection->handle=mysql_init(connection->handle);
|
||||
|
||||
#ifdef HAVE_MYSQL_OPT_RECONNECT
|
||||
if(1) {
|
||||
- my_bool value=(context->reconnect) ? 1 : 0;
|
||||
+ bool value=(context->reconnect) ? 1 : 0;
|
||||
mysql_options(connection->handle, MYSQL_OPT_RECONNECT, &value);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Create connection to database for handle */
|
||||
@@ -25,6 +25,8 @@ RDEPEND="dev-libs/libltdl:0
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.0.17-mysql-8-my_bool.patch )
|
||||
|
||||
MAKEOPTS="${MAKEOPTS} -j1" #500574, required for both src_compile() and src_install()
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user