Created attachment 265462 [details] v1 Without specifying rpath, efivar will use /usr/lib/libefivar.so.1 first and error out with: ld-elf.so.1: /usr/lib/libefivar.so.1: version LIBEFIVAR_0.24 required by /usr/local/bin/efivar not defined
Approved. Yeah that makes sense. I have seen the same issue with fwupd which uses efivar as dependency but probably failed to notice it for the efivar binary. Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=355f5aa906e3947a840924d8ad8374e0e1d0f7a1 commit 355f5aa906e3947a840924d8ad8374e0e1d0f7a1 Author: Li-Wen Hsu <lwhsu@FreeBSD.org> AuthorDate: 2025-11-19 04:59:13 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2025-11-19 04:59:13 +0000 devel/efivar: Fix rpath to load libefivar.so from the correct path PR: 291053 Approved by: decke (maintainer) Sponsored by: The FreeBSD Foundation devel/efivar/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)