Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2020 14:18:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244485] Mk/Scripts: warn about options without a description
Message-ID:  <bug-244485-7788-lKz7T3LtB6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-244485-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-244485-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244485

--- Comment #2 from Mathieu Arnold <mat@FreeBSD.org> ---
I wanted to do something about this a while back, but bsd.options.desc.mk is
only parsed if you run make config or make showconfig.
(Because it is very fat and not needed most of the time.)
It happens around lines 4980 of Mk/bsd.ports.mk.

All would be needed is to add, something like this in all the loops:

.      if empty(${opt}_DESC)
DEV_WARNING+=3D   "The ${opt} option does not have an associated ${opt}_DES=
C"
.      endif

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244485-7788-lKz7T3LtB6>