Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-PPPort CPAN distribution.

Report information
The Basics
Id: 36197
Status: resolved
Priority: 0/
Queue: Devel-PPPort

People
Owner: Nobody in particular
Requestors: cberry [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 3.13
  • 2.99_01
  • 2.99_02
  • 2.99_03
  • 2.99_04
  • 2.99_05
  • 2.99_06
  • 2.99_07
  • 3.00
  • 3.00_01
  • 3.00_02
  • 3.00_03
  • 3.01
  • 3.02
  • 3.03
  • 3.04
  • 3.05
  • 3.06
  • 3.06_01
  • 3.06_02
  • 3.06_03
  • 3.06_04
  • 3.07
  • 3.08
  • 3.08_01
  • 3.08_02
  • 3.08_03
  • 3.08_04
  • 3.08_05
  • 3.08_07
  • 3.09
  • 3.09_01
  • 3.09_02
  • 3.10
  • 3.10_01
  • 3.10_02
  • 3.11
  • 3.11_01
  • 3.11_02
  • 3.11_03
  • 3.11_04
  • 3.11_05
  • 3.11_06
  • 3.12
Fixed in: 3.14



Subject: [PATCH] filename nit in parse_partspec
When parse_partspec fails to locate a data_provides section in the file it is processing and falls back to using the filename with the directory portion removed, it runs into trouble on VMS and ends up spewing the following warnings: MCR [---]miniperl.exe "-I[---.lib]" "-I[---.lib]" "-I[---.lib]" "-I[---.lib]" PPPort_xs.PL RealPPPort.xs Use of uninitialized value $data{"provides"} in pattern match (m//) at parts/ppptools.pl line 115. Use of uninitialized value $data{"provides"} in pattern match (m//) at parts/ppptools.pl line 115. adding XS code from [.parts.inc]call. adding XS code from [.parts.inc]cop. [snip] What's happening is that on VMS there is really no such thing as a file with no extension, and a file with a zero-length extension is reported by readdir() with a trailing dot (C<foo> is really C<foo.>). The attached patch merely allows an optional trailing dot on the filename and the warnings disappear.
Subject: ppptools.patch.txt
--- parts/ppptools.pl;-0 Fri Jan 4 08:10:55 2008 +++ parts/ppptools.pl Mon May 26 15:11:13 2008 @@ -110,7 +110,7 @@ sub parse_partspec } unless (exists $data{provides}) { - $data{provides} = ($file =~ /(\w+)$/)[0]; + $data{provides} = ($file =~ /(\w+)\.?$/)[0]; } $data{provides} = [$data{provides} =~ /(\S+)/g];
Thanks for letting me know and providing a patch! I've applied it to my local repository and it'll be part of the next release.
Fixed in Devel::PPPort 3.14.