This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Teach Porting/cmpVERSION.pl about .pm files extracted from .pm_PL files.
authorNicholas Clark <nick@ccl4.org>
Sun, 3 Jun 2012 14:39:58 +0000 (16:39 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 18 Jun 2012 12:15:41 +0000 (14:15 +0200)
commit7ab1c1a40119835e85bc5d17cebc8e31e6d9c303
treefe7cb25e21e69fe9bf784752de679ac4c7ec01b4
parent9331f04e78b4397d37b7b10efe5dcef53ae4982e
Teach Porting/cmpVERSION.pl about .pm files extracted from .pm_PL files.

Previously these were overlooked - the generated .pm file corresponding to
an .xs file would be found on disk, but as that file was not in git, the
original $VERSION could not be determined and it would be skipped. Now the
correct master file is checked, and failed if it is not updated.

Without this change, t/porting/cmp_version.t currently fails for a build
using -Dmksymlinks, due to ext/DynaLoader/dl_vms.xs having recent changes.
The test changes directory to the original git checkout, and if that
checkout is clean, there is *no* ext/DynaLoader.pm file there, which meant
that the previous version of pm_file_from_xs() would die because it could
not figure out which Perl file relates to dl_vms.xs
Porting/cmpVERSION.pl