Skip Menu |

This queue is for tickets about the Pod-Plainer CPAN distribution.

Report information
The Basics
Id: 49699
Status: resolved
Priority: 0/
Queue: Pod-Plainer

People
Owner: RMBarker [...] cpan.org
Requestors: jdhedden [...] cpan.org
Cc: imacat [...] cpan.org
AdminCc:

Bug Information
Severity: Important
Broken in: 1.00
Fixed in: 1.01



Subject: [PATCH] Must install in 'perl' dirs
Module needs to be installed under 'perl' instead of the default 'site'. Patch attached.
Subject: patch.txt
--- Pod-Plainer-1.00/Makefile.PL.orig 2009-09-14 16:02:19.735932600 -0400 +++ Pod-Plainer-1.00/Makefile.PL 2009-09-14 16:03:47.422957300 -0400 @@ -8,5 +8,6 @@ ABSTRACT_FROM => 'Plainer.pm', AUTHOR => 'Robin Barker <rmb1@npl.co.uk>', LICENSE => 'perl', + INSTALLDIRS => 'perl', );
On 2009-09-14 16:06:14 Mon, JDHEDDEN wrote: Show quoted text
> Module needs to be installed under 'perl' instead of the default 'site'. > Patch attached.
A revised patch is attached, so that it works with Perl 5.005 and earlier (although I do not know if there is anyone still using it.) Please tell me if you need any more information, or if I can be of any help. Thank you.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 diff -u -r Pod-Plainer-1.00.orig/Makefile.PL Pod-Plainer-1.00/Makefile.PL - --- Pod-Plainer-1.00.orig/Makefile.PL 2009-09-14 01:24:10.000000000 +0800 +++ Pod-Plainer-1.00/Makefile.PL 2009-09-20 11:43:02.000000000 +0800 @@ -8,5 +8,6 @@ ABSTRACT_FROM => 'Plainer.pm', AUTHOR => 'Robin Barker <rmb1@npl.co.uk>', LICENSE => 'perl', + INSTALLDIRS => ($] >= 5.006 ? 'perl' : 'site'), ); -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkq1pQgACgkQi9gubzC5S1zzeACffThQkU9NIkot2BFaECH/O60L Fy0An1FdPd7IHZlhm9H20Lab2YIUi4Ui =hnGj -----END PGP SIGNATURE-----
On Sun Sep 20 00:23:45 2009, IMACAT wrote: Show quoted text
> > A revised patch is attached, so that it works with Perl 5.005 and > earlier (although I do not know if there is anyone still using it.)
The module was added to 5.6.0 and uses C<our> so will only work with 5.6.0 and above. For C<use deprecate> to work, the module must be installed in 'site'. This depends on the existence of deprecate.pm and the rearrangement of @INC in 5.11.0, so I will set INSTALLDIRS=perl for $] < 5.11.0.