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
|
From bced9f01114884a9464e718dce1f9374aeebe17d Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <dom@earth.li>
Date: Sun, 9 Sep 2018 21:35:08 +0100
Subject: Force the use of Cpanel::JSON::XS
JSON::XS breaks RT due to the removed from_json/to_json methods and JSON.pm
prefers JSON::XS to our preferred implementation Cpanel::JSON::XS by
default.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848041
Patch-Name: use_cpanel_json_xs.diff
---
lib/RT/Interface/Web.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index e31d6291..41c00816 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -64,6 +64,10 @@ use 5.010;
package RT::Interface::Web;
+# Debian modification; see
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848041
+BEGIN { $ENV{PERL_JSON_BACKEND}='Cpanel::JSON::XS'; }
+
use RT::SavedSearches;
use RT::CustomRoles;
use URI qw();
|