1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Set MOD_PERL_API_VERSION=2 in module.
There hasn't been any mod_perl 1 for a long time in Debian, and setting the
environment variable everywhere is tedious or impossible (like for
autopkgtests).
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-10-08
--- a/lib/Apache/Gallery.pm
+++ b/lib/Apache/Gallery.pm
@@ -11,6 +11,8 @@
BEGIN {
+local $ENV{MOD_PERL_API_VERSION} = 2;
+
if (exists($ENV{MOD_PERL_API_VERSION})
and ($ENV{MOD_PERL_API_VERSION}==2)) {
require mod_perl2;
|