diff options
author | Jouni Kosonen <jouni.kosonen@tukesoft.com> | 2020-02-02 07:48:52 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-02-14 17:01:41 +0100 |
commit | a1391e36805f38ef6a18fd2077095ad3f6c63261 (patch) | |
tree | 93edb5423d11668d19d4ded108c6642dd498f8a2 /net-dns | |
parent | dev-python/mysql-connector-python: bump to v8.0.19 (diff) | |
download | gentoo-a1391e36805f38ef6a18fd2077095ad3f6c63261.tar.gz gentoo-a1391e36805f38ef6a18fd2077095ad3f6c63261.tar.bz2 gentoo-a1391e36805f38ef6a18fd2077095ad3f6c63261.zip |
net-dns/bind: fix building against >=dev-db/mysql-connector-c-8.x
Closes: https://bugs.gentoo.org/692834
Signed-off-by: Jouni Kosonen <jouni.kosonen@tukesoft.com>
Closes: https://github.com/gentoo/gentoo/pull/14529
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/bind/bind-9.14.8.ebuild | 4 | ||||
-rw-r--r-- | net-dns/bind/bind-9.14.9.ebuild | 4 | ||||
-rw-r--r-- | net-dns/bind/bind-9.15.6.ebuild | 4 | ||||
-rw-r--r-- | net-dns/bind/files/bind-9.14.8-mysql8-bool.patch | 15 |
4 files changed, 27 insertions, 0 deletions
diff --git a/net-dns/bind/bind-9.14.8.ebuild b/net-dns/bind/bind-9.14.8.ebuild index 18d9dbd9cc7b..71849d180edf 100644 --- a/net-dns/bind/bind-9.14.8.ebuild +++ b/net-dns/bind/bind-9.14.8.ebuild @@ -85,6 +85,10 @@ S="${WORKDIR}/${MY_P}" # bug 479092, requires networking RESTRICT="test" +PATCHES=( + "${FILESDIR}"/bind-9.14.8-mysql8-bool.patch +) + pkg_setup() { ebegin "Creating named group and user" enewgroup named 40 diff --git a/net-dns/bind/bind-9.14.9.ebuild b/net-dns/bind/bind-9.14.9.ebuild index 817b8fb0b91e..1a057167b9ee 100644 --- a/net-dns/bind/bind-9.14.9.ebuild +++ b/net-dns/bind/bind-9.14.9.ebuild @@ -85,6 +85,10 @@ S="${WORKDIR}/${MY_P}" # bug 479092, requires networking RESTRICT="test" +PATCHES=( + "${FILESDIR}"/bind-9.14.8-mysql8-bool.patch +) + pkg_setup() { ebegin "Creating named group and user" enewgroup named 40 diff --git a/net-dns/bind/bind-9.15.6.ebuild b/net-dns/bind/bind-9.15.6.ebuild index b23f8ad912af..1bbaa64bb031 100644 --- a/net-dns/bind/bind-9.15.6.ebuild +++ b/net-dns/bind/bind-9.15.6.ebuild @@ -83,6 +83,10 @@ S="${WORKDIR}/${MY_P}" # bug 479092, requires networking RESTRICT="test" +PATCHES=( + "${FILESDIR}"/bind-9.14.8-mysql8-bool.patch +) + pkg_setup() { ebegin "Creating named group and user" enewgroup named 40 diff --git a/net-dns/bind/files/bind-9.14.8-mysql8-bool.patch b/net-dns/bind/files/bind-9.14.8-mysql8-bool.patch new file mode 100644 index 000000000000..8546edc1521d --- /dev/null +++ b/net-dns/bind/files/bind-9.14.8-mysql8-bool.patch @@ -0,0 +1,15 @@ +--- a/contrib/dlz/drivers/dlz_mysql_driver.c ++++ b/contrib/dlz/drivers/dlz_mysql_driver.c +@@ -789,8 +789,11 @@ mysql_create(const char *dlzname, unsigned int argc, char *argv[], + char *endp; + int j; + unsigned int flags = 0; ++#if MYSQL_VERSION_ID >= 80000 ++ typedef bool my_bool; // Workaround to make library work with MySQL client 8.0 as well as earlier versions ++#endif + #if MYSQL_VERSION_ID >= 50000 +- my_bool auto_reconnect = 1; ++ my_bool auto_reconnect = 1; + #endif + + UNUSED(driverarg); |