public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Ping: unreviewed copyright patches
@ 2013-02-03 10:19 Richard Sandiford
  2013-02-03 16:39 ` Bruce Korb
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Richard Sandiford @ 2013-02-03 10:19 UTC (permalink / raw)
  To: gcc-patches; +Cc: bkorb, ian, bje

Not exactly the most exciting patches, and certainly not worth more than
one ping, but:

  fixincludes copyright
  http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00442.html
  http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00443.html

  libgcc copyright
  http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00642.html

  libdecnumber copyright
  http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00647.html

Thanks,
Richard

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-03 10:19 Ping: unreviewed copyright patches Richard Sandiford
@ 2013-02-03 16:39 ` Bruce Korb
  2013-02-03 17:42   ` Richard Sandiford
  2013-02-03 21:00 ` Ben Elliston
  2013-02-04  4:58 ` Ian Lance Taylor
  2 siblings, 1 reply; 12+ messages in thread
From: Bruce Korb @ 2013-02-03 16:39 UTC (permalink / raw)
  To: gcc-patches, ian, bje, rdsandiford

On 02/03/13 02:19, Richard Sandiford wrote:
> Not exactly the most exciting patches, and certainly not worth more than
> one ping, but:
> 
>   fixincludes copyright
>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00442.html

You missed the file header.  Why bother with dual update issues?

> --- mkheaders.in        (revision 194742)                                         
> +++ mkheaders.in        (working copy)                                            
> @@ -1,6 +1,6 @@                                                                   
>  #!/bin/sh                                                                        
>                                                                                   
> -# Copyright (C) 2002, 2007, 2009 Free Software Foundation, Inc.                  
> +# GCC Copyright (C) 2002-2013 Free Software Foundation, Inc.                     
>                                                                                   
>  #This file is part of GCC.                                                       
>                                                                                   
> @@ -41,10 +41,9 @@                                                                
>                                                                                   
>  if [ x$1 = x--version ] ; then                                                   
>      echo "mkheaders (GCC) version $version"                                      
> -    echo "Copyright 2002, 2007, 2009 Free Software Foundation, Inc."             
> -    echo "This program is free software; you may redistribute it under the"      
> -    echo "terms of the GNU General Public License.  This program has"            
> -    echo "absolutely no warranty."                                               
> +    sed '\@http://www.gnu.org/licenses@q                                         
> +       \@/bin/sh@d                                                               
> +       s/^#* *//' `which $0`                                                       
>      exit 0                                                                       
>  fi

Alternatively (and probably better):

> --- mkheaders.in        (revision 194742)
> +++ mkheaders.in        (working copy)
> @@ -1,22 +1,22 @@
>  #!/bin/sh
> +copyright='
> +GCC Copyright (C) 2002-2013 Free Software Foundation, Inc.
>  
> -# Copyright (C) 2002, 2007, 2009 Free Software Foundation, Inc.
> +This file is part of GCC.
>  
> -#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 COPYING3.  If not see
> -#<http://www.gnu.org/licenses/>.
> +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 COPYING3.  If not see
> +<http://www.gnu.org/licenses/>.'
>  
>  # Basic information
>  target=@target@
> @@ -41,10 +41,7 @@
>  
>  if [ x$1 = x--version ] ; then
>      echo "mkheaders (GCC) version $version"
> -    echo "Copyright 2002, 2007, 2009 Free Software Foundation, Inc."
> -    echo "This program is free software; you may redistribute it under the"
> -    echo "terms of the GNU General Public License.  This program has"
> -    echo "absolutely no warranty."
> +    echo "$copyright"
>      exit 0
>  fi
>  

Either way....

===========================================================

>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00443.html

Is the project fixincludes, inclhack, gcc or unnamed?
I think if you go to the trouble to clean all this up,
one should be picked and it should be made consistent.  :)
Personally, I think "GCC" first, "fixincludes" second.

> Index: gcc/fixincludes/fixinc.in
> ===================================================================
> --- gcc.orig/fixincludes/fixinc.in
> +++ gcc/fixincludes/fixinc.in
> @@ -6,8 +6,7 @@
>  #
>  # See README-fixinc for more information.
>  #
> -#  fixincludes copyright (c) 1998, 1999, 2000, 2002, 2009
> -#  The Free Software Foundation, Inc.
> +#  fixincludes copyright (C) 1998-2013 Free Software Foundation, Inc.
>  #
>  # fixincludes is free software.
>  # 
> Index: gcc/fixincludes/fixincl.c
> ===================================================================
> --- gcc.orig/fixincludes/fixincl.c
> +++ gcc/fixincludes/fixincl.c
> @@ -2,8 +2,7 @@
>     files which are fixed to work correctly with ANSI C and placed in a
>     directory that GCC will search.
>  
> -   Copyright (C) 1997, 1998, 1999, 2000, 2004, 2009, 2012
> -   Free Software Foundation, Inc.
> +   Copyright (C) 1997-2013 Free Software Foundation, Inc.
>  
>  This file is part of GCC.
>  
> Index: gcc/fixincludes/fixincl.tpl
> ===================================================================
> --- gcc.orig/fixincludes/fixincl.tpl
> +++ gcc/fixincludes/fixincl.tpl
> @@ -18,9 +18,7 @@ x=fixincl.x =]
>   *
>   * See README for more information.
>   *
> - *  inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
> - *                         2006, 2007, 2008
> - *  The Free Software Foundation, Inc.
> + *  inclhack copyright (C) 1998-2013 Free Software Foundation, Inc.
>   *
>   *  inclhack is free software: you can redistribute it and/or modify it
>   *  under the terms of the GNU General Public License as published by the

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-03 16:39 ` Bruce Korb
@ 2013-02-03 17:42   ` Richard Sandiford
  2013-02-03 19:45     ` Bruce Korb
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Sandiford @ 2013-02-03 17:42 UTC (permalink / raw)
  To: Bruce Korb; +Cc: gcc-patches

Bruce Korb <bkorb@gnu.org> writes:
> On 02/03/13 02:19, Richard Sandiford wrote:
>> Not exactly the most exciting patches, and certainly not worth more than
>> one ping, but:
>> 
>>   fixincludes copyright
>>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00442.html
>
> You missed the file header.

That was deliberately in patch 2 though.

> Why bother with dual update issues?

Well, the point is that patch 2 is scripted.  Running the script as-is
would update both the header and version output.  That's actually what
I did in the original patch I posted back in January.  However, Joseph
pointed out that mkheaders should only print the last year rather than a
list of years or a range of years (apparently that's GNU policy):

   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00320.html

so patch 1 was supposed to be changing that first.

In other words, the copyright= suggestion seemed to be about having
the same string in both the headers and output, which is what you
also get by running the script.  But apparently the copyright notice
in the file header and the copyright notice that we print are supposed
to be different.

>>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00443.html
>
> Is the project fixincludes, inclhack, gcc or unnamed?
> I think if you go to the trouble to clean all this up,
> one should be picked and it should be made consistent.  :)

OK, fair enough.  I guess I'll withdraw the fixincludes bits.

Believe me, I don't find copyright year lists vs. ranges any more
interesting than the next man.  This really was supposed to be
an attempt to make things simpler. :-)

Thanks,
Richard

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-03 17:42   ` Richard Sandiford
@ 2013-02-03 19:45     ` Bruce Korb
  0 siblings, 0 replies; 12+ messages in thread
From: Bruce Korb @ 2013-02-03 19:45 UTC (permalink / raw)
  To: gcc-patches, rdsandiford

On 02/03/13 09:42, Richard Sandiford wrote:
>> You missed the file header.
> 
> That was deliberately in patch 2 though.

OK.

>> Why bother with dual update issues?
> 
> Well, the point is that patch 2 is scripted.

OK:
>  echo "$copyright" | sed 's/(C) 2002-/(C) /'

and now you print the right date and never have to hand update again.
And if the notice gets changed because of a new and better address
or whatever, just one place and not two.

I hate hand updating mind numbing stuff like this.  As you say:

> Believe me, I don't find copyright year lists vs. ranges any more
> interesting than the next man.  This really was supposed to be
> an attempt to make things simpler.

"simpler" as in trying to never have to think about it any more? :)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-03 10:19 Ping: unreviewed copyright patches Richard Sandiford
  2013-02-03 16:39 ` Bruce Korb
@ 2013-02-03 21:00 ` Ben Elliston
  2013-02-04 18:59   ` Richard Sandiford
  2013-02-04  4:58 ` Ian Lance Taylor
  2 siblings, 1 reply; 12+ messages in thread
From: Ben Elliston @ 2013-02-03 21:00 UTC (permalink / raw)
  To: gcc-patches, bkorb, ian, rdsandiford

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

On Sun, Feb 03, 2013 at 10:19:47AM +0000, Richard Sandiford wrote:

>   libdecnumber copyright
>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00647.html

I've refreshed my memory on the use of year ranges in the copyright
notice (http://www.gnu.org/licenses/gpl-howto.html).  Looking at the
ChangeLog, I think it's reasonable to assert copyright for 2005-2011,
but not 2012 or 2013.

I am happy with the change if the copyright is updated from
(firstyear-for-the-file) to 2011.

Cheers, Ben

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-03 10:19 Ping: unreviewed copyright patches Richard Sandiford
  2013-02-03 16:39 ` Bruce Korb
  2013-02-03 21:00 ` Ben Elliston
@ 2013-02-04  4:58 ` Ian Lance Taylor
  2013-02-04 19:08   ` Richard Sandiford
  2 siblings, 1 reply; 12+ messages in thread
From: Ian Lance Taylor @ 2013-02-04  4:58 UTC (permalink / raw)
  To: gcc-patches, bkorb, ian, bje, rdsandiford

On Sun, Feb 3, 2013 at 2:19 AM, Richard Sandiford
<rdsandiford@googlemail.com> wrote:
> Not exactly the most exciting patches, and certainly not worth more than
> one ping, but:
>
>   libgcc copyright
>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00642.html

This is OK.

Thanks.

Don't these count as obvious at this point?

Ian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-03 21:00 ` Ben Elliston
@ 2013-02-04 18:59   ` Richard Sandiford
  2013-02-04 19:55     ` Ben Elliston
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Sandiford @ 2013-02-04 18:59 UTC (permalink / raw)
  To: Ben Elliston; +Cc: gcc-patches, bkorb, ian

Ben Elliston <bje@air.net.au> writes:
> On Sun, Feb 03, 2013 at 10:19:47AM +0000, Richard Sandiford wrote:
>
>>   libdecnumber copyright
>>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00647.html
>
> I've refreshed my memory on the use of year ranges in the copyright
> notice (http://www.gnu.org/licenses/gpl-howto.html).  Looking at the
> ChangeLog, I think it's reasonable to assert copyright for 2005-2011,
> but not 2012 or 2013.

These days the guideline encourage updating all files, even ones that
haven't changed, so I was hoping we could do that gcc-wide.  The idea of
sending per-directory patches was to vet the output of the update script
so that hopefully we can use it again next year with a bit less fuss.
So in a way, an "OK" to this patch would be an OK to add 2014 in 2014,
etc.

It sounds like you'd prefer we didn't do that, which is certainly OK with me.
We can always add libdecnumber to the list in future if things change.

Thanks,
Richard

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-04  4:58 ` Ian Lance Taylor
@ 2013-02-04 19:08   ` Richard Sandiford
  0 siblings, 0 replies; 12+ messages in thread
From: Richard Sandiford @ 2013-02-04 19:08 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-patches, bkorb, ian, bje

Ian Lance Taylor <iant@google.com> writes:
> On Sun, Feb 3, 2013 at 2:19 AM, Richard Sandiford
> <rdsandiford@googlemail.com> wrote:
>> Not exactly the most exciting patches, and certainly not worth more than
>> one ping, but:
>>
>>   libgcc copyright
>>   http://gcc.gnu.org/ml/gcc-patches/2013-01/msg00642.html
>
> This is OK.

Thanks!

> Don't these count as obvious at this point?

Well, I think the idea behind asking me to send per-directory patches
was so that people could check that I was updating the right things.
OKness for one directory wouldn't really carry over to another.

But I'm glad to say this is the last of the patches anyway.

Richard

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-04 18:59   ` Richard Sandiford
@ 2013-02-04 19:55     ` Ben Elliston
  2013-02-04 20:12       ` Bruce Korb
  0 siblings, 1 reply; 12+ messages in thread
From: Ben Elliston @ 2013-02-04 19:55 UTC (permalink / raw)
  To: gcc-patches, bkorb, ian, rdsandiford

[-- Attachment #1: Type: text/plain, Size: 378 bytes --]

On Mon, Feb 04, 2013 at 06:59:38PM +0000, Richard Sandiford wrote:

> These days the guideline encourage updating all files, even ones
> that haven't changed, so I was hoping we could do that gcc-wide.

If that is what the guidelines say, then I will not object.  I am just
a bit surprised that you can claim copyright for a year in which the
file is not modified.

Cheers, Ben

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-04 19:55     ` Ben Elliston
@ 2013-02-04 20:12       ` Bruce Korb
  2013-02-04 20:46         ` Ben Elliston
  0 siblings, 1 reply; 12+ messages in thread
From: Bruce Korb @ 2013-02-04 20:12 UTC (permalink / raw)
  To: Ben Elliston; +Cc: gcc-patches, ian, rdsandiford

On Mon, Feb 4, 2013 at 11:55 AM, Ben Elliston <bje@air.net.au> wrote:
> On Mon, Feb 04, 2013 at 06:59:38PM +0000, Richard Sandiford wrote:
>> These days the guideline encourage updating all files, even ones
>> that haven't changed, so I was hoping we could do that gcc-wide.
>
> If that is what the guidelines say, then I will not object.  I am just
> a bit surprised that you can claim copyright for a year in which the
> file is not modified.

I've wondered about the policy for years, except that I didn't
consider it very important.
The thinking now aligns with what I always thought:  the copyright year is based
on the work as a whole.  Each individual file is not individually
copyrighted, any more
than pages and chapters are individually copyrighted.  Its the whole book.
If you update a chapter, the book copyright date is updated.  Makes more sense
to me.

My issue is likely my issue:  too many names are used for the fixincludes
copyright notices.

Oh, well.  Cheers -Bruce

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-04 20:12       ` Bruce Korb
@ 2013-02-04 20:46         ` Ben Elliston
  2013-02-06 22:11           ` Richard Sandiford
  0 siblings, 1 reply; 12+ messages in thread
From: Ben Elliston @ 2013-02-04 20:46 UTC (permalink / raw)
  To: Bruce Korb; +Cc: gcc-patches, ian, rdsandiford

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

On Mon, Feb 04, 2013 at 12:12:14PM -0800, Bruce Korb wrote:

> If you update a chapter, the book copyright date is updated.  Makes more sense
> to me.

OK. That's fine with me, then.

Cheers, Ben

-- 
"These man-made problems have man-made solutions. Unfortunately, the
 men and women needed to solve them are all politicians." -- Peter Hartcher

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Ping: unreviewed copyright patches
  2013-02-04 20:46         ` Ben Elliston
@ 2013-02-06 22:11           ` Richard Sandiford
  0 siblings, 0 replies; 12+ messages in thread
From: Richard Sandiford @ 2013-02-06 22:11 UTC (permalink / raw)
  To: Ben Elliston; +Cc: Bruce Korb, gcc-patches

Ben Elliston <bje@air.net.au> writes:
> On Mon, Feb 04, 2013 at 12:12:14PM -0800, Bruce Korb wrote:
>
>> If you update a chapter, the book copyright date is updated.  Makes more sense
>> to me.
>
> OK. That's fine with me, then.

Thanks, I installed the patch and added libdecnumber to the list
of default directories to update.

Richard

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-02-06 22:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-03 10:19 Ping: unreviewed copyright patches Richard Sandiford
2013-02-03 16:39 ` Bruce Korb
2013-02-03 17:42   ` Richard Sandiford
2013-02-03 19:45     ` Bruce Korb
2013-02-03 21:00 ` Ben Elliston
2013-02-04 18:59   ` Richard Sandiford
2013-02-04 19:55     ` Ben Elliston
2013-02-04 20:12       ` Bruce Korb
2013-02-04 20:46         ` Ben Elliston
2013-02-06 22:11           ` Richard Sandiford
2013-02-04  4:58 ` Ian Lance Taylor
2013-02-04 19:08   ` Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).