net-analyzer/cacti-spine: Fix building against dev-db/mysql-connector-c-8*
authorJeroen Roovers <jer@gentoo.org>
Thu, 22 Aug 2019 10:50:07 +0000 (12:50 +0200)
committerJeroen Roovers <jer@gentoo.org>
Thu, 22 Aug 2019 10:50:38 +0000 (12:50 +0200)
Fixes: https://bugs.gentoo.org/692656
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/cacti-spine/cacti-spine-1.2.5-r1.ebuild [moved from net-analyzer/cacti-spine/cacti-spine-1.2.5.ebuild with 95% similarity]
net-analyzer/cacti-spine/files/cacti-spine-1.2.5-my_bool.patch [new file with mode: 0644]

similarity index 95%
rename from net-analyzer/cacti-spine/cacti-spine-1.2.5.ebuild
rename to net-analyzer/cacti-spine/cacti-spine-1.2.5-r1.ebuild
index 9a49a50879269d0482f7ec43f3c82e886a9b612e..8da328d3acddb227110246ab1ab149c5c16442f8 100644 (file)
@@ -30,6 +30,7 @@ RDEPEND="
 PATCHES=(
        "${FILESDIR}"/${PN}-0.8.8d-ping.patch
        "${FILESDIR}"/${PN}-0.8.8g-net-snmp.patch
+       "${FILESDIR}"/${PN}-1.2.5-my_bool.patch
 )
 
 src_prepare() {
diff --git a/net-analyzer/cacti-spine/files/cacti-spine-1.2.5-my_bool.patch b/net-analyzer/cacti-spine/files/cacti-spine-1.2.5-my_bool.patch
new file mode 100644 (file)
index 0000000..d9554bf
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/sql.c
++++ b/sql.c
+@@ -229,7 +229,7 @@ void db_connect(int type, MYSQL *mysql) {
+       timeout = 5;
+       rtimeout = 10;
+       wtimeout = 20;
+-      my_bool reconnect = 1;
++      _Bool reconnect = 1;
+       mysql_init(mysql);