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:
David Seifert
2020-02-20 16:53:18 +01:00
parent ca92929fd4
commit 4ab8c1f0f1
2 changed files with 17 additions and 0 deletions

View 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 */

View File

@@ -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() {