Created attachment 188436 [details] testcase port patch In the attached port, please observe how only docs distfile is set when DOCS=on. Replacing DISTNAME line with DISTFILES line enables the source distfile. This is wrong because the option helper DOCS_DISTFILES shouldn't erase the previously set values.
I believe this was already discussed several times and this behavior is intented.
This is very confusing, why is this intended?
Because DISTFILES is set after options processing, and is never overwritten. I'll add DISTFILES to the warning in https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html#options-variables
A commit references this bug: Author: mat Date: Fri Dec 1 07:56:26 UTC 2017 New revision: 51245 URL: https://svnweb.freebsd.org/changeset/doc/51245 Log: Add DISTFILES to the warning. PR: 224005 Reported by: yuri Sponsored by: Absolight Changes: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml