Skip Menu |

This queue is for tickets about the Clipboard CPAN distribution.

Report information
The Basics
Id: 121056
Status: resolved
Priority: 0/
Queue: Clipboard

People
Owner: ether [...] cpan.org
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

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



Subject: Makefile.PL fails when no '.' in @INC ( Can't locate inc/Module/Install.pm )
On 5.25.11+ where -Ddefault_inc_excludes_dot is now default, when PERL_USE_UNSAFE_INC=0

 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Clipboard-0.130.0-r2/image/
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.25.11/x86_64-linux /usr/local/lib64/perl5/5.25.11 /usr/lib64/perl5/vendor_perl/5.25.11/x86_64-linux /usr/lib64/perl5/vendor_perl/5.25.11 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.25.11/x86_64-linux /usr/lib64/perl5/5.25.11) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.



-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )

Tests are also broken.

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Subject: 0001-Fix-Makefile.PL-Tests-for-.-in-INC-removal-under-Per.patch
From 389b272f8696b86f594726544a8280e43cd2ffc6 Mon Sep 17 00:00:00 2001 From: Kent Fredric <kentnl@gentoo.org> Date: Thu, 19 Oct 2017 10:21:36 +1300 Subject: Fix Makefile.PL & Tests for '.' in @INC removal under Perl 5.26+ Bug: https://bugs.gentoo.org/615138 Bug: https://rt.cpan.org/Ticket/Display.html?id=121056 --- Makefile.PL | 1 + t/drivers.t | 2 ++ t/mock.t | 2 ++ 3 files changed, 5 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index 08468ac..ab60784 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,3 +1,4 @@ +use lib '.'; use inc::Module::Install; name('Clipboard'); author('Ryan King <rking@panoptic.com>'); diff --git a/t/drivers.t b/t/drivers.t index 1ae7014..de2478f 100644 --- a/t/drivers.t +++ b/t/drivers.t @@ -1,3 +1,5 @@ +use File::Spec::Functions qw(rel2abs); +use lib rel2abs('.'); use Test::Clipboard; use strict; # XXX make Test::Clipboard do this my %map = qw( diff --git a/t/mock.t b/t/mock.t index fbd76f0..2a50ebb 100644 --- a/t/mock.t +++ b/t/mock.t @@ -1,3 +1,5 @@ +use File::Spec::Functions qw(rel2abs); +use lib rel2abs('.'); use Test::Clipboard; use Test::MockClipboard; use strict; # XXX make Test::Clipboard do this -- 2.14.2
On Wed Oct 18 17:25:50 2017, KENTNL wrote: Show quoted text
> Tests are also broken. > > -- > - CPAN kentnl@cpan.org > - Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Hi! In 0.15, it should be fixed as I converted to dzil and added use libs to the tests.
On Wed Jan 30 06:01:46 2019, SHLOMIF wrote: Show quoted text
> On Wed Oct 18 17:25:50 2017, KENTNL wrote:
> > Tests are also broken. > > > > -- > > - CPAN kentnl@cpan.org > > - Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
> > Hi! In 0.15, it should be fixed as I converted to dzil and added use > libs to the tests.
fixed.