[Bug 260128] "make tags" fails with "gtags not found", src/Makefile undesirably rewrites PATH

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 Nov 2021 14:55:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260128

Jessica Clarke <jrtc27@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jrtc27@freebsd.org

--- Comment #3 from Jessica Clarke <jrtc27@freebsd.org> ---
That's not the right fix. The build is deliberately done with a hard-coded path
to ensure nothing outside of the base system is used accidentally. If a target
needs something from /usr/local/bin then it should either default to using an
absolute path or add to PATH temporarily and locally when needed. That is,
CTAGS in bsd.dep.mk should likely be defaulting to /usr/local/bin/gtags (or,
really, ${LOCALBASE}/bin/gtags), though maybe base's ctags works well enough
(the default was flipped in 2002 from ctags to gtags, and I don't know what the
status of either of them is these days).

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