Building a port with debug symbols using poudriere

Mathieu Arnold mat at freebsd.org
Thu May 7 09:42:42 UTC 2020


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20200507/a2153350/attachment.sig>


More information about the freebsd-ports mailing list