[Bps-public-commit] Module-Install-RTx branch, master, updated. 0.39-1-gc77863e

? sunnavy sunnavy at bestpractical.com
Fri Mar 2 14:40:07 EST 2018


The branch, master has been updated
       via  c77863ee9bf624844ecce163220fae87120bb2c1 (commit)
      from  7286b2e3a9b92bc6662a715bd1b67be9edc2f2a2 (commit)

Summary of changes:
 lib/Module/Install/RTx/Runtime.pm | 1 +
 1 file changed, 1 insertion(+)

- Log -----------------------------------------------------------------
commit c77863ee9bf624844ecce163220fae87120bb2c1
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Mar 3 03:30:00 2018 +0800

    fix "make initdb" for perl 5.26+
    
    Since perl 5.26, "." is not in @INC by default, sadly RT requires "." to
    load data file like "etc/initialdata" to setup database. This commit
    fixes it by temporarily adding "." to @INC.

diff --git a/lib/Module/Install/RTx/Runtime.pm b/lib/Module/Install/RTx/Runtime.pm
index 318e8c6..cec9105 100644
--- a/lib/Module/Install/RTx/Runtime.pm
+++ b/lib/Module/Install/RTx/Runtime.pm
@@ -50,6 +50,7 @@ sub RTxDatabase {
         push @args, "--package" => $name;
     }
 
+    local $ENV{PERL_USE_UNSAFE_INC} = 1;
     print "$^X @args\n";
     (system($^X, @args) == 0) or die "...returned with error: $?\n";
 }

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list