File: 0010_mod_perl2.patch

package info (click to toggle)
libapache-gallery-perl 1.0.2-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,260 kB
  • sloc: perl: 1,281; sh: 21; makefile: 13
file content (20 lines) | stat: -rw-r--r-- 551 bytes parent folder | download
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;