git: f2a3c0ce36d1 - main - databases/datui: Link against system SQLite and lzma
Date: Sun, 18 Oct 2026 09:56:59 UTC
The branch main has been updated by olgeni:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f2a3c0ce36d1549386224eed0cf4bcee8f961544
commit f2a3c0ce36d1549386224eed0cf4bcee8f961544
Author: Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2026-10-08 14:12:05 +0000
Commit: Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2026-10-18 09:56:41 +0000
databases/datui: Link against system SQLite and lzma
Upstream asks rusqlite for the `bundled` feature and xz2 for `static`,
which compile SQLite and liblzma into the binary so that a release
build needs no system library. Drop both and link against
databases/sqlite3 and the liblzma in base instead.
lz4 stays bundled: lz4-sys has no pkg-config path and no override, so
it always builds its own copy.
---
databases/datui/Makefile | 3 ++-
.../datui/files/patch-crates_datui-lib_Cargo.toml | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/databases/datui/Makefile b/databases/datui/Makefile
index c3348e53646b..204ef46f5211 100644
--- a/databases/datui/Makefile
+++ b/databases/datui/Makefile
@@ -10,7 +10,8 @@ WWW= https://derekwisong.github.io/datui
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-LIB_DEPENDS= libzstd.so:archivers/zstd
+LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
+ libzstd.so:archivers/zstd
USES= cargo pkgconfig
diff --git a/databases/datui/files/patch-crates_datui-lib_Cargo.toml b/databases/datui/files/patch-crates_datui-lib_Cargo.toml
new file mode 100644
index 000000000000..7e350d05dd2d
--- /dev/null
+++ b/databases/datui/files/patch-crates_datui-lib_Cargo.toml
@@ -0,0 +1,20 @@
+--- crates/datui-lib/Cargo.toml.orig 2026-10-08 03:40:31 UTC
++++ crates/datui-lib/Cargo.toml
+@@ -47,7 +47,7 @@
+ bzip2 = "0.6"
+ # static: liblzma compiled in, so a release binary needs no liblzma.so.5 on the
+ # host; bzip2, flate2 and zstd already build their C code in.
+-xz2 = { version = "0.1", features = ["static"] }
++xz2 = "0.1"
+ flate2 = "1.0"
+ zstd = "0.14"
+ # Chart export: the chart is drawn once as SVG and read with the bundled font
+@@ -97,7 +97,7 @@
+ # SQLite databases, read only. `bundled` compiles SQLite into the binary, so no
+ # platform needs a system library; `hooks` lets a stopped open interrupt a statement.
+ # Default features off, which leaves extension loading out.
+-rusqlite = { version = "0.40", optional = true, default-features = false, features = ["bundled", "hooks"] }
++rusqlite = { version = "0.40", optional = true, default-features = false, features = ["hooks"] }
+ # NumPy archives (.npz) are zip files. Already in the tree through calamine, with
+ # the same features.
+ zip = { version = "8.6", default-features = false, features = ["deflate"] }