From: Ian Campbell <ian.campbell@citrix.com>
To: Olaf Hering <olaf@aepfle.de>, xen-devel@lists.xen.org
Cc: Keir Fraser <keir@xen.org>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Jan Beulich <jbeulich@suse.com>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCH] get_maintainer: fix perl 5.22/5.24 deprecated/incompatible "\C" use
Date: Tue, 24 Nov 2015 16:52:48 +0000 [thread overview]
Message-ID: <1448383968.26412.64.camel@citrix.com> (raw)
In-Reply-To: <1447922633-23439-1-git-send-email-olaf@aepfle.de>
On Thu, 2015-11-19 at 08:43 +0000, Olaf Hering wrote:
> From: Joe Perches <joe@perches.com>
>
> Perl 5.22 emits a deprecated message when "\C" is used in a regex. Perl
> 5.24 will disallow it altogether.
>
> Fix it by using [A-Z] instead of \C.
They aren't quite equivalent, but [A-Z] suffices for the usage here.
> [ Upstream commit ce8155f7a3d59ce868ea16d8891edda4d865e873 ]
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked + applied.
> Cc: Ian Campbell <ian.campbell@citrix.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Keir Fraser <keir@xen.org>
> Cc: Tim Deegan <tim@xen.org>
> ---
> scripts/get_maintainer.pl | 22 +++++++++++-----------
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
> index cc445cd..9fda278 100755
> --- a/scripts/get_maintainer.pl
> +++ b/scripts/get_maintainer.pl
> @@ -277,7 +277,7 @@ open (my $maint, '<', "${xen_path}MAINTAINERS")
> while (<$maint>) {
> my $line = $_;
>
> - if ($line =~ m/^(\C):\s*(.*)/) {
> + if ($line =~ m/^([A-Z]):\s*(.*)/) {
> my $type = $1;
> my $value = $2;
>
> @@ -512,7 +512,7 @@ sub range_is_maintained {
>
> for (my $i = $start; $i < $end; $i++) {
> my $line = $typevalue[$i];
> - if ($line =~ m/^(\C):\s*(.*)/) {
> + if ($line =~ m/^([A-Z]):\s*(.*)/) {
> my $type = $1;
> my $value = $2;
> if ($type eq 'S') {
> @@ -530,7 +530,7 @@ sub range_has_maintainer {
>
> for (my $i = $start; $i < $end; $i++) {
> my $line = $typevalue[$i];
> - if ($line =~ m/^(\C):\s*(.*)/) {
> + if ($line =~ m/^([A-Z]):\s*(.*)/) {
> my $type = $1;
> my $value = $2;
> if ($type eq 'M') {
> @@ -579,7 +579,7 @@ sub get_maintainers {
>
> for ($i = $start; $i < $end; $i++) {
> my $line = $typevalue[$i];
> - if ($line =~ m/^(\C):\s*(.*)/) {
> + if ($line =~ m/^([A-Z]):\s*(.*)/) {
> my $type = $1;
> my $value = $2;
> if ($type eq 'X') {
> @@ -594,7 +594,7 @@ sub get_maintainers {
> if (!$exclude) {
> for ($i = $start; $i < $end; $i++) {
> my $line = $typevalue[$i];
> - if ($line =~ m/^(\C):\s*(.*)/) {
> + if ($line =~ m/^([A-Z]):\s*(.*)/) {
> my $type = $1;
> my $value = $2;
> if ($type eq 'F') {
> @@ -897,7 +897,7 @@ sub find_first_section {
>
> while ($index < @typevalue) {
> my $tv = $typevalue[$index];
> - if (($tv =~ m/^(\C):\s*(.*)/)) {
> + if (($tv =~ m/^([A-Z]):\s*(.*)/)) {
> last;
> }
> $index++;
> @@ -911,7 +911,7 @@ sub find_starting_index {
>
> while ($index > 0) {
> my $tv = $typevalue[$index];
> - if (!($tv =~ m/^(\C):\s*(.*)/)) {
> + if (!($tv =~ m/^([A-Z]):\s*(.*)/)) {
> last;
> }
> $index--;
> @@ -925,7 +925,7 @@ sub find_ending_index {
>
> while ($index < @typevalue) {
> my $tv = $typevalue[$index];
> - if (!($tv =~ m/^(\C):\s*(.*)/)) {
> + if (!($tv =~ m/^([A-Z]):\s*(.*)/)) {
> last;
> }
> $index++;
> @@ -951,7 +951,7 @@ sub get_maintainer_role {
>
> for ($i = $start + 1; $i < $end; $i++) {
> my $tv = $typevalue[$i];
> - if ($tv =~ m/^(\C):\s*(.*)/) {
> + if ($tv =~ m/^([A-Z]):\s*(.*)/) {
> my $ptype = $1;
> my $pvalue = $2;
> if ($ptype eq "S") {
> @@ -1010,7 +1010,7 @@ sub add_categories {
>
> for ($i = $start + 1; $i < $end; $i++) {
> my $tv = $typevalue[$i];
> - if ($tv =~ m/^(\C):\s*(.*)/) {
> + if ($tv =~ m/^([A-Z]):\s*(.*)/) {
> my $ptype = $1;
> my $pvalue = $2;
> if ($ptype eq "L") {
> @@ -1052,7 +1052,7 @@ sub add_categories {
> if ($name eq "") {
> if ($i > 0) {
> my $tv = $typevalue[$i - 1];
> - if ($tv =~ m/^(\C):\s*(.*)/) {
> + if ($tv =~ m/^([A-Z]):\s*(.*)/) {
> if ($1 eq "P") {
> $name = $2;
> $pvalue = format_email($name, $address,
> $email_usename);
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-11-24 16:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 8:43 [PATCH] get_maintainer: fix perl 5.22/5.24 deprecated/incompatible "\C" use Olaf Hering
2015-11-24 16:52 ` Ian Campbell [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-19 0:47 [PATCH] get_maintainer: Fix " Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448383968.26412.64.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=olaf@aepfle.de \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.