pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/p5-goto-file
Module Name: pkgsrc
Committed By: wen
Date: Sat Nov 15 12:29:18 UTC 2025
Added Files:
pkgsrc/devel/p5-goto-file: DESCR Makefile distinfo
Log Message:
Import goto-file-0.005 as devel/p5-goto-file.
It is rare, but there are times where you want to swap out the currently
compiling file for a different one. This module does that. From the point you
use the module perl will be parsing the new file instead of the original.
This was created specifically for Test2::Harness which can preload modules and
fork to run each test. The problem was that using do to execute the test files
post-fork was resuling in extra frames in the stack trace... in other words
there are a lot of tests that assume the test file is the bottom of the stack.
This happens all the time, specially if stack traces need to be verified.
This module allows Test2::Harness to swap out the main script for the new file
without adding a stack frame.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-goto-file/DESCR \
pkgsrc/devel/p5-goto-file/Makefile pkgsrc/devel/p5-goto-file/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/p5-goto-file/DESCR
diff -u /dev/null pkgsrc/devel/p5-goto-file/DESCR:1.1
--- /dev/null Sat Nov 15 12:29:18 2025
+++ pkgsrc/devel/p5-goto-file/DESCR Sat Nov 15 12:29:18 2025
@@ -0,0 +1,12 @@
+It is rare, but there are times where you want to swap out the currently
+compiling file for a different one. This module does that. From the point you
+use the module perl will be parsing the new file instead of the original.
+
+This was created specifically for Test2::Harness which can preload modules and
+fork to run each test. The problem was that using do to execute the test files
+post-fork was resuling in extra frames in the stack trace... in other words
+there are a lot of tests that assume the test file is the bottom of the stack.
+This happens all the time, specially if stack traces need to be verified.
+
+This module allows Test2::Harness to swap out the main script for the new file
+without adding a stack frame.
Index: pkgsrc/devel/p5-goto-file/Makefile
diff -u /dev/null pkgsrc/devel/p5-goto-file/Makefile:1.1
--- /dev/null Sat Nov 15 12:29:18 2025
+++ pkgsrc/devel/p5-goto-file/Makefile Sat Nov 15 12:29:18 2025
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2025/11/15 12:29:18 wen Exp $
+
+DISTNAME= goto-file-0.005
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/E/EX/EXODIST/}
+
+MAINTAINER= wen%NetBSD.org@localhost
+HOMEPAGE= https://metacpan.org/release/goto-file
+COMMENT= Stop parsing the current file and move on to a different one
+LICENSE= ${PERL5_LICENSE}
+
+PERL5_PACKLIST= auto/goto/file/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/p5-goto-file/distinfo
diff -u /dev/null pkgsrc/devel/p5-goto-file/distinfo:1.1
--- /dev/null Sat Nov 15 12:29:18 2025
+++ pkgsrc/devel/p5-goto-file/distinfo Sat Nov 15 12:29:18 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/11/15 12:29:18 wen Exp $
+
+BLAKE2s (goto-file-0.005.tar.gz) = 186b7e779c0634aead92be5e76b8ac30df29fa5e1209142d8d45c5c4e33a70d7
+SHA512 (goto-file-0.005.tar.gz) = c51a620fc08615f0da4fbf537ff15e37915ed7e8c7ab19987b54df724bb33fa3ba17a9ba6203511b55331de8785d2e5acdb73d79aae5297c7d7b567c3d33ea26
+Size (goto-file-0.005.tar.gz) = 13012 bytes
Home |
Main Index |
Thread Index |
Old Index