1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Patch search path so arch-indep files are found
On Debian, all of the js, gif, css etc files are installed in /usr/share/perl5
rather than /usr/lib/perl5. They are not in the library directory as
Devel::NYTProf::Data expects
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Reviewed-by: Nicholas Bamber <nicholas@periapt.co.uk>
Last-Update: 2010-09-25
--- a/bin/nytprofhtml
+++ b/bin/nytprofhtml
@@ -1202,6 +1202,7 @@
my ($profile) = @_;
# find the js, gif, css etc files installed with Devel::NYTProf
(my $lib = $INC{"Devel/NYTProf/Data.pm"}) =~ s/\/Data\.pm$//;
+ $lib =~ s{usr/lib/perl5}{usr/share/perl5};
_copy_dir("$lib/js", "$opt_out/js");
}
|