Skip Menu |

This queue is for tickets about the Device-ELM327 CPAN distribution.

Report information
The Basics
Id: 101289
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Device-ELM327

People
Owner: APERROTT [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.14



Subject: DOS newline in META.yml may cause problems
For example, YAML.pm and Parse::CPAN::Meta cannot parse the META.yml in the 0.13 tarball. This may cause problems when installing the distribution with CPAN.pm. $ cat META.yml|/opt/perl-5.18.4/bin/perl /opt/perl-5.18.4/bin/ysh -MYAML YAML Error: Can't parse double quoted string Code: YAML_PARSE_ERR_BAD_DOUBLE Line: 3 Document: 1 at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 523. $ cat META.yml|/opt/perl-5.18.4/bin/perl /opt/perl-5.18.4/bin/ysh -MParse::CPAN::Meta CPAN::Meta::YAML does not support a feature in line '"Methods for reading OBD data with an ELM327 module.' at /opt/perl-5.18.4/lib/site_perl/5.18.4/Parse/CPAN/Meta.pm line 120. at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Shell.pm line 94.
Thanks! My current build environment uses MakeMaker 6.66, whereas the last version was built on a machine with 6.55_02 installed. I'll try rebuilding on the old machine and see whether that fixes the problem for now. On Sun Jan 04 15:19:21 2015, SREZIC wrote: Show quoted text
> For example, YAML.pm and Parse::CPAN::Meta cannot parse the META.yml > in the 0.13 tarball. This may cause problems when installing the > distribution with CPAN.pm. > > $ cat META.yml|/opt/perl-5.18.4/bin/perl /opt/perl-5.18.4/bin/ysh > -MYAML > YAML Error: Can't parse double quoted string > Code: YAML_PARSE_ERR_BAD_DOUBLE > Line: 3 > Document: 1 > at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 523. > $ cat META.yml|/opt/perl-5.18.4/bin/perl /opt/perl-5.18.4/bin/ysh > -MParse::CPAN::Meta > CPAN::Meta::YAML does not support a feature in line '"Methods for > reading OBD data with an ELM327 module.' at /opt/perl- > 5.18.4/lib/site_perl/5.18.4/Parse/CPAN/Meta.pm line 120. > at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Shell.pm line 94.
Hmmm. The latest META.yml in 0.14 seems still to be built with an older EUMM: generated_by: ExtUtils::MakeMaker version 6.55_02 On 2015-01-05 11:50:46, APERROTT wrote: Show quoted text
> Thanks! My current build environment uses MakeMaker 6.66, whereas the > last version was built on a machine with 6.55_02 installed. I'll try > rebuilding on the old machine and see whether that fixes the problem > for now. > > On Sun Jan 04 15:19:21 2015, SREZIC wrote:
> > For example, YAML.pm and Parse::CPAN::Meta cannot parse the META.yml > > in the 0.13 tarball. This may cause problems when installing the > > distribution with CPAN.pm. > > > > $ cat META.yml|/opt/perl-5.18.4/bin/perl /opt/perl-5.18.4/bin/ysh > > -MYAML > > YAML Error: Can't parse double quoted string > > Code: YAML_PARSE_ERR_BAD_DOUBLE > > Line: 3 > > Document: 1 > > at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 523. > > $ cat META.yml|/opt/perl-5.18.4/bin/perl /opt/perl-5.18.4/bin/ysh > > -MParse::CPAN::Meta > > CPAN::Meta::YAML does not support a feature in line '"Methods for > > reading OBD data with an ELM327 module.' at /opt/perl- > > 5.18.4/lib/site_perl/5.18.4/Parse/CPAN/Meta.pm line 120. > > at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Shell.pm line 94.
Fixed by rebuilding the module with my old build system. Will need to investigate whether changes to the build process can fix the problem for the latest versions of Perl and MakeMaker, or else discover where there is a bug in either of them that needs to be fixed.