diff options
author | David Seifert <soap@gentoo.org> | 2020-02-20 16:53:18 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-02-20 16:53:18 +0100 |
commit | 4ab8c1f0f18b08e0d9a3cdcf99b08bf962a1a81f (patch) | |
tree | cb0c4a75910084ba8f3ed10665a8f50a92fa65c4 /dev-libs/redland | |
parent | media-libs/alsa-lib: Removed old (diff) | |
download | gentoo-4ab8c1f0f18b08e0d9a3cdcf99b08bf962a1a81f.tar.gz gentoo-4ab8c1f0f18b08e0d9a3cdcf99b08bf962a1a81f.tar.bz2 gentoo-4ab8c1f0f18b08e0d9a3cdcf99b08bf962a1a81f.zip |
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>
Diffstat (limited to 'dev-libs/redland')
-rw-r--r-- | dev-libs/redland/files/redland-1.0.17-mysql-8-my_bool.patch | 15 | ||||
-rw-r--r-- | dev-libs/redland/redland-1.0.17-r2.ebuild | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-libs/redland/files/redland-1.0.17-mysql-8-my_bool.patch b/dev-libs/redland/files/redland-1.0.17-mysql-8-my_bool.patch new file mode 100644 index 000000000000..a59c456e84ff --- /dev/null +++ b/dev-libs/redland/files/redland-1.0.17-mysql-8-my_bool.patch @@ -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 */ diff --git a/dev-libs/redland/redland-1.0.17-r2.ebuild b/dev-libs/redland/redland-1.0.17-r2.ebuild index b106ff79dde9..78f47b1290f9 100644 --- a/dev-libs/redland/redland-1.0.17-r2.ebuild +++ b/dev-libs/redland/redland-1.0.17-r2.ebuild @@ -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() { |