Bug 284626 - sysutils/swtpm: Fix incorrect rcorder requirement
Summary: sysutils/swtpm: Fix incorrect rcorder requirement
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: Goran Mekić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-07 01:09 UTC by Jung-uk Kim
Modified: 2025-02-07 23:46 UTC (History)
1 user (show)

See Also:
meka: maintainer-feedback+


Attachments
Add a proper REQUIRE line in the rc script (620 bytes, patch)
2025-02-07 01:09 UTC, Jung-uk Kim
meka: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jung-uk Kim freebsd_committer freebsd_triage 2025-02-07 01:09:02 UTC
Created attachment 257306 [details]
Add a proper REQUIRE line in the rc script

If we add 'swtpm_enable="YES"' in /etc/rc.conf*, it fails to start with this error:

Starting SWTPM config tpm ...ld-elf.so.1: Shared object "libfuse.so.2" not found, required by "swtpm"

This is because /usr/local/etc/rc.d/swtpm does not have proper "REQUIRE" line.
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-02-07 23:45:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9177e2323609c643911ad16c482dc5791797e790

commit 9177e2323609c643911ad16c482dc5791797e790
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2025-02-07 23:39:50 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2025-02-07 23:39:50 +0000

    sysutils/swtpm: Fix incorrect rcorder requirement

    If we add 'swtpm_enable="YES"' in /etc/rc.conf*, it fails to start with this error:

    Starting SWTPM config tpm ...ld-elf.so.1: Shared object "libfuse.so.2" not found, required by "swtpm"

    Add a proper "REQUIRE" line in the rc script to fix it.

    PR:             284626
    Approved by:    meka@tilda.center (maintainer)

 sysutils/swtpm/Makefile       | 2 +-
 sysutils/swtpm/files/swtpm.in | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)