Date: Thu, 7 May 2020 11:42:37 +0200 From: Mathieu Arnold <mat@freebsd.org> To: Greg Rivers <gcr+freebsd-ports@tharned.org> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Building a port with debug symbols using poudriere Message-ID: <20200507094237.f2sv6rkcyqzhswtg@aching.in.mat.cc> In-Reply-To: <1785216.Ei5Gdb227I@no.place.like.home> References: <4758866.YNO7O01DYZ@no.place.like.home> <fb400c9d-49e9-3811-2b07-42d3f3f11013@gmx.de> <1785216.Ei5Gdb227I@no.place.like.home>
next in thread | previous in thread | raw e-mail | index | archive | help
--cddk2x34inecs6bx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 tha= t inside a basic poudriere configuration? > > > > > Either in the port, or you can set WITH_DEBUG_PORTS=3Ddns/bind916 here: > >=20 > > /usr/local/etc/poudriere.d/make.conf - see CUSOTMISATION and then > > further down "Create optional make.conf" in man poudriere > >=20 > Thank you Matthias. I had read your manual page reference prior to postin= g, 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 specifyi= ng: >=20 > ANY_VARIABLE_PORTS=3Dcategory/portname >=20 > If a variable needs to have a specific value (vs simply being defined or = undefined) is it done like this: >=20 > ANY_VARIABLE_PORTS=3D category/portname=3D7 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=3Dyes .endif There are probably other convoluted ways to do it, but those are the easier ones. --=20 Mathieu Arnold --cddk2x34inecs6bx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAl6z2ABfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgJkMQ//coThGST+CDwMr5L/9cTi2HcJhb1pLD04xrbi4Qze6u4X0m6k2Zmissjb V5RWtHka2DgLUoGRSxoyRBZeOTjPFuoqz/GD++cdMFqxii8L5NgHOTCAurvmaeyJ dwsGXAyOpFwjukX7QjrarEhSGbPf1udUe++velkQkzKDpnJ5E/ur3dWXLzJciphk 92mejjze740MSEWiQH5wiUEapsVoP/62kiWTEtEVXpZMQx3GZqEoHp2g4b0Pk/Zy SjMU25IsZrv9SaaNoLS+Ks4+K+1VDLVYs09rube1P6NrA5fAo6Y9me2ynUX0m4VA QIp3gK6AdKkkOjxs1RUut1+X6ThfZd2bEq2RO3EOSj2eEpUSt4KCp5xzk2K3kJNa zWLtocSFfRSB4d52yC79tSa6uK0dhq3ZzmDuRJ5b7ClaIo2PWXwPwvWj/CBN+kw5 bWBmyEOg5FlxjgfzqOPKbXx6fj96j2C0yBsGllr4+9KomABXmCHQ3QVPIVxp5uvR tE0L+DcxidoFYRIBzNFKw//Zl5QnjyMnpe004FTmoaa5Zq/MjVaFCCYXP5AKsvxe r1KMqNDjB0Vf7lcgA2jV+T3ii8Cx//X/g7wzkkbDzpG6R5ibanS/hGGDJFVNrh+t INEvnUhffQlxCCzCo2zArw6S8NXyqeLNUaJIRKsXIwQXHPqCsjo= =7rqc -----END PGP SIGNATURE----- --cddk2x34inecs6bx--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200507094237.f2sv6rkcyqzhswtg>