File: fix-Makefile.PL-for-running-without-PERL_USE_UNSAFE_INC.patch

package info (click to toggle)
libembperl-perl 2.5.0-12%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,416 kB
  • sloc: ansic: 21,384; perl: 14,496; javascript: 4,280; cpp: 467; xml: 49; makefile: 33; sh: 24
file content (46 lines) | stat: -rw-r--r-- 995 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Description: Fix Makefile.PL and others for running without PERL_USE_UNSAFE_INC
 Needed for newer debhelper compatibility levels as well as likely
 also for future Perl releases.
Author: Axel Beckert <abe@debian.org>
Forwarded: no

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -634,7 +634,7 @@
     }
 
 
-eval 'do "test/conf/config.pl"' ;
+eval 'do "./test/conf/config.pl"' ;
 
 
 if (!$apache && $apache_src eq '')
@@ -1313,7 +1313,7 @@
     foreach my $makepl (@makefiles)
         {
         #print "Exec driver/$makepl\n" ;
-        my $result = do "driver/$makepl" ;
+        my $result = do "./driver/$makepl" ;
         if ($@)
             {
             print $@ ;
--- a/test.pl
+++ b/test.pl
@@ -1318,7 +1318,7 @@
 
 
 
-$confpath = 'test/conf' ;
+$confpath = './test/conf' ;
 
 
 #### read config ####
@@ -1423,7 +1423,7 @@
 $vmhttpdsize = 0 ;
 $vmhttpdinitsize = 0 ;
 
-require 'test/testapp.pl' ;
+require './test/testapp.pl' ;
 
 
 #####################################################