aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-rt-authen-externalauth/01-fix-plugindir.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-04-17 06:25:17 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-04-17 06:26:25 +0000
commit9192f068fd2013b45bc78757170ea118c1c3e384 (patch)
tree8b2d0f59239dc9de16775e635d10529630e61be6 /main/perl-rt-authen-externalauth/01-fix-plugindir.patch
parentcbc78a0b27ac07aa78b7810513a89e3dfe7d48d4 (diff)
downloadaports-9192f068fd2013b45bc78757170ea118c1c3e384.tar.bz2
aports-9192f068fd2013b45bc78757170ea118c1c3e384.tar.xz
main/perl-rt-authen-externalauth: upgrade to 0.25
Diffstat (limited to 'main/perl-rt-authen-externalauth/01-fix-plugindir.patch')
-rw-r--r--main/perl-rt-authen-externalauth/01-fix-plugindir.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/perl-rt-authen-externalauth/01-fix-plugindir.patch b/main/perl-rt-authen-externalauth/01-fix-plugindir.patch
new file mode 100644
index 0000000000..ea4fa485b2
--- /dev/null
+++ b/main/perl-rt-authen-externalauth/01-fix-plugindir.patch
@@ -0,0 +1,24 @@
+Author: Tom Jampen <tom@cryptography.ch>
+Description:
+ Using the PREFIX environment variable defined in rules to find debian's request
+ tracker installation and fixing the plugin path to install to DESTDIR.
+
+diff -Naurp a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
+--- a/inc/Module/Install/RTx.pm 2014-10-15 08:41:45.631919231 +0200
++++ b/inc/Module/Install/RTx.pm 2014-10-15 08:41:04.130328032 +0200
+@@ -42,12 +42,14 @@ sub RTx {
+ $ENV{RTHOME} =~ s{/RT\.pm$}{} if defined $ENV{RTHOME};
+ $ENV{RTHOME} =~ s{/lib/?$}{} if defined $ENV{RTHOME};
+ my @try = $ENV{RTHOME} ? ($ENV{RTHOME}, "$ENV{RTHOME}/lib") : ();
++ my $prefix = $ENV{PREFIX};
++ push @INC, "$prefix/lib";
+ while (1) {
+ my @look = @INC;
+ unshift @look, grep {defined and -d $_} @try;
+ push @look, grep {defined and -d $_}
+ map { ( "$_/rt4/lib", "$_/lib/rt4", "$_/lib" ) } @prefixes;
+- last if eval {local @INC = @look; require RT; $RT::LocalLibPath};
++ last if eval {local @INC = @look; require RT; $RT::LocalPluginPath = '$(DESTDIR)'."$prefix/plugins"; $RT::LocalLibPath};
+
+ warn
+ "Cannot find the location of RT.pm that defines \$RT::LocalPath in: @look\n";