Table of Contents

Lessons Learnt from the April 2012 lang/lua disaster

:!: This document is a loose collection of thoughts that need to be ordered, and needs some more markup (for code).

Problem (Symptom)

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.

The underlying cause

Random thoughts to evolve to lessons learnt, and contributions to the porter's handbook and possibly Mk/bsd.port.mk

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

Contributions

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