Package Details: perl-padwalker 2.2-1

Git Clone URL: https://aur.archlinux.org/perl-padwalker.git (read-only)
Package Base: perl-padwalker
Description: play with other peoples' lexical variables
Upstream URL: https://metacpan.org/release/PadWalker
Licenses: GPL, PerlArtistic
Submitter: daenyth
Maintainer: jnbek
Last Packager: jnbek
Votes: 35
Popularity: 5.158999
First Submitted: 2009-06-15 22:31
Last Updated: 2015-11-16 17:33

Latest Comments

mat_weiss commented on 2017-10-05 11:53

This patch solves the problem for me:


From b6a26ef2e4627e37eabb4db0e2b78f954f2dd5c1 Mon Sep 17 00:00:00 2001
From: James E Keenan <jkeenan@cpan.org>
Date: Fri, 4 Aug 2017 06:14:06 -0400
Subject: [PATCH] Accommodate absence of '.' from @INC.

Tell two test files where to find files for 'require' and 'do'.

For: https://rt.cpan.org/Ticket/Display.html?id=120421
---
t/foo.t | 1 +
t/var_name.t | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/t/foo.t b/t/foo.t
index aa35895..460a386 100644
--- a/t/foo.t
+++ b/t/foo.t
@@ -1,6 +1,7 @@
use strict;
use PadWalker;
use Data::Dumper;
+BEGIN { push @INC, '.'; }

print "1..6\n";

diff --git a/t/var_name.t b/t/var_name.t
index 2b7cf31..8a98467 100644
--- a/t/var_name.t
+++ b/t/var_name.t
@@ -3,6 +3,7 @@ use PadWalker 'var_name';
use strict;
use warnings;
no warnings 'misc';
+BEGIN { push @INC, '.'; }

chdir "t";

@@ -32,4 +33,4 @@ my $closure;

print (var_name($closure, $closure->()) eq '$aaa' ? "ok 4\n" : "not ok 4\n");

-require "vn-inc-1.pl";
\ No newline at end of file
+require "vn-inc-1.pl";
--
2.7.4

mat_weiss commented on 2017-10-05 09:02

I need the package for some dependencies. I get the following error message when creating the package:

.
.
.
==> Beginne check()...
Running Mkbootstrap for PadWalker ()
chmod 644 "PadWalker.bs"
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/closure.t ... ok
t/dm.t ........ ok
t/foo.t ....... Can't locate bar.pl in @INC (@INC contains: /home/auruser/.cache/pacaur/perl-padwalker/src/PadWalker-2.2/blib/lib /home/auruser/.cache/pacaur/perl-padwalker/src/PadWalker-2.2/blib/arch /usr/lib/perl5/5.26/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.26/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.26/core_perl /usr/share/perl5/core_perl) at t/foo.t line 8.
t/foo.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 6/6 subtests
t/our.t ....... ok
t/recurse.t ... ok
t/sub.t ....... ok
t/test.t ...... ok
t/tt.t ........ ok
t/var_name.t .. 1/8 Can't locate vn-inc-1.pl in @INC (@INC contains: /home/auruser/.cache/pacaur/perl-padwalker/src/PadWalker-2.2/blib/lib /home/auruser/.cache/pacaur/perl-padwalker/src/PadWalker-2.2/blib/arch /usr/lib/perl5/5.26/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.26/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.26/core_perl /usr/share/perl5/core_perl) at t/var_name.t line 35.
t/var_name.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/8 subtests

Test Summary Report
-------------------
t/foo.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 6 tests but ran 0.
t/var_name.t (Wstat: 512 Tests: 4 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 8 tests but ran 4.
Files=9, Tests=72, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.05 cusr 0.00 csys = 0.07 CPU)
Result: FAIL
Failed 2/9 test programs. 0/72 subtests failed.
make: *** [Makefile:1008: test_dynamic] Fehler 2
==> FEHLER: Ein Fehler geschah in check().
Breche ab...
:: Konnte perl-padwalker-Paket(e) nicht erstellen

bidulock commented on 2015-06-28 13:53

Please bump pkgrel to trigger recompile against perl 5.22.0.

mbunkus commented on 2013-06-05 08:22

Please bump the pkgrel in order to trigger a re-build with the new Perl 5.18.