diff mbox

Fix MAINTAINERS: remove any use of {a,b}

Message ID 1456402911-14710-1-git-send-email-anthony.perard@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Anthony PERARD Feb. 25, 2016, 12:21 p.m. UTC
This is the complain from perl:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

Also, it does not work.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 MAINTAINERS | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Comments

Jan Beulich Feb. 25, 2016, 12:31 p.m. UTC | #1
>>> On 25.02.16 at 13:21, <anthony.perard@citrix.com> wrote:
> This is the complain from perl:
> Unescaped left brace in regex is deprecated, passed through in regex; marked 
> by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at 
> scripts/get_maintainer.pl line 731.
> 
> Also, it does not work.

But who said these are (expected to be) regex patterns? At the
top of the file, only K: is described as holding such. F:, otoh,
refers to wildcards, which {x,y} is kind of an extension of, so I'd
rather keep things as they are.

Jan

> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> ---
>  MAINTAINERS | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index db14cfe..cc44cbd 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -212,7 +212,8 @@ F:	xen/include/xen/iommu.h
>  KCONFIG
>  M:	Doug Goldstein <cardoe@cardoe.com>
>  S:	Supported
> -F:	docs/misc/kconfig{,-language}.txt
> +F:	docs/misc/kconfig.txt
> +F:	docs/misc/kconfig-language.txt
>  F:	xen/tools/kconfig/
>  
>  KDD DEBUGGER
> @@ -223,8 +224,10 @@ F:	tools/debugger/kdd/
>  KEXEC
>  M:      David Vrabel <david.vrabel@citrix.com>
>  S:      Supported
> -F:      xen/common/{kexec,kimage}.c
> -F:      xen/include/{kexec,kimage}.h
> +F:      xen/common/kexec.c
> +F:      xen/common/kimage.c
> +F:      xen/include/kexec.h
> +F:      xen/include/kimage.h
>  F:      xen/arch/x86/machine_kexec.c
>  F:      xen/arch/x86/x86_64/kexec_reloc.S
>  
> -- 
> Anthony PERARD
Ian Campbell Feb. 25, 2016, 12:34 p.m. UTC | #2
On Thu, 2016-02-25 at 05:31 -0700, Jan Beulich wrote:
> > > > On 25.02.16 at 13:21, <anthony.perard@citrix.com> wrote:
> > This is the complain from perl:
> > Unescaped left brace in regex is deprecated, passed through in regex;
> > marked 
> > by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at 
> > scripts/get_maintainer.pl line 731.
> > 
> > Also, it does not work.
> 
> But who said these are (expected to be) regex patterns?

I expect this is a bug in get_maintainer.pl's regexes for parsing the file,
not that the field itself is expected to be a regex.

Ian
David Vrabel Feb. 25, 2016, 12:51 p.m. UTC | #3
On 25/02/16 12:21, Anthony PERARD wrote:
> This is the complain from perl:
> Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

F: is supposed to be globs, not regexes, I thought but...

> Also, it does not work.

> @@ -223,8 +224,10 @@ F:	tools/debugger/kdd/
>  KEXEC
>  M:      David Vrabel <david.vrabel@citrix.com>
>  S:      Supported
> -F:      xen/common/{kexec,kimage}.c
> -F:      xen/include/{kexec,kimage}.h
> +F:      xen/common/kexec.c
> +F:      xen/common/kimage.c
> +F:      xen/include/kexec.h
> +F:      xen/include/kimage.h
>  F:      xen/arch/x86/machine_kexec.c
>  F:      xen/arch/x86/x86_64/kexec_reloc.S

... I prefer this way of listing files since it's easier for humans to
parse.

Acked-by: David Vrabel <david.vrabel@citrix.com>

David
Anthony PERARD Feb. 25, 2016, 1:05 p.m. UTC | #4
On Thu, Feb 25, 2016 at 12:34:43PM +0000, Ian Campbell wrote:
> On Thu, 2016-02-25 at 05:31 -0700, Jan Beulich wrote:
> > > > > On 25.02.16 at 13:21, <anthony.perard@citrix.com> wrote:
> > > This is the complain from perl:
> > > Unescaped left brace in regex is deprecated, passed through in regex;
> > > marked 
> > > by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at 
> > > scripts/get_maintainer.pl line 731.
> > > 
> > > Also, it does not work.
> > 
> > But who said these are (expected to be) regex patterns?
> 
> I expect this is a bug in get_maintainer.pl's regexes for parsing the file,
> not that the field itself is expected to be a regex.

I would say that it's a missing feature of get_maintainer.pl. It understand
. * and ?, and I guess also [].

I can try to handle {,} in get_maintainer.pl if you wish.
Douglas Goldstein Feb. 25, 2016, 2:16 p.m. UTC | #5
On 2/25/16 6:21 AM, Anthony PERARD wrote:
> This is the complain from perl:
> Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.
> 
> Also, it does not work.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> ---
>  MAINTAINERS | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index db14cfe..cc44cbd 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -212,7 +212,8 @@ F:	xen/include/xen/iommu.h
>  KCONFIG
>  M:	Doug Goldstein <cardoe@cardoe.com>
>  S:	Supported
> -F:	docs/misc/kconfig{,-language}.txt
> +F:	docs/misc/kconfig.txt
> +F:	docs/misc/kconfig-language.txt
>  F:	xen/tools/kconfig/
>  

I copied David's section so I assumed it was ok. But this is fine by me.

Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
diff mbox

Patch

diff --git a/MAINTAINERS b/MAINTAINERS
index db14cfe..cc44cbd 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -212,7 +212,8 @@  F:	xen/include/xen/iommu.h
 KCONFIG
 M:	Doug Goldstein <cardoe@cardoe.com>
 S:	Supported
-F:	docs/misc/kconfig{,-language}.txt
+F:	docs/misc/kconfig.txt
+F:	docs/misc/kconfig-language.txt
 F:	xen/tools/kconfig/
 
 KDD DEBUGGER
@@ -223,8 +224,10 @@  F:	tools/debugger/kdd/
 KEXEC
 M:      David Vrabel <david.vrabel@citrix.com>
 S:      Supported
-F:      xen/common/{kexec,kimage}.c
-F:      xen/include/{kexec,kimage}.h
+F:      xen/common/kexec.c
+F:      xen/common/kimage.c
+F:      xen/include/kexec.h
+F:      xen/include/kimage.h
 F:      xen/arch/x86/machine_kexec.c
 F:      xen/arch/x86/x86_64/kexec_reloc.S