Files
perl-Apache-Gallery/Apache-Gallery-1.0.2_modperl2_default.patch

15 lines
606 B
Diff

diff -u -r Apache-Gallery-1.0.2/lib/Apache/Gallery.pm Apache-Gallery-1.0.2_fix/lib/Apache/Gallery.pm
--- Apache-Gallery-1.0.2/lib/Apache/Gallery.pm 2011-06-08 20:47:46.000000000 +0200
+++ Apache-Gallery-1.0.2_fix/lib/Apache/Gallery.pm 2016-05-20 11:46:38.474471174 +0200
@@ -11,8 +11,8 @@
BEGIN {
- if (exists($ENV{MOD_PERL_API_VERSION})
- and ($ENV{MOD_PERL_API_VERSION}==2)) {
+ if (!exists($ENV{MOD_PERL_API_VERSION})
+ or ($ENV{MOD_PERL_API_VERSION}==2)) {
require mod_perl2;
if ($mod_perl::VERSION >= 1.99 && $mod_perl::VERSION < 2.0) {
die "mod_perl 2.0.0 or later is now required";