Add some of my local changes as patch, as they affect probably every SUSE system. OBS-URL: https://build.opensuse.org/request/show/400889 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Apache-Gallery?expand=0&rev=1
15 lines
606 B
Diff
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";
|