Skip Menu |

This queue is for tickets about the ConfigReader CPAN distribution.

Report information
The Basics
Id: 13921
Status: open
Priority: 0/
Queue: ConfigReader

People
Owner: Nobody in particular
Requestors: danielmcbrearty [...] gmail.com
Cc:
AdminCc:

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



Subject: installation with standard tools appears to be broken
I tried to install this using cpan -i with the following results: cpan -i ConfigReader ... "The module ConfigReader isn't available on CPAN. Either the module has not yet been uploaded to CPAN, or it is temporary unavailable. Please contact the author to find out more about the status. Try 'i ConfigReader'." cpan -i ConfigReader::DirectiveStyle installed OK - but as : /usr/local/share/perl/5.8.4/DirectiveStyle.pm and likewise with ConfigReader::Values which resulted in a broken installation. Something seems to be inconsistent somewhere
Well, it makes sense, it was last published in Feb 20, 1996

At that time, Perl 5.001 was still the newest perl.

ExtUtils::MakeMaker hadn't shipped to CPAN yet, and the version in "Perl itself" was: undef

Suffice to say this dist could arguably be said to have existed prior to the existence of "standard tools"

Hat tip to the trip though time for anyone else reading this bug. :)

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Attached is a patch that when applied, will give a working Makefile.PL and some basic "yes, it still compiles after 21 years" tests.

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Subject: 0001-Add-basic-Makefile.PL-and-Tests.patch
From ba8219e0ca0bde2a3635a589659d8840961dba7b Mon Sep 17 00:00:00 2001 From: Kent Fredric <kentnl@gentoo.org> Date: Thu, 19 Oct 2017 11:10:23 +1300 Subject: Add basic Makefile.PL and Tests This distribution is so old, it could possibly have been authored before EUMM and friends were common practice. Bug: https://rt.cpan.org/Ticket/Display.html?id=13921 --- Makefile.PL | 15 +++++++++++++++ t/compile.t | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Makefile.PL create mode 100644 t/compile.t diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..f272d63 --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,15 @@ +use ExtUtils::MakeMaker; + +WriteMakefile( + NAME => 'ConfigReader', + VERSION_FROM => "DirectiveStyle.pm", + ABSTRACT_FROM => "ConfigReader.pod", + LICENSE => "gpl", + PREREQ_PM => {}, + PM => { + 'ConfigReader.pod' => '$(INST_LIB)/ConfigReader.pod', + 'DirectiveStyle.pm' => '$(INST_LIB)/ConfigReader/DirectiveStyle.pm', + 'Spec.pm' => '$(INST_LIB)/ConfigReader/Spec.pm', + 'Values.pm' => '$(INST_LIB)/ConfigReader/Values.pm', + }, +); diff --git a/t/compile.t b/t/compile.t new file mode 100644 index 0000000..46c1f1d --- /dev/null +++ b/t/compile.t @@ -0,0 +1,12 @@ +use strict; +use warnings; + +use Test::More; + +require_ok("ConfigReader::DirectiveStyle"); +require_ok("ConfigReader::Spec"); +require_ok("ConfigReader::Values"); + +done_testing; + + -- 2.14.2