[rt-devel] RTx::Calendar bug and accompanying patch?

Martin Wheldon martin.wheldon at greenhills-it.co.uk
Tue Apr 23 04:14:13 EDT 2013


Hi,

I've just installed RTx::Calendar on a Debian Wheezy box using the 
Debian packeged Digest::SHA perl module.
When I select the preferences link the module complains it is unable to 
find the Digest::SHA1 module.

The following patch fixes the issue:

--- a/html/Prefs/Calendar.html
+++ b/html/Prefs/Calendar.html
@@ -99,7 +99,13 @@ href="<%$RT::WebPath . '/Search/Build.html'%>">the 
Query Builder</a>
  </&>

  <%INIT>
-use Digest::SHA1;
+# Patch for Debian Wheezy modules
+# Attempt to load module SHA1 else try SHA
+if  (eval {require Digest::SHA1;1;} ne 1) {
+} else {
+Digest::SHA->import();
+}
+
  use RT::SavedSearches;

  my $title = loc("Calendar Prefs");


Best Regards

-- 
Martin Wheldon
Greenhills IT Ltd.

Greenhills IT Ltd. is a limited company registered in England and 
Wales.
Company Registration No: 06387214
Registered Offices: 2 Greenhills, Claxton, YORK, North Yorkshire, YO60 
7SA




More information about the rt-devel mailing list