[Bug 282716] net-im/gurk-rs: Update to 0.5.2

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Dec 2024 17:57:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282716

--- Comment #11 from Herbert J. Skuhra <herbert@gojira.at> ---
gurk-rs 0.6.0 is out and I've decided to try again.

Building gurk-rs with databases/sqlcipher on FreeBSD fails because the port
(sqlcipher) is built without "-DSQLITE_ENABLE_COLUMN_METADATA=1" resulting in
missing symbols (e.g.: sqlite3_column_table_name).

With the below patch I can build gurk-rs:

diff --git a/databases/sqlcipher/Makefile b/databases/sqlcipher/Makefile
index d83f369394dd..73ec34cf22f8 100644
--- a/databases/sqlcipher/Makefile
+++ b/databases/sqlcipher/Makefile
@@ -17,7 +17,7 @@ USE_GITHUB=   yes

 GNU_CONFIGURE= yes
 CONFIGURE_ARGS+=--enable-tempstore=yes --disable-tcl --disable-readline
-CPPFLAGS+=     -DSQLITE_HAS_CODEC
+CPPFLAGS+=     -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA=1
 LDFLAGS+=      -L${LOCALBASE}/lib -L${OPENSSLLIB}
 CFLAGS+=       -I${LOCALBASE}/include -I${OPENSSLINC}

(Maybe more changes to databases/sqlcipher are useful - see e.g.
https://gitlab.archlinux.org/archlinux/packaging/packages/sqlcipher/-/blob/main/PKGBUILD?ref_type=heads)

I'll update the patch of this PR soon.

-- 
You are receiving this mail because:
You are the assignee for the bug.