From 370474cc94dc50d2eef6de7cf573b4174179a586 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Sat, 4 Apr 2020 15:05:45 +0000 Subject: community/perl-anyevent-i3: modernize APKBUILD --- .../disable-tests-fail-with-insecure-path.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 community/perl-anyevent-i3/disable-tests-fail-with-insecure-path.patch (limited to 'community/perl-anyevent-i3/disable-tests-fail-with-insecure-path.patch') diff --git a/community/perl-anyevent-i3/disable-tests-fail-with-insecure-path.patch b/community/perl-anyevent-i3/disable-tests-fail-with-insecure-path.patch new file mode 100644 index 0000000000..c56693932f --- /dev/null +++ b/community/perl-anyevent-i3/disable-tests-fail-with-insecure-path.patch @@ -0,0 +1,36 @@ +Submitter: Timothy Legge +Date: 2020-04-04 +AnyEvent::I3 appears to remove the ENV settings before +running to execute via qx in test mode with -T triggers an error: + +Insecure directory in $ENV{PATH} while running with -T switch at +/builds/timlegge/aports/community/perl-anyevent-i3/src/ +AnyEvent-I3-0.17/blib/lib/AnyEvent/I3.pm line 151. + +As the module does this as a normal part of its operation and +tests pass local this appears to be due to the tests running via +the aports build tests + +--- a/t/01-workspaces.t ++++ b/t/01-workspaces.t +@@ -1,7 +1,7 @@ + #!perl -T + # vim:ts=4:sw=4:expandtab + +-use Test::More tests => 3; ++use Test::More skip_all => "AnyEvent::I3 removes ENV which causes test to fail"; + use AnyEvent::I3; + use AnyEvent; + +--- a/t/02-sugar.t ++++ b/t/02-sugar.t +@@ -1,7 +1,8 @@ + #!perl -T + # vim:ts=4:sw=4:expandtab + +-use Test::More tests => 3; ++use Test::More skip_all => "AnyEvent::I3 removes ENV which causes test to fail"; ++ + use AnyEvent::I3; + use AnyEvent; + -- cgit v1.2.3