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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Dec 2024 00:46:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282716

--- Comment #13 from Herbert J. Skuhra <herbert@gojira.at> ---
My bad. Too many open terminals and I was building in the wrong directory.

gurk-rs also needs sqlite3_unlock_notify (-DSQLITE_ENABLE_UNLOCK_NOTIFY) so I
had to rebuild database/sqlcipher with the following patch instead:

diff --git a/databases/sqlcipher/Makefile b/databases/sqlcipher/Makefile
index d83f369394dd..1f7a46105c83 100644
--- a/databases/sqlcipher/Makefile
+++ b/databases/sqlcipher/Makefile
@@ -17,7 +17,8 @@ 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 \
+               -DSQLITE_ENABLE_UNLOCK_NOTIFY
 LDFLAGS+=      -L${LOCALBASE}/lib -L${OPENSSLLIB}
 CFLAGS+=       -I${LOCALBASE}/include -I${OPENSSLINC}


I think to unbundle openssl the follow change in Cargo.toml is sufficient:

 libsqlite3-sys = { version = "0.30.1", features = [
-    "bundled-sqlcipher-vendored-openssl",
+    "sqlcipher",
 ] }

(and I also removed openssl-(src|sys) from Cargo.lock.)
But I am still not sure if sqlcipher is actually working. More testing.

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