Message ID | 329815af-e7e6-eddc-9fa6-58c274f44a81@suse.de |
---|---|
State | New |
Headers | show |
Series | [MAINTAINERS,committed] Remove redundant write-after-approval entries | expand |
Hi.
Thanks for the script, it also found me in Write After Approval section.
Thus I'll install following patch.
Tom what about installing the script into contrib?
Martin
From ae02963208cf24d7b0df133507a89f776b3c4599 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Tue, 12 Jun 2018 10:24:17 +0200
Subject: [PATCH] Remove me from Write After Approval.
---
MAINTAINERS | 1 -
1 file changed, 1 deletion(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 62f74a8d74e..928f5cb37ae 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -467,7 +467,6 @@ Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Renlin Li <renlin.li@arm.com>
Xinliang David Li <davidxl@google.com>
Chen Liqin <liqin.gcc@gmail.com>
-Martin Liska <mliska@suse.cz>
Jiangning Liu <jiangning.liu@arm.com>
Sa Liu <saliu@de.ibm.com>
Ralph Loader <rcl@ihug.co.nz>
[ was: Re: [MAINTAINERS, committed] Remove redundant write-after-approval entries ] On Tue, Jun 12, 2018 at 10:26:31AM +0200, Martin Liška wrote: > Hi. > > Thanks for the script, it also found me in Write After Approval section. > Thus I'll install following patch. > > Tom what about installing the script into contrib? I've renamed the script to contrib/maintainers-verify.sh. Also I've added a regression test that runs it: ... Running src/gcc/testsuite/gcc.src/maintainers.exp ... PASS: maintainers-verify.sh ... When failing (by reverting your patch on MAINTAINERS), it shows in gcc.log: ... Running src/gcc/testsuite/gcc.src/maintainers.exp ... Redundant in write approval: Martin Liska FAIL: maintainers-verify.sh ... OK for trunk? Thanks, - Tom
[ Fixed ENOPATCH ] On Tue, Jun 12, 2018 at 11:57:13AM +0200, Tom de Vries wrote: > [ was: Re: [MAINTAINERS, committed] Remove redundant write-after-approval > entries ] > > On Tue, Jun 12, 2018 at 10:26:31AM +0200, Martin Liška wrote: > > Hi. > > > > Thanks for the script, it also found me in Write After Approval section. > > Thus I'll install following patch. > > > > Tom what about installing the script into contrib? > > I've renamed the script to contrib/maintainers-verify.sh. > > Also I've added a regression test that runs it: > ... > Running src/gcc/testsuite/gcc.src/maintainers.exp ... > PASS: maintainers-verify.sh > ... > > When failing (by reverting your patch on MAINTAINERS), it shows in gcc.log: > ... > Running src/gcc/testsuite/gcc.src/maintainers.exp ... > Redundant in write approval: Martin Liska > FAIL: maintainers-verify.sh > ... > > OK for trunk? > > Thanks, > - Tom [contrib] Add contrib/maintainers-verify.sh --- contrib/maintainers-verify.sh | 45 +++++++++++++++++++++++++++++++++++ gcc/testsuite/gcc.src/maintainers.exp | 35 +++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/contrib/maintainers-verify.sh b/contrib/maintainers-verify.sh new file mode 100755 index 00000000000..226c158fdaa --- /dev/null +++ b/contrib/maintainers-verify.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +# Copyright (C) 2018 Free Software Foundation, Inc. +# +# This file is part of GCC. +# +# GCC is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GCC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. + +if [ "$1" != "" ]; then + f="$1" +else + f=./MAINTAINERS +fi + +grep @ $f \ + | sed 's/[\t][\t]*/\t/g' \ + | awk -F '\t' \ + " +{ + if (NF == 2) { + name=\$1 + email=\$2 + if (names[name] == 1) { + printf \"Redundant in write approval: %s\n\", name + } + } else if (NF == 3 ) { + name=\$2 + email=\$3 + names[name] = 1 + } +} +" diff --git a/gcc/testsuite/gcc.src/maintainers.exp b/gcc/testsuite/gcc.src/maintainers.exp new file mode 100644 index 00000000000..89a062fb7ad --- /dev/null +++ b/gcc/testsuite/gcc.src/maintainers.exp @@ -0,0 +1,35 @@ +# Copyright (C) 2018 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# <http://www.gnu.org/licenses/>. + +proc gcc_src_run_maintainers_verify_sh {} { + set script maintainers-verify.sh + + global srcdir + set rootdir $srcdir/../.. + set contrib $rootdir/contrib + + set maintainers $rootdir/MAINTAINERS + + set verify_output [exec $contrib/$script $maintainers] + if { "$verify_output" == "" } { + pass "$script" + } else { + send_log "$verify_output\n" + fail "$script" + } +} + +gcc_src_run_maintainers_verify_sh
On 12/06/18 11:03, Tom de Vries wrote: > [ Fixed ENOPATCH ] > > On Tue, Jun 12, 2018 at 11:57:13AM +0200, Tom de Vries wrote: >> [ was: Re: [MAINTAINERS, committed] Remove redundant write-after-approval >> entries ] >> >> On Tue, Jun 12, 2018 at 10:26:31AM +0200, Martin Liška wrote: >>> Hi. >>> >>> Thanks for the script, it also found me in Write After Approval section. >>> Thus I'll install following patch. >>> >>> Tom what about installing the script into contrib? >> >> I've renamed the script to contrib/maintainers-verify.sh. >> >> Also I've added a regression test that runs it: >> ... >> Running src/gcc/testsuite/gcc.src/maintainers.exp ... >> PASS: maintainers-verify.sh >> ... >> >> When failing (by reverting your patch on MAINTAINERS), it shows in gcc.log: >> ... >> Running src/gcc/testsuite/gcc.src/maintainers.exp ... >> Redundant in write approval: Martin Liska >> FAIL: maintainers-verify.sh >> ... >> >> OK for trunk? OK. R. >> >> Thanks, >> - Tom > > [contrib] Add contrib/maintainers-verify.sh > > --- > contrib/maintainers-verify.sh | 45 +++++++++++++++++++++++++++++++++++ > gcc/testsuite/gcc.src/maintainers.exp | 35 +++++++++++++++++++++++++++ > 2 files changed, 80 insertions(+) > > diff --git a/contrib/maintainers-verify.sh b/contrib/maintainers-verify.sh > new file mode 100755 > index 00000000000..226c158fdaa > --- /dev/null > +++ b/contrib/maintainers-verify.sh > @@ -0,0 +1,45 @@ > +#!/bin/sh > + > +# Copyright (C) 2018 Free Software Foundation, Inc. > +# > +# This file is part of GCC. > +# > +# GCC is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 3, or (at your option) > +# any later version. > +# > +# GCC is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with GCC; see the file COPYING. If not, write to > +# the Free Software Foundation, 51 Franklin Street, Fifth Floor, > +# Boston, MA 02110-1301, USA. > + > +if [ "$1" != "" ]; then > + f="$1" > +else > + f=./MAINTAINERS > +fi > + > +grep @ $f \ > + | sed 's/[\t][\t]*/\t/g' \ > + | awk -F '\t' \ > + " > +{ > + if (NF == 2) { > + name=\$1 > + email=\$2 > + if (names[name] == 1) { > + printf \"Redundant in write approval: %s\n\", name > + } > + } else if (NF == 3 ) { > + name=\$2 > + email=\$3 > + names[name] = 1 > + } > +} > +" > diff --git a/gcc/testsuite/gcc.src/maintainers.exp b/gcc/testsuite/gcc.src/maintainers.exp > new file mode 100644 > index 00000000000..89a062fb7ad > --- /dev/null > +++ b/gcc/testsuite/gcc.src/maintainers.exp > @@ -0,0 +1,35 @@ > +# Copyright (C) 2018 Free Software Foundation, Inc. > + > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 3 of the License, or > +# (at your option) any later version. > +# > +# This program is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with GCC; see the file COPYING3. If not see > +# <http://www.gnu.org/licenses/>. > + > +proc gcc_src_run_maintainers_verify_sh {} { > + set script maintainers-verify.sh > + > + global srcdir > + set rootdir $srcdir/../.. > + set contrib $rootdir/contrib > + > + set maintainers $rootdir/MAINTAINERS > + > + set verify_output [exec $contrib/$script $maintainers] > + if { "$verify_output" == "" } { > + pass "$script" > + } else { > + send_log "$verify_output\n" > + fail "$script" > + } > +} > + > +gcc_src_run_maintainers_verify_sh >
[MAINTAINERS] Remove redundant write-after-approval entries 2018-06-02 Tom de Vries <tdevries@suse.de> * MAINTAINERS: Remove write-after-approval entries for component maintainers. --- MAINTAINERS | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7ddd2e72df0..f9f376a6616 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -323,7 +323,6 @@ Laurynas Biveinis <laurynas.biveinis@gmail.com> Eric Blake <ericb@gcc.gnu.org> Phil Blundell <pb@futuretv.com> Hans Boehm <hboehm@gcc.gnu.org> -Segher Boessenkool <segher@kernel.crashing.org> Lynn Boger <laboger@linux.vnet.ibm.com> Ian Bolton <ian.bolton@arm.com> Andrea Bona <andrea.bona@st.com> @@ -364,13 +363,11 @@ Chris Demetriou <cgd@google.com> Sameera Deshpande <sameera.deshpande@arm.com> Wilco Dijkstra <wdijkstr@arm.com> Benoit Dupont de Dinechin <benoit.dupont-de-dinechin@st.com> -Michael Eager <eager@eagercon.com> Jason Eckhardt <jle@rice.edu> Bernd Edlinger <bernd.edlinger@hotmail.de> Phil Edwards <pme@gcc.gnu.org> Steve Ellcey <sellcey@caviumnetworks.com> Mohan Embar <gnustuff@thisiscool.com> -Ilya Enkovich <enkovich.gnu@gmail.com> Revital Eres <eres@il.ibm.com> Marc Espie <espie@cvs.openbsd.org> Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de> @@ -393,12 +390,10 @@ Gopalasubramanian Ganesh <Ganesh.Gopalasubramanian@amd.com> Kaveh Ghazi <ghazi@gcc.gnu.org> Doug Gilmore <Doug.Gilmore@imgtec.com> Matthew Gingell <gingell@gnat.com> -Tristan Gingold <gingold@adacore.com> Jan-Benedict Glaw <jbglaw@lug-owl.de> Marc Glisse <marc.glisse@inria.fr> Prachi Godbole <prachi.godbole@imgtec.com> Torbjorn Granlund <tege@swox.com> -Anthony Green <green@redhat.com> Doug Gregor <doug.gregor@gmail.com> Matthew Gretton-Dann <matthew.gretton-dann@arm.com> Yury Gribov <tetra2005@gmail.com> @@ -407,7 +402,6 @@ Laurent Guerby <laurent@guerby.net> Xuepeng Guo <terry.guo@arm.com> Wei Guozhi <carrot@google.com> Mostafa Hagog <hagog@gcc.gnu.org> -Olivier Hainque <hainque@adacore.com> Andrew Haley <aph@redhat.com> Stuart Hastings <stuart@apple.com> Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> @@ -418,7 +412,6 @@ Mark Heffernan <meheff@google.com> George Helffrich <george@gcc.gnu.org> Daniel Hellstrom <daniel@gaisler.com> Fergus Henderson <fjh@cs.mu.oz.au> -Richard Henderson <rth@twiddle.net> Stuart Henderson <shenders@gcc.gnu.org> Matthew Hiller <hiller@redhat.com> Kazu Hirata <kazu@codesourcery.com> @@ -437,8 +430,6 @@ Daniel Jacobowitz <drow@false.org> Andreas Jaeger <aj@suse.de> Harsha Jagasia <harsha.jagasia@amd.com> Fariborz Jahanian <fjahanian@apple.com> -Martin Jambor <mjambor@suse.cz> -Andrew Jenner <andrew@codesourcery.com> Janis Johnson <janis.marie.johnson@gmail.com> Teresa Johnson <tejohnson@google.com> Kean Johnston <jkj@sco.com> @@ -452,7 +443,6 @@ Andi Kleen <andi@firstfloor.org> Jeff Knaggs <jknaggs@redhat.com> Michael Koch <konqueror@gmx.de> Nicolas Koenig <koenigni@student.ethz.ch> -Kaz Kojima <kkojima@gcc.gnu.org> Boris Kolpackov <boris@codesynthesis.com> Dave Korn <dave.korn.cygwin@gmail.com> Julia Koval <julia.koval@intel.com> @@ -461,7 +451,6 @@ Jan Kratochvil <jan.kratochvil@redhat.com> Louis Krupp <louis.krupp@zoho.com> Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> Venkataramanan Kumar <venkataramanan.kumar@amd.com> -Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> Doug Kwan <dougkwan@google.com> Scott Robert Ladd <scott.ladd@coyotegulch.com> Razya Ladelsky <razya@gcc.gnu.org> @@ -486,7 +475,6 @@ Sa Liu <saliu@de.ibm.com> Ralph Loader <rcl@ihug.co.nz> Sheldon Lobo <sheldon.lobo@oracle.com Gabor Loki <loki@inf.u-szeged.hu> -Sandra Loosemore <sandra@codesourcery.com> Manuel López-Ibáñez <manu@gcc.gnu.org> Carl Love <cel@us.ibm.com> Martin v. Löwis <loewis@informatik.hu-berlin.de> @@ -494,7 +482,6 @@ H.J. Lu <hjl.tools@gmail.com> Christophe Lyon <christophe.lyon@st.com> Luis Machado <luisgpm@br.ibm.com> Ziga Mahkovec <ziga.mahkovec@klika.si> -David Malcolm <dmalcolm@redhat.com> Mikhail Maltsev <maltsevm@gmail.com> Jose E. Marchesi <jose.marchesi@oracle.com> Patrick Marlier <patrick.marlier@gmail.com> @@ -549,14 +536,12 @@ Thomas Preud'homme <thomas.preudhomme@arm.com> Vladimir Prus <vladimir@codesourcery.com> Yao Qi <yao@codesourcery.com> Jerry Quinn <jlquinn@optonline.net> -Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> Easwaran Raman <eraman@google.com> Rolf Rasmussen <rolfwr@gcc.gnu.org> Fritz Reese <fritzoreese@gmail.com> Volker Reichelt <v.reichelt@netcologne.de> Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Tom Rix <trix@redhat.com> -Pierre-Marie de Rodat <derodat@adacore.com> Craig Rodrigues <rodrigc@gcc.gnu.org> Erven Rohou <erven.rohou@inria.fr> Ira Rosen <irar@il.ibm.com> @@ -565,7 +550,6 @@ Maciej W. Rozycki <macro@linux-mips.org> Silvius Rus <rus@google.com> Matthew Sachs <msachs@apple.com> Hariharan Sandanagobalane <hariharan.gcc@gmail.com> -Iain Sandoe <iain@codesourcery.com> Duncan Sands <baldrick@gcc.gnu.org> Sujoy Saraswati <sujoy.saraswati@hpe.com> Trevor Saunders <tbsaunde+gcc@tbsaunde.org> @@ -578,7 +562,6 @@ Svein Seldal <svein@dev.seldal.com> Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> Thiemo Seufer <ths@networkno.de> Bill Seurer <seurer@linux.vnet.ibm.com> -Marcus Shawcroft <marcus.shawcroft@arm.com> Tim Shen <timshen@google.com> David Sherwood <david.sherwood@arm.com> Sharad Singhai <singhai@google.com> @@ -600,11 +583,9 @@ Andrew Sutton <andrew.n.sutton@gmail.com> Gabriele Svelto <gabriele.svelto@st.com> Toma Tabacu <toma.tabacu@imgtec.com> Sriraman Tallam <tmsriram@google.com> -Chung-Lin Tang <cltang@codesourcery.com> Samuel Tardieu <sam@rfc1149.net> Dinar Temirbulatov <dtemirbulatov@gmail.com> Kresten Krab Thorup <krab@gcc.gnu.org> -Caroline Tice <cmtice@google.com> Kai Tietz <ktietz70@googlemail.com> Ilya Tocar <tocarip@gmail.com> Philipp Tomsich <philipp.tomsich@theobroma-systems.com> @@ -623,7 +604,6 @@ Ilya Verbin <iverbin@gmail.com> Andre Vieira <andre.simoesdiasvieira@arm.com> Kugan Vivekanandarajah <kuganv@linaro.org> Ville Voutilainen <ville.voutilainen@gmail.com> -Tom de Vries <tdevries@suse.de> Nenad Vukicevic <nenad@intrepid.com> Feng Wang <fengwang@nudt.edu.cn> Jiong Wang <jiong.wang@arm.com> @@ -636,7 +616,6 @@ Edmar Wienskoski <edmar@freescale.com> Ollie Wild <aaw@google.com> Kevin Williams <kevin.williams@inria.fr> Carlo Wood <carlo@alinoe.com> -Chung-Ju Wu <jasonwucj@gmail.com> Mingjie Xing <mingjie.xing@gmail.com> Chenghua Xu <paul.hua.gm@gmail.com> Canqun Yang <canqun@nudt.edu.cn> @@ -645,7 +624,6 @@ Jeffrey Yasskin <jyasskin@google.com> Joey Ye <joey.ye@arm.com> Greta Yorsh <greta.yorsh@arm.com> David Yuste <david.yuste@gmail.com> -Kirill Yukhin <kirill.yukhin@gmail.com> Adhemerval Zanella <azanella@linux.vnet.ibm.com> Yufeng Zhang <yufeng.zhang@arm.com> Qing Zhao <qing.zhao@oracle.com>