ports/textproc/redland/files/patch-src_rdf__storage__mysql.c
Joseph Mingrone 134cdd5485
textproc/redland: Do not depend on Berkeley DB by default
Due to licensing issues, Redland only supports BDB up to version 5.3, a
version that was marked for removal from the ports tree on 2022-06-30.
A few different databases are supported for persistent storage, so add
MYSQL, PGSQL, and SQLITE as alternatives, and switch to SQLITE by
default.

While here, also:
- Patch to fix a build failure when MYSQL storage is chosen
- Pet portclippy/portfmt
- Hook in tests (1 of 17 tests fail, but upstream's bug tracker is broken)

Approved by:	tcberner (kde)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D42769
2023-12-11 09:41:14 -04:00

11 lines
383 B
C

--- src/rdf_storage_mysql.c.orig 2023-11-25 15:00:04 UTC
+++ src/rdf_storage_mysql.c
@@ -447,7 +447,7 @@ librdf_storage_mysql_get_handle(librdf_storage* storag
#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