Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jun 2026 18:49:24 +0000
From:      Siva Mahadevan <siva@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Derek Schrock <dereks@lifeofadishwasher.com>
Subject:   git: 2e399208b97a - main - x11-wm/river: Fix glib Undefined symbol "environ"
Message-ID:  <6a207734.24240.7102a709@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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,


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a207734.24240.7102a709>