From owner-freebsd-ports@freebsd.org Thu May 7 09:42:42 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5FD5E2C0B9D for ; Thu, 7 May 2020 09:42:42 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49HpR61tydz3PBF; Thu, 7 May 2020 09:42:42 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from mail.j.mat.cc (owncloud.cube.mat.cc [IPv6:2a01:678:4:1::228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.mat.cc", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 216351661; Thu, 7 May 2020 09:42:42 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (aching.in.mat.cc [IPv6:2a01:678:42:0:5e80:b6ff:fe2c:99e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mat@mat.cc) by mail.j.mat.cc (Postfix) with ESMTPSA id 28131942D81; Thu, 7 May 2020 09:42:39 +0000 (UTC) Date: Thu, 7 May 2020 11:42:37 +0200 From: Mathieu Arnold To: Greg Rivers Cc: FreeBSD Ports Subject: Re: Building a port with debug symbols using poudriere Message-ID: <20200507094237.f2sv6rkcyqzhswtg@aching.in.mat.cc> References: <4758866.YNO7O01DYZ@no.place.like.home> <1785216.Ei5Gdb227I@no.place.like.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cddk2x34inecs6bx" Content-Disposition: inline In-Reply-To: <1785216.Ei5Gdb227I@no.place.like.home> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 09:42:42 -0000 --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--