På søndag 5. juli 2026 kl. 10:32, skrev Volker Schlecht <[email protected]>:
> In our two zig ports (www/superhtml and wayland/river) we missed a crucial > detail about zig default settings: > > https://zig.guide/build-system/cross-compilation/ > "[...] As Zig compiles for your specific CPU by default, these binaries may > not > run on other computers with slightly different CPU architectures. It may be > useful to instead specify a specific baseline CPU model for greater > compatibility. [...]" > > That means that at least on my system, the packaged binary for wayland/river > won't run. For www/superhtml, setting a more generic -Dcpu fixed the problem - > so I propose to apply it to wayland/river as well. > > While here, I'm making another attempt at proposing --verbose and disabling > --color, to make the build output more palatable. Also the build should > consider > ${MAKE_JOBS}. > > Tested on amd64 and arm64. ok? > Tested on current/amd64 on privsep. $ cd /usr/ports/wayland/river/ && patch -l -E < /tmp/river-4.5.0p0.diff $ cd /usr/ports/wayland/river/ && make patch build update-plist package test ; make port-lib-depends-check check-shlib-syms ===> Regression tests for river-0.4.5p0 make: cannot open Makefile. *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3114 '/usr/ports/pobj/river-0.4.5/.test_done': @cd /usr/ports/pobj/river-0.4.5/ri...) *** Error 2 in /usr/ports/wayland/river (/usr/ports/infrastructure/mk/bsd.port.mk:2722 'test': @lock=river-0.4.5p0; export _LOCKS_HELD=" ri...) river-0.4.5p0(wayland/river): Missing: pthread.28 (/usr/local/bin/river) (system lib) WANTLIB += pthread *** Error 1 in target 'port-lib-depends-check' (ignored) -- // Not sure on the WANTLIB, test skipped, other check no problem # TRUSTED_PKG_PATH=/usr/ports/packages/amd64/all pkg_add -Dsnap -u river river-0.4.5->0.4.5p0: ok -- No problems that I can see. Hope this helps. May you all have a cool one and success in your endeavours. -- yaydn
