Bug 295804 - x11-wm/river: Fix glib Undefined symbol "environ"
Summary: x11-wm/river: Fix glib Undefined symbol "environ"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Siva Mahadevan
URL: https://codeberg.org/river/river/comm...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-03 01:40 UTC by Derek Schrock
Modified: 2026-06-03 18:50 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (siva)


Attachments
Fix glib Undefined symbol "environ" (1.76 KB, patch)
2026-06-03 01:40 UTC, Derek Schrock
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Schrock 2026-06-03 01:40:30 UTC
Created attachment 271435 [details]
Fix glib Undefined symbol "environ"

Cherry pick upstream 8a1afd94ca4 that fixes a runtime issue:

$ pkg info -x river
river-0.4.5
$ env WLR_BACKENDS=headless /usr/local/bin/river
ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ"

$ pkg info -x river
river-0.4.5_1
$ env WLR_BACKENDS=headless /usr/local/bin/river                                                                             
info: initializing river version 0.4.5 -xwayland                                                                                  
info(wlroots): [backend/backend.c:343] Loading user-specified backends due to WLR_BACKENDS: headless
...
Comment 1 commit-hook freebsd_committer freebsd_triage 2026-06-03 18:50:03 UTC
A commit in branch main references this bug:

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 (new) | 11 +++++++++++
 2 files changed, 12 insertions(+)
Comment 2 Siva Mahadevan freebsd_committer freebsd_triage 2026-06-03 18:50:42 UTC
Thanks! Closing as fixed.