[Bug 260128] "make tags" fails with "gtags not found", src/Makefile undesirably rewrites PATH
Date: Tue, 30 Nov 2021 03:24:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260128 --- Comment #1 from Jory Folker <jfolker11@gmail.com> --- As it turns out, I was too groggy from coughing my lungs out (and NyQuil) to notice the cause sitting right there in plain sight, line 215 of Makefile: PATH= /sbin:/bin:/usr/sbin:/usr/bin This is flat-out wrong. Note that the first n directories in the default PATH for root are identical, in line 22 of /root/.cshrc: set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin) If the user prepends directories onto PATH in /root/.cshrc and breaks their own build by calling a version of an executable (e.g. gtags) not explicitly maintained for build purposes, I don't think it's unreasonable to call it pilot error. We should also consider the undue hassle to some LLVM maintainer testing their experimental clang build. My proposed fix to remove this line from src/Makefile is included at the bottom of this message. 215d214 < PATH= /sbin:/bin:/usr/sbin:/usr/bin -- You are receiving this mail because: You are the assignee for the bug.