Pages
  • life with BSD
  • 2026-08-17 Test driving the FreeBSD fixed niri wm
  • 2026-08-01 Using the niri wm on FreeBSD in 2026
  • 2026-07-23 The I'll get to it later problem... for FreeBSD
  • 2026-07-13 On the closing of open searchable sites around OSS projects
  • 2026-06-09 Implementation monocultures
  • 2026-05-28 Using the units command to convert celsius to fahrenheit on FreeBSD
  • 2026-05-11 Trying out spinel on FreeBSD and fixed the blog feeds
  • 2026-04-27 Getting more information on a FreeBSD pkg without installing it
  • 2026-04-19 Feeling sherlocked - XDG's new Projects folder
  • 2026-04-07 The Laptop Integration Testing project
  • 2026-01-02 Migrating from bastille auto-starting jails from deprecated bastille_list
  • 2025-12-23 Understanding more about the pkg-status service for FreeBSD
  • 2025-12-07 Trying out flow control binaries for FreeBSD
  • 2025-11-07 Swift nightly preview for FreeBSD
  • 2025-11-02 Using jujutsu in a git compatible way to track freebsd ports
  • 2025-10-28 The sherlocking of the gemini protocol
  • 2025-10-09 How to change the options in a freebsd port
  • 2025-09-16 Waiting on Swift mainline for FreeBSD
  • 2025-08-25 Dmesg for Cable Matters USB 3.1 to 4 port Gigabit Ethernet Adapter
  • 2025-08-15 Generate a QR code with typst
  • 2025-07-31 Fixing jujutsu and leaky ascii escape sequences on FreeBSD
  • 2025-07-31 Swift now available as a package for FreeBSD
  • 2025-07-28 The FreeBSD project clarifies its stance on gen-ai powered contributions
  • 2025-07-28 The rustup question
  • 2025-07-08 Goodbye old friend, a tale
  • 2025-06-30 Configuring FreeBSD to network with a postmarketos phone over usb
  • 2025-06-25 swift (re)lands in the FreeBSD ports tree
  • 2025-06-24 typst a rust powered typesetting tool aiming at latex
  • 2025-06-19 Open Source Two Worlds thoughts
  • 2025-06-14 Taking a look at repolocli
  • 2025-06-09 Zig master builds now with FreeBSD support
  • 2025-06-07 Finding rust dependencies in Makefile.crates
  • 2025-06-05 Ripgrep or ripgrep-all
  • 2025-06-02 Ripgrep a nice Rust utility for ports spelunking
  • 2025-05-31 Get started with gpui on FreeBSD
  • 2025-05-29 Query freshports with Deno
  • 2025-05-27 Trying out Defuddle an npm tool via Deno
  • 2025-05-25 Deno for FreeBSD
  • 2025-05-23 A new beginning
life with BSD
  • life with BSD
  • 2026-08-17 Test driving the FreeBSD fixed niri wm
  • 2026-08-01 Using the niri wm on FreeBSD in 2026
  • 2026-07-23 The I'll get to it later problem... for FreeBSD
  • 2026-07-13 On the closing of open searchable sites around OSS projects
  • 2026-06-09 Implementation monocultures
  • 2026-05-28 Using the units command to convert celsius to fahrenheit on FreeBSD
  • 2026-05-11 Trying out spinel on FreeBSD and fixed the blog feeds
  • 2026-04-27 Getting more information on a FreeBSD pkg without installing it
  • 2026-04-19 Feeling sherlocked - XDG's new Projects folder
  • 2026-04-07 The Laptop Integration Testing project
  • 2026-01-02 Migrating from bastille auto-starting jails from deprecated bastille_list
  • 2025-12-23 Understanding more about the pkg-status service for FreeBSD
  • 2025-12-07 Trying out flow control binaries for FreeBSD
  • 2025-11-07 Swift nightly preview for FreeBSD
  • 2025-11-02 Using jujutsu in a git compatible way to track freebsd ports
  • 2025-10-28 The sherlocking of the gemini protocol
  • 2025-10-09 How to change the options in a freebsd port
  • 2025-09-16 Waiting on Swift mainline for FreeBSD
  • 2025-08-25 Dmesg for Cable Matters USB 3.1 to 4 port Gigabit Ethernet Adapter
  • 2025-08-15 Generate a QR code with typst
  • 2025-07-31 Fixing jujutsu and leaky ascii escape sequences on FreeBSD
  • 2025-07-31 Swift now available as a package for FreeBSD
  • 2025-07-28 The FreeBSD project clarifies its stance on gen-ai powered contributions
  • 2025-07-28 The rustup question
  • 2025-07-08 Goodbye old friend, a tale
  • 2025-06-30 Configuring FreeBSD to network with a postmarketos phone over usb
  • 2025-06-25 swift (re)lands in the FreeBSD ports tree
  • 2025-06-24 typst a rust powered typesetting tool aiming at latex
  • 2025-06-19 Open Source Two Worlds thoughts
  • 2025-06-14 Taking a look at repolocli
  • 2025-06-09 Zig master builds now with FreeBSD support
  • 2025-06-07 Finding rust dependencies in Makefile.crates
  • 2025-06-05 Ripgrep or ripgrep-all
  • 2025-06-02 Ripgrep a nice Rust utility for ports spelunking
  • 2025-05-31 Get started with gpui on FreeBSD
  • 2025-05-29 Query freshports with Deno
  • 2025-05-27 Trying out Defuddle an npm tool via Deno
  • 2025-05-25 Deno for FreeBSD
  • 2025-05-23 A new beginning

2026-08-17 Test driving the FreeBSD fixed niri wm

I had mentioned earlier about a possible set of fixes for FreeBSD and got some time to sit down and test drive the repo. I tested this on a 15.0 FreeBSD (will test again also after getting to 15.1) that was available. The available documentation inside of the freebsd/ folder was a nice touch. However, it seems that the author of the patches made an effort to use as much available in upstream as possible but unfortunately I ran into problems...

One of the first issues is inside of the apply.sh script that was made available. The troublesome lines involve the logic around applying the patches that were also included. It seems that the author must have installed GNU patch at some point and assumed that a typical FreeBSD user would also have it installed. While I will keep it short, in general assuming GNU cli utilities is usually a sign of inexperience at working with non-Linux environments which in this day and age is actually probably more common than expecting the multi-UNIX distro (as in Solaris, HP/UX, BSD, and Linux) fluency that is more of a sign of being an old fogey in 2026.

I have lost count of the number of times I crawl through bash-isms in something claiming to be /bin/sh then on top of which the bash script decides to use a particular ls command line option that only exists on some mumble mumble version of G** utilities. I guess I have gotten numb to this unawareness.

After fixing the patch, it looks like I then ran into having to double check the patching of the rust crates which did finally apply. Then realizing the nice little start script has nvidia hard-coded which doesn't fare well on something like a Framework AMD board so applied a little Go-based approach (a little copy here or there...) to 'fixing' it finally got it to run.

Based on all the changes made in the repo on top of my own little tweaks, I can only hope these get merged into upstream but it looks like to apply the fix requires updating a small handful of library crates, possible tweaks to FreeBSD itself, along with the niri wm too feels like quite a bit to ask for what I originally (mistakenly) assumed was a small patch to just the wm itself.

I have published my changes here if people just want to pull down those changes. My hope is the author of repo has some time to try to see if changes can be made upstream as this would simplify the patches the port itself must hold onto (a sign of a clean FreeBSD port is the lack of patches not the existence of) but at least kicking the tires on the repo shows it can work for non-nvidia cards (with some effort).

PREVRANDOMNEXT