git: bfef2faa5a7f - main - databases/sabiql: Fix opening E-R diagrams
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Mar 2026 14:07:17 UTC
The branch main has been updated by nivit:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bfef2faa5a7fe50018f7e2abf4674c82b19bd30a
commit bfef2faa5a7fe50018f7e2abf4674c82b19bd30a
Author: Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-03-01 14:05:46 +0000
Commit: Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-03-01 14:05:46 +0000
databases/sabiql: Fix opening E-R diagrams
- Add a patch to allow opening generated E-R diagrams via xdg-open
- Bump PORTREVISION
---
databases/sabiql/Makefile | 3 +++
databases/sabiql/files/patch-src_infra_export_dot.rs | 11 +++++++++++
2 files changed, 14 insertions(+)
diff --git a/databases/sabiql/Makefile b/databases/sabiql/Makefile
index b258f13e53a7..37d16227eaf1 100644
--- a/databases/sabiql/Makefile
+++ b/databases/sabiql/Makefile
@@ -1,6 +1,7 @@
PORTNAME= sabiql
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.3
+PORTREVISION= 1
CATEGORIES= databases
MAINTAINER= nivit@FreeBSD.org
@@ -17,6 +18,8 @@ LICENSE_TEXT_UNICODE= See https://www.unicode.org/copyright.html
LICENSE_PERMS_CDLA20= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_UNICODE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+RUN_DEPENDS= xdg-open:devel/xdg-utils
+
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= riii111
diff --git a/databases/sabiql/files/patch-src_infra_export_dot.rs b/databases/sabiql/files/patch-src_infra_export_dot.rs
new file mode 100644
index 000000000000..7eea3a70a0b0
--- /dev/null
+++ b/databases/sabiql/files/patch-src_infra_export_dot.rs
@@ -0,0 +1,11 @@
+--- src/infra/export/dot.rs.orig 2026-02-25 15:32:51 UTC
++++ src/infra/export/dot.rs
+@@ -62,7 +62,7 @@ impl ViewerLauncher for SystemViewerLauncher {
+ .spawn()
+ .map_err(ViewerError::LaunchFailed)?;
+ }
+- #[cfg(target_os = "linux")]
++ #[cfg(any(target_os = "freebsd", target_os = "linux"))]
+ {
+ Command::new("xdg-open")
+ .arg(path)