Created attachment 184363 [details] svn(1) diff of Mk/bsd.java.mk Noticed while working in the regex around here: validation of JAVA_{VERSION,VENDOR,ERROR} does not constitute an error and make(1) will happily continue, potentially doing the wrong thing. Attached patch adjusts it as follows: * Only validate each var if it's defined * Also echo "not a valid value" message if the checked var is empty * Fail the build if validation fails
For some historical value: It looks like this validation was previously strict up until r217132 by kris@ inadvertently changed this.
Can someone review this before the exp-run?
Please proceed on the exp-run
Exp-run looks fine.
A commit references this bug: Author: kevans Date: Sat Nov 4 01:16:32 UTC 2017 New revision: 453438 URL: https://svnweb.freebsd.org/changeset/ports/453438 Log: Mk/bsd.java.mk: Strict JAVA_{VERSION,VENDOR,ERROR} validation Currently, validation of JAVA_{VERSION,VENDOR,ERROR} does not constitute an error and make(1) will happily continue, potentially doing the wrong thing. Adjust the behavior as follows: - Only validate each var if it's defined - Remain verbose about what error exists and what's expected - Fail the build if validation fails bsd.java.mk exhibited this behavior up until r217132 inadvertently changed it to be non-fatal. PR: 220737 Approved by: portmgr (bdrewery) Changes: head/Mk/bsd.java.mk