[Bug 298347] whereis pgrep should point to pgrep sources in /usr/src/bin/pkill

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Sep 2026 13:30:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298347

            Bug ID: 298347
           Summary: whereis pgrep should point to pgrep sources in
                    /usr/src/bin/pkill
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: saper@saper.info

The whereis utility checks the standard binary, manual page, and source
directories for the specified programs, printing out the paths of any it finds.

Program sources are located in a list of known standard places, including all
the subdirectories of /usr/src and /usr/ports.

Example:

> whereis pkill
pkill: /usr/bin/pkill /usr/share/man/man1/pkill.1.gz /usr/src/bin/pkill

but

> whereis pgrep
pgrep: /usr/bin/pgrep /usr/share/man/man1/pgrep.1.gz

This is because we have

LINKS=  ${BINDIR}/pkill ${BINDIR}/pgrep
MLINKS= pkill.1 pgrep.1

and whereis does not understand that.

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