Skip to content

CPAN Meta YAML in Perl 5 Core Distribution

Karen Etheridge edited this page Apr 5, 2015 · 6 revisions

CPAN-Meta-YAML in Perl 5 Core Distribution

CPAN-Meta-YAML is a library whose purpose is to read and write a subset of YAML for CPAN Meta files. It is maintained on CPAN but is also included in the Perl 5 core distribution.

As of Mar 22 2015, CPAN-Meta-YAML's latest version is 0.014 and is PASSing all its tests as reported by CPAN testers (see below). Once Perl 5.22.0 is released in May, CPAN-Meta-YAML will be included in the next development release of Perl, 5.23.1, to be released in June. A branch in the Perl 5 distribution has been created to smoke-test the upgraded CPAN-Meta-YAML as part of that distribution: smoke-me/jkeenan/cpan-meta-yaml-upgrade-5.23.1.

The problem is that when we run Perl 5's own test suite, the inclusion of the upgraded CPAN-Meta-YAML causes a failure in a test file not directly associated with CPAN-Meta-YAML:

$> git checkout cpan-meta-yaml-upgrade-5.23.1
$> sh ./Configure -des -Dusedevel
$> make test_prep
$> cd t; ./perl harness -v porting/exec-bit.t; cd -
# Failed test 107 - Everything in Porting/exec-bit.txt has +x in repo at porting/exec-bit.t line 66
# Files missing exec bit:
#   ../cpan/CPAN-Meta-YAML/t/tml

ok 1 - File ../Configure has shebang
ok 2 - tarball will chmod +x ../Configure
...
ok 106 - tarball will chmod +x ../t/TEST
not ok 107 - Everything in Porting/exec-bit.txt has +x in repo
Failed 1/107 subtests 

Test Summary Report
-------------------
porting/exec-bit.t (Wstat: 0 Tests: 107 Failed: 1)
  Failed test:  107
Files=1, Tests=107,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.03 cusr  0.01 csys =  0.06 CPU)
Result: FAIL

Tasks

Determine why t/porting/exec-bit.t is failing and correct it. You will have to determine to what extent the problem lies in CPAN-Meta-YAML and to what extent it lies in the Perl 5 core distribution. Prepare patches as needed.

Resources

Participants

[Provide your name and email address to become the first participant in this project.] - Karen Etheridge, ether@cpan.org

Track

Perl 5 Core Distribution

RESOLUTION

Jim: below is the patch that fixes this issue. I also attached it to https://rt.perl.org/Ticket/Display.html?id=124093.

From 97a3b3382805dcb21acaae64b5db68b4dbbe3543 Mon Sep 17 00:00:00 2001
From: Karen Etheridge <ether@cpan.org>
Date: Sun, 5 Apr 2015 10:32:59 -0700
Subject: [PATCH] set +x on this executable, as it is in the cpan distribution

---
 cpan/CPAN-Meta-YAML/t/tml | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 cpan/CPAN-Meta-YAML/t/tml

diff --git a/cpan/CPAN-Meta-YAML/t/tml b/cpan/CPAN-Meta-YAML/t/tml
old mode 100644
new mode 100755
-- 
2.3.2