From 4fce155740fe57c55c6e75978ac4f3e681c14abf Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 2 Jul 2010 22:16:16 +1200 Subject: [PATCH] Add a patch to fix up inc/Module/Install/RTx.pm to use $(DESTDIR). --- patches/make-RTx-use-DESTDIR | 20 ++++++++++++++++++++ patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 patches/make-RTx-use-DESTDIR create mode 100644 patches/series diff --git a/patches/make-RTx-use-DESTDIR b/patches/make-RTx-use-DESTDIR new file mode 100644 index 0000000..4c90ea4 --- /dev/null +++ b/patches/make-RTx-use-DESTDIR @@ -0,0 +1,20 @@ +diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm +index 20a354b..7e681c6 100755 +--- a/inc/Module/Install/RTx.pm ++++ b/inc/Module/Install/RTx.pm +@@ -83,13 +83,13 @@ sub RTx { + if ( $RT::LocalPluginPath ) { + die "Because of bugs in RT 3.8.0 this extension can not be installed.\n" + ."Upgrade to RT 3.8.1 or newer.\n" if $RT::VERSION =~ /^3\.8\.0/; +- $path{$_} = $RT::LocalPluginPath . "/$original_name/$_" ++ $path{$_} = '$(DESTDIR)' . $RT::LocalPluginPath . "/$original_name/$_" + foreach @DIRS; + } else { + foreach ( @DIRS ) { + no strict 'refs'; + my $varname = "RT::Local" . ucfirst($_) . "Path"; +- $path{$_} = ${$varname} || "$RT::LocalPath/$_"; ++ $path{$_} = '$(DESTDIR)' . (${$varname} || "$RT::LocalPath/$_"); + } + + $path{$_} .= "/$name" for grep $path{$_}, qw(etc po var); diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..013b65b --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +make-RTx-use-DESTDIR -- 2.30.2