[packages/rt] - rel 2; fix perl 5.26 warning which rt treats as error

arekm arekm at pld-linux.org
Tue Sep 12 08:40:10 CEST 2017


commit a0d2566b38308f21747ea7cb85702ef40eb06d65
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Sep 12 08:40:02 2017 +0200

    - rel 2; fix perl 5.26 warning which rt treats as error

 rt-perl.patch | 19 +++++++++++++++++++
 rt.spec       |  4 +++-
 2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/rt.spec b/rt.spec
index ad37978..42c2bb4 100644
--- a/rt.spec
+++ b/rt.spec
@@ -45,7 +45,7 @@ Summary:	Request Tracker
 Summary(pl.UTF-8):	Request Tracker - system do śledzenia zleceń
 Name:		rt
 Version:	4.4.2
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Applications
 Source0:	http://download.bestpractical.com/pub/rt/release/%{name}-%{version}.tar.gz
@@ -57,6 +57,7 @@ Source4:	%{name}.logrotate
 Source5:	lighttpd.conf
 Patch0:		%{name}-layout.patch
 Patch1:		%{name}-config.patch
+Patch2:		%{name}-perl.patch
 URL:		http://www.bestpractical.com/rt/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -319,6 +320,7 @@ Pliki wspomagające używanie RT z Apache.
 %setup -q
 %patch0 -p0
 %patch1 -p1
+%patch2 -p1
 
 mv aclocal.m4 acinclude.m4
 
diff --git a/rt-perl.patch b/rt-perl.patch
new file mode 100644
index 0000000..619c9a7
--- /dev/null
+++ b/rt-perl.patch
@@ -0,0 +1,19 @@
+commit 971daa20cf2e05d3829217e868acae034296a912
+Author: Dominic Hargreaves <dom at earth.li>
+Date:   Mon Jun 19 19:29:42 2017 +0100
+
+    Fix "Unescaped left brace in regex" warning in perl 5.26
+
+diff --git a/share/html/Search/Elements/EditSort b/share/html/Search/Elements/EditSort
+index 4ab08002f..4853e17f2 100644
+--- a/share/html/Search/Elements/EditSort
++++ b/share/html/Search/Elements/EditSort
+@@ -119,7 +119,7 @@ $fields{$_} = $_ for @cfs;
+ # Add all available CustomRoles to the list of sortable columns.
+ my @roles = grep /^CustomRole/, @{$ARGS{AvailableColumns}};
+ for my $role (@roles) {
+-    my ($label) = $role =~ /^CustomRole.{(.*)}$/;
++    my ($label) = $role =~ /^CustomRole.\{(.*)\}$/;
+     my $value = $role;
+     $fields{$label . '.EmailAddress' } = $value . '.EmailAddress';
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rt.git/commitdiff/a0d2566b38308f21747ea7cb85702ef40eb06d65



More information about the pld-cvs-commit mailing list