[Bug 291586] sysutils/watchman missing folder at build and runtime

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 11 Dec 2025 22:10:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291586

            Bug ID: 291586
           Summary: sysutils/watchman missing folder at build and runtime
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: dewayne@heuristicsystems.com.au
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

During build
pkg-static: Unable to access file
/var/portswrk/usr/ports/sysutils/watchman/work/stage/var/run/watchman/:No such
file or directory

Its notable that 
PLIST_FILES=    bin/${PORTNAME} \
                "@dir(,,2777) /var/run/${PORTNAME}"

so the file "should" be created. I did attempt to build on two different
systems, same result.

Workaround: 
After: make build
mkdir -p /var/portswrk/usr/ports/sysutils/watchman/work/stage/var/run/watchman
make package

During runtime,
#  watchman get-sockname
2025-12-12T08:44:42,052: [289808400] failed to create
${prefix}/var/run/watchman/sysman-state: No such file or directory

Trying a workaround 
# prefix=/; watchman get-sockname
2025-12-12T08:57:18,241: [289808400] failed to create
${prefix}/var/run/watchman/sysman-state: No such file or directory

It appears that $prefix is a hardcoded string within watchman executable.

# uname -ripKU
14.3-STABLE amd64 GENERIC 1403506 1403506

# pkg -v 
2.4.2

Is this reproducible?

-- 
You are receiving this mail because:
You are the assignee for the bug.