git: 2e399208b97a - main - x11-wm/river: Fix glib Undefined symbol "environ"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Jun 2026 18:49:24 UTC
The branch main has been updated by siva:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2e399208b97a58ead1faa2ccf456fea40844c450
commit 2e399208b97a58ead1faa2ccf456fea40844c450
Author: Derek Schrock <dereks@lifeofadishwasher.com>
AuthorDate: 2026-06-03 18:44:00 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-06-03 18:48:07 +0000
x11-wm/river: Fix glib Undefined symbol "environ"
Cherry pick upstream 8a1afd94ca4 that fixes a runtime issue:
$ /usr/local/bin/river
ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ"
PR: 295804
Approved by: lwhsu (mentor, implicitly)
---
x11-wm/river/Makefile | 1 +
x11-wm/river/files/patch-build.zig | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/x11-wm/river/Makefile b/x11-wm/river/Makefile
index 4c30e0e2043b..eadc16e2a3b9 100644
--- a/x11-wm/river/Makefile
+++ b/x11-wm/river/Makefile
@@ -1,5 +1,6 @@
PORTNAME= river
DISTVERSION= 0.4.5
+PORTREVISION= 1
CATEGORIES= x11-wm wayland
MASTER_SITES= https://codeberg.org/river/river/releases/download/v${DISTVERSION}/
DISTFILES= river-${DISTVERSIONFULL}${EXTRACT_SUFX}
diff --git a/x11-wm/river/files/patch-build.zig b/x11-wm/river/files/patch-build.zig
new file mode 100644
index 000000000000..3ccec7ba5861
--- /dev/null
+++ b/x11-wm/river/files/patch-build.zig
@@ -0,0 +1,11 @@
+--- build.zig.orig 2026-04-25 12:20:33 UTC
++++ build.zig
+@@ -19,7 +19,7 @@ pub fn build(b: *Build) !void {
+
+ const strip = b.option(bool, "strip", "Omit debug information") orelse false;
+ const pie = b.option(bool, "pie", "Build a Position Independent Executable") orelse false;
+- const use_llvm = b.option(bool, "llvm", "Force use of Zig's LLVM backend and the lld linker") orelse false;
++ const use_llvm = b.option(bool, "llvm", "Force use of Zig's LLVM backend and the lld linker");
+
+ const omit_frame_pointer = switch (optimize) {
+ .Debug, .ReleaseSafe => false,