From: Theo Buehler Subject: Re: convenience tweak to pkgpath.mk To: sthen@openbsd.org, afresh1@openbsd.org, ports@openbsd.org Date: Thu, 4 Dec 2025 14:37:02 +0100 On Thu, Dec 04, 2025 at 02:28:36PM +0100, Marc Espie wrote: > I use this often enough while figuring out details of some perl tooling, > such as why update-plist is not quite doing what I want Sure, if this helps you. ok tb (or I'll commit a bit later) > > > Index: README.internals > =================================================================== > RCS file: /vide/cvs/ports/infrastructure/mk/README.internals,v > diff -u -p -r1.19 README.internals > --- README.internals 10 Aug 2023 18:50:58 -0000 1.19 > +++ README.internals 4 Dec 2025 13:26:54 -0000 > @@ -425,6 +425,9 @@ _SHSCRIPT: prepend to a shell script in > > _PERLSCRIPT: likewise for perl scripts. > > +_PERLDSCRIPT: (unused) variation of _PERLSCRIPT for debugging a script, > + runs through perl -d > + > _ALL_VARIABLES _ALL_VARIABLES_INDEXED _ALL_VARIABLES_PER_ARCH: > stuff to dump in dump-vars. First is "simple" variable, second one > will depend on the subpackage, and for last one, must iterate > Index: pkgpath.mk > =================================================================== > RCS file: /vide/cvs/ports/infrastructure/mk/pkgpath.mk,v > diff -u -p -r1.89 pkgpath.mk > --- pkgpath.mk 12 Nov 2023 12:55:08 -0000 1.89 > +++ pkgpath.mk 4 Dec 2025 13:25:30 -0000 > @@ -11,6 +11,7 @@ DANGEROUS ?= No > LOCALBASE ?= /usr/local > > _PERLSCRIPT = /usr/bin/perl ${PORTSDIR}/infrastructure/bin > +_PERLDSCRIPT = /usr/bin/perl -d ${PORTSDIR}/infrastructure/bin > > .if !defined(PKGPATH) > PKGPATH != PORTSDIR_PATH=${PORTSDIR_PATH} \