On Wed, May 06, 2020 at 07:52:45PM -0500, Greg Rivers wrote: > On Wednesday, 6 May 2020 17:49:06 CDT Matthias Andree wrote: > > Am 06.05.20 um 18:05 schrieb Greg Rivers: > > > I need to build bind916 with debug symbols. According to the Makefile, > > > defining "WITH_DEBUG" will accomplish that. Where and how would I set > > > that inside a basic poudriere configuration? > > > > > Either in the port, or you can set WITH_DEBUG_PORTS=dns/bind916 here: > > > > /usr/local/etc/poudriere.d/make.conf - see CUSOTMISATION and then > > further down "Create optional make.conf" in man poudriere > > > Thank you Matthias. I had read your manual page reference prior to posting, > but it didn't specify the variable name format or how to set its value. Is it > a general rule that one can set any variable for any port by specifying: > > ANY_VARIABLE_PORTS=category/portname > > If a variable needs to have a specific value (vs simply being defined or > undefined) is it done like this: > > ANY_VARIABLE_PORTS= category/portname=7
No, this is specific to WITH_DEBUG. There are very few user facing variables in the ports tree, WITH_DEBUG being one of them, for ease of use, and because using it will usually tremendously increase the size of generated packages, there is a WITH_DEBUG_PORTS variable available so that you can easily build one port with debugging symbols and nothing else. If you need to set some variable for a specific port you can: 1) edit the Makefile directly 2) put a Makefile.local in the port's directory with whatever you need 3) Add something like this to make.conf (The one Matthias told you about): .if ${.CURDIR:M*/category/portname} SOME_VARIABLE=yes .endif There are probably other convoluted ways to do it, but those are the easier ones. -- Mathieu Arnold
signature.asc
Description: PGP signature