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;
