Bug 291053 - devel/efivar: Fix rpath to load libefivar.so from the correct path
Summary: devel/efivar: Fix rpath to load libefivar.so from the correct path
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: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-17 03:59 UTC by Li-Wen Hsu
Modified: 2025-11-19 05:00 UTC (History)
0 users

See Also:
decke: maintainer-feedback+


Attachments
v1 (900 bytes, patch)
2025-11-17 03:59 UTC, Li-Wen Hsu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Li-Wen Hsu freebsd_committer freebsd_triage 2025-11-17 03:59:41 UTC
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
Comment 1 Bernhard Froehlich freebsd_committer freebsd_triage 2025-11-18 12:15:49 UTC
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!
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-11-19 05:00:15 UTC
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(-)