This document is a loose collection of thoughts that need to be ordered, and needs some more markup (for code).
lang/lua 5.1.4 and 5.1.5 went through several non-functional PORTREVISIONS because we hadn't gotten the CFLAGS handling right. Each time we'd thought we'd fixed the port, we received new PRs complaining about missing features, broken builds, and other mishaps.
/etc/make.conf gets read three times:CFLAGS=anything in /etc/make.conf, that would override changes that the port had made.MAKE_ARGS= __MAKE_CONF=${NONEXISTENT}NOTE that this does not prevent the first reading of /etc/make.conf - that happens before the Makefile is read (see make's manual page).
We should consider moving this into ports/Mk/bsd.port.mk. This makes sure that /etc/make.conf is only read once, before the port's category/port/Makefile. This is sufficient to populate variables and influence the port's build.
#bsdports 2012-04-11 21:56:37Z Pav: I need to come up with a legit reason to allow re-reading make.conf deep inside builds
If you were involved in reporting and/or solving the bug, have observed related bugs, you are pav@, crees@, ohauer@, Niclas Zeising, mezz@, feel free to add to this section, and sign your contributions like this → – MatthiasAndree