Bug 296543 - sysutils/uhidd: installation does not expand %%LIBCUSE%% in sample config file
Summary: sysutils/uhidd: installation does not expand %%LIBCUSE%% in sample config file
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-05 18:19 UTC by Alan Somers
Modified: 2026-07-06 10:11 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2026-07-05 18:19:45 UTC
My copy of /usr/local/etc/devd/uhidd-devd.conf.sample contains the literal string "%%LIBCUSE%%".  That obviously can't work.  It looks like the installation process failed to substitute a string somewhere

FreeBSD 15.1 amd64

/usr/local/etc/devd/uhidd-devd.conf.sample:

notify 0 {
        match "subsystem" "DEVICE";
        match "type" "ATTACH";
        match "cdev" "ugen[0-9]+.[0-9]+";
        action "env LD_PRELOAD=%%LIBCUSE%% /usr/local/etc/rc.d/uhidd start /dev/$cdev";
};
Comment 1 Yusuf Yaman freebsd_committer freebsd_triage 2026-07-06 10:11:07 UTC
Hi.

It seems to originate from the source code.

$ grep -r LIBCUSE .
./work/uhidd-REL-0.2.1/uhidd/uhidd-devd.conf.sample:    action "env LD_PRELOAD=%%LIBCUSE%% %%PREFIX%%/etc/rc.d/uhidd start /dev/$cdev";

I guess it's expected to change it before use. FreeBSD Wiki uses this:

action "env LD_PRELOAD=/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/uhidd start /dev/$cdev";

$ locate libcuse
/usr/lib/libcuse.a
/usr/lib/libcuse.so
/usr/lib/libcuse.so.1
/usr/lib32/libcuse.a
/usr/lib32/libcuse.so
/usr/lib32/libcuse.so.1