Subject: Re: debugging with perl
To: Frederick Bruckman <fredb@immanent.net>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 05/08/2002 16:32:44
--K8nIJk4ghYZn606h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Wed, May 08, 2002 at 07:56:30AM -0500, Frederick Bruckman wrote:
> On Wed, 8 May 2002, Klaus Heinz wrote:
>=20
> > 'perl -D' (from perl-5.6.1nb6) tells me
> >
> >   Recompile perl with -DDEBUGGING to use -D switch
> >
> > Shouldn't there be some way (mk.conf ?) to decide at package build time
> > whether to include this or not?
> > Maybe there is a performance penalty for -DDEBUGGING but on
> > personal/developer machines the ability to use the debugging flags
> > is desirable, IMHO.
>=20
> This should work:
>=20
>     CONFIGURE_ARGS=3D-DDEBUGGING make configure # (or just "make")
>=20
> but yes, perhaps that would be useful enough to rate it's own hook.

this reminds me of one idea, what about standardize this a bit and add
appropriate debugging mechanism to every package which has some kind of
it's own debugging capabilities and if it's not possible, add -g, -ggdb
or somesuch to make environment?  one could enable building debugging
enabled packages by setting DEBUG_PACKAGES to 'yes' in /etc/mk.conf.
this could be helpful for developers and/or some users who rely on
debugging of software distributed in pkgsrc.

just my $.02.

regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--K8nIJk4ghYZn606h
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE82TcLWc63C347cOIRAko9AJ9Dzipq85EJVO9gocyt+Gm/veSCJgCg7Tl0
oj9M2D2dgnRQszytRS5k/ZY=
=T1d2
-----END PGP SIGNATURE-----

--K8nIJk4ghYZn606h--