Mail archive
alpine-aports

[alpine-aports] [PATCH] community/rt4: fix perl warning messages

From: Kory Prince <korylprince_at_gmail.com>
Date: Mon, 26 Mar 2018 09:41:05 -0500

Fix #8739 by cherry-picking upstream 971daa20c
This patch should be removed on the next rt4 release
This patch should be applied after issue #8738 patch.
---
 ...ped-left-brace-in-regex-warning-in-perl-5.patch | 25 ++++++++++++++++++++++
 community/rt4/APKBUILD                             |  2 ++
 2 files changed, 27 insertions(+)
 create mode 100644 community/rt4/0001-Fix-Unescaped-left-brace-in-regex-warning-in-perl-5.patch
diff --git a/community/rt4/0001-Fix-Unescaped-left-brace-in-regex-warning-in-perl-5.patch b/community/rt4/0001-Fix-Unescaped-left-brace-in-regex-warning-in-perl-5.patch
new file mode 100644
index 0000000000..27756f82c0
--- /dev/null
+++ b/community/rt4/0001-Fix-Unescaped-left-brace-in-regex-warning-in-perl-5.patch
_at_@ -0,0 +1,25 @@
+From c50856a0807b118e27af890b1c53b93c81158459 Mon Sep 17 00:00:00 2001
+From: Dominic Hargreaves <dom_at_earth.li>
+Date: Mon, 19 Jun 2017 19:29:42 +0100
+Subject: [PATCH] Fix "Unescaped left brace in regex" warning in perl 5.26
+
+---
+ share/html/Search/Elements/EditSort | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+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
+_at_@ -119,7 +119,7 @@ $fields{$_} = $_ for @cfs;
+ # Add all available CustomRoles to the list of sortable columns.
+ my _at_roles = grep /^CustomRole/, @{$ARGS{AvailableColumns}};
+ for my $role (_at_roles) {
+-    my ($label) = $role =~ /^CustomRole.{(.*)}$/;
++    my ($label) = $role =~ /^CustomRole.\{(.*)\}$/;
+     my $value = $role;
+     $fields{$label . '.EmailAddress' } = $value . '.EmailAddress';
+ }
+-- 
+2.15.1
+
diff --git a/community/rt4/APKBUILD b/community/rt4/APKBUILD
index 661cac47b2..36b2bfd43c 100644
--- a/community/rt4/APKBUILD
+++ b/community/rt4/APKBUILD
_at_@ -106,6 +106,7 @@ makedepends="autoconf"
 install="$pkgname.pre-install $pkgname.pre-upgrade"
 source="https://download.bestpractical.com/pub/rt/release/rt-$pkgver.tar.gz
 	0001-email-allow-envelope-from-overriding-from-templates.patch
+    0001-Fix-Unescaped-left-brace-in-regex-warning-in-perl-5.patch
 	rt-varpath.patch
 	rt-autoconf-version.patch
 	"
_at_@ -176,5 +177,6 @@ package() {
 
 sha512sums="23e318d10c49d39c1542664efa2b9f98d1dcd613c279dc8ceca0ad9aed89a5d989316e833492ed3281543ec85f6e0f5141a86f70852776bf0d54166aa126431e  rt-4.4.2.tar.gz
 b88f6a6c42510c6e95f4d206b93d5dcea001622619edc212018edd7f36c20a24acf812acf8f09dcb3413fcb1733b53ce3072c2097cdc18812e3a978ea04218d0  0001-email-allow-envelope-from-overriding-from-templates.patch
+c5c678bfea612fda984107ea62dc9371c33864f1a28fad4239671ee807c89911ca7f74f5c56076932abb1ea4bebccfabb3731d6082048f255eaa3e2558b0ac92  0001-Fix-Unescaped-left-brace-in-regex-warning-in-perl-5.patch
 62308220d00e11059491533e87fb7378226609fcef332c31b2db75ba32bbbf3343cd0eb7fd53288f62700ee456669f216bd78550fb1cd7e5d4fe85ef41976c0c  rt-varpath.patch
 cac79f231e1b1915962de8e4a86812fcaa0f1f64384a34557fac860c0fb0ae33d5dfd2371c30c07310391735e7348022e62bd5d453674a41ac7e77865d79dab9  rt-autoconf-version.patch"
-- 
2.15.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Mar 26 2018 - 09:41:05 GMT