Subject: | Does not honor DESTDIR |
Hello,
I've been trying to create a package of a Module::Install::RTx-built
module today. And I ran across a problem, that it does not honor
DESTDIR=<something> argument to module install. The following patch
should fix it:
--- Module-Install-RTx-0.11.orig/lib/Module/Install/RTx.pm
2005-02-27 03:55:14.000000000 +0100
+++ Module-Install-RTx-0.11/lib/Module/Install/RTx.pm 2005-05-26
18:02:50.590394307 +0200
@@ -66,7 +66,7 @@
}
$path{$_} .= "/$name" for grep $path{$_}, qw(etc po var);
- my $args = join(', ', map "q($_)", %path);
+ my $args = join(', ', map "q($_), q(\$(DESTDIR)$path{$_})", keys
%path);
$path{lib} = "$RT::LocalPath/lib" unless %subdirs and !
$subdirs{'lib'};
print "./$_\t=> $path{$_}\n" for sort keys %path;