Message ID | m3lhncz5fi.fsf@sspiff.org |
---|---|
State | New |
Headers | show |
Hi Doug, > To keep things moving along I added the copyright headers. Thanks for doing that. > However, I think we could be a bit more lax when it comes to > such trivial testcases. The FSF allows us to be lax for trivial files (with 10 lines being one explicit limit on triviality). But: The problem with being lax is that it creates a little extra work for us at the start of each year, when we update the copyright headers. The FSF has been asking us to look into copyright headers in the past, and it was a lot of work, so I've added a bit of simple-minded code to the script that updates the copyright headers in GDB to also issue a warning if a copyright header hasn't been found. That way, we can then investigate the few problematic files each year rather than a massive number when the FSF notices something. That's why I always appreciate the copyright headers being added right from the start. So, again, thanks a lot for adding those! :)
On Sat, Nov 15, 2014 at 7:22 PM, Joel Brobecker <brobecker@adacore.com> wrote: > Hi Doug, > >> To keep things moving along I added the copyright headers. > > Thanks for doing that. > >> However, I think we could be a bit more lax when it comes to >> such trivial testcases. > > The FSF allows us to be lax for trivial files (with 10 lines being > one explicit limit on triviality). But: > > The problem with being lax is that it creates a little extra work > for us at the start of each year, when we update the copyright headers. > The FSF has been asking us to look into copyright headers in the past, > and it was a lot of work, so I've added a bit of simple-minded code > to the script that updates the copyright headers in GDB to also issue > a warning if a copyright header hasn't been found. That way, we can > then investigate the few problematic files each year rather than > a massive number when the FSF notices something. > > That's why I always appreciate the copyright headers being added > right from the start. > > So, again, thanks a lot for adding those! :) No worries. A few more words added to the wiki to added the needed context and clarity would be great. I'll do that.
On Sun, Nov 16, 2014 at 1:53 PM, Doug Evans <xdje42@gmail.com> wrote: > On Sat, Nov 15, 2014 at 7:22 PM, Joel Brobecker <brobecker@adacore.com> wrote: >> Hi Doug, >> >>> To keep things moving along I added the copyright headers. >> >> Thanks for doing that. >> >>> However, I think we could be a bit more lax when it comes to >>> such trivial testcases. >> >> The FSF allows us to be lax for trivial files (with 10 lines being >> one explicit limit on triviality). But: >> >> The problem with being lax is that it creates a little extra work >> for us at the start of each year, when we update the copyright headers. >> The FSF has been asking us to look into copyright headers in the past, >> and it was a lot of work, so I've added a bit of simple-minded code >> to the script that updates the copyright headers in GDB to also issue >> a warning if a copyright header hasn't been found. That way, we can >> then investigate the few problematic files each year rather than >> a massive number when the FSF notices something. >> >> That's why I always appreciate the copyright headers being added >> right from the start. >> >> So, again, thanks a lot for adding those! :) > > No worries. > A few more words added to the wiki to added the needed context and > clarity would be great. > I'll do that. Hmmm, I see that in gdb the convention is "Copyright (C)" whereas in the gdb/testsuite the convention is "Copyright" with no "(C)". Some tests have "(C)" but the vast majority don't. Both are allowed, and I'm not planning on going through and changing anything. Just thought I'd point it out.
> Hmmm, I see that in gdb the convention is "Copyright (C)" whereas in > the gdb/testsuite the convention is "Copyright" with no "(C)". > Some tests have "(C)" but the vast majority don't. > Both are allowed, and I'm not planning on going through and changing anything. > Just thought I'd point it out. Yeah :-( - I think the prefered form is with the (C), and I wish that it was automatically added during the copyright year update. But, of course, this is not possible without the script having knowledge of the file type because it's different for files such as texi files, for instance. I might write a one-off python script specifically for that specific purpose, someday....
diff --git a/gdb/testsuite/gdb.base/symtab-search-order-1.c b/gdb/testsuite/gdb.base/symtab-search-order-1.c index bff9b7a..317b0e7 100644 --- a/gdb/testsuite/gdb.base/symtab-search-order-1.c +++ b/gdb/testsuite/gdb.base/symtab-search-order-1.c @@ -1 +1,18 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2014 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 this program. If not, see <http://www.gnu.org/licenses/>. */ + static int static_global = 23; diff --git a/gdb/testsuite/gdb.base/symtab-search-order-shlib-1.c b/gdb/testsuite/gdb.base/symtab-search-order-shlib-1.c index a23da5f..537be53 100644 --- a/gdb/testsuite/gdb.base/symtab-search-order-shlib-1.c +++ b/gdb/testsuite/gdb.base/symtab-search-order-shlib-1.c @@ -1,3 +1,20 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2014 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 this program. If not, see <http://www.gnu.org/licenses/>. */ + static int static_global = 42; int diff --git a/gdb/testsuite/gdb.base/symtab-search-order.c b/gdb/testsuite/gdb.base/symtab-search-order.c index ab38db6..ea58957 100644 --- a/gdb/testsuite/gdb.base/symtab-search-order.c +++ b/gdb/testsuite/gdb.base/symtab-search-order.c @@ -1,3 +1,20 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2014 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 this program. If not, see <http://www.gnu.org/licenses/>. */ + extern int shlib_1_func (void); int