Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 76528
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: cpan698301 [...] mstier.de
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.86
Fixed in: 0.86



Subject: Devel/Cover/Inc.pm contains temporary install destination DESTDIR
Packaging systems are usually installing stuff into separate dirs for package creation (ie. "make install DESTDIR=/var/tmp/..."). Devel::Cover obviously includes that destination directory into the final Inc.pm module, which ERROR: /opt/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi/Devel/Cover/Inc.pm contains /var/tmp/optperl5142-pkgs-5.14.2-build Inc.pm: our @Inc = qw( . /opt/perl-5.14.2/lib/5.14.2 /opt/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi /opt/perl-5.14.2/lib/site_perl/5.14.2 /opt/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi /var/tmp/optperl5142-pkgs-5.14.2-build/opt/perl-5.14.2/lib/site_perl/5.14.2 /var/tmp/optperl5142-pkgs-5.14.2-build/opt/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi );
From: cpan698301 [...] mstier.de
quick fix: sed -i Devel-Cover/Makefile.PL -e "s# @INC;# map {/^${DESTDIR//\//\\\/}/ ? () : \$_} @INC;#"
From: cpan698301 [...] mstier.de
uhm,no, issue is not fixed. And my temporary fix seems to break the tests...
I have a plan for fixing this, but is leaving those directories in there actually causing any problems at the moment?
Thanks very much for this report. I think this is fixed with f650a35. If you have a chance to test it from git (https://github.com/pjcj/Devel--Cover) I'd be very grateful. I'm going to close this ticket, but if there are still problems in this area, please feel free to reopen it. Thanks again.