GNU bug report logs - #72809
ms-windows: Copyright embedded into executable is outdated

Previous Next

Package: emacs;

Reported by: Cecilio Pardo <cpardo <at> imayhem.com>

Date: Sun, 25 Aug 2024 19:40:02 UTC

Severity: normal

Fixed in version 30.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72809 in the body.
You can then email your comments to 72809 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72809; Package emacs. (Sun, 25 Aug 2024 19:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Cecilio Pardo <cpardo <at> imayhem.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 25 Aug 2024 19:40:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Cecilio Pardo <cpardo <at> imayhem.com>
To: bug-gnu-emacs <at> gnu.org
Subject: ms-windows: Copyright embedded into executable is outdated
Date: Sun, 25 Aug 2024 21:38:44 +0200
The copyright text included in nt/emacs.rc.in is not updated:

  VALUE "LegalCopyright", "Copyright (C) 2001-2021\0"





Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Mon, 26 Aug 2024 00:53:01 GMT) Full text and rfc822 format available.

Notification sent to Cecilio Pardo <cpardo <at> imayhem.com>:
bug acknowledged by developer. (Mon, 26 Aug 2024 00:53:02 GMT) Full text and rfc822 format available.

Message #10 received at 72809-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Cecilio Pardo <cpardo <at> imayhem.com>, 72809-done <at> debbugs.gnu.org
Subject: Re: bug#72809: ms-windows: Copyright embedded into executable is
 outdated
Date: Mon, 26 Aug 2024 00:50:48 +0000
Version: 30.1

Cecilio Pardo <cpardo <at> imayhem.com> writes:

> The copyright text included in nt/emacs.rc.in is not updated:
>
>    VALUE "LegalCopyright", "Copyright (C) 2001-2021\0"

Thanks, fixed on emacs-30 (commit aa6ed7f67ec).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72809; Package emacs. (Thu, 29 Aug 2024 12:05:01 GMT) Full text and rfc822 format available.

Message #13 received at 72809 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: cpardo <at> imayhem.com, 72809 <at> debbugs.gnu.org
Subject: Re: bug#72809: ms-windows: Copyright embedded into executable is
 outdated
Date: Thu, 29 Aug 2024 15:03:49 +0300
> Resent-To: bug-gnu-emacs <at> gnu.org
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Mon, 26 Aug 2024 00:50:48 +0000
> 
> Version: 30.1
> 
> Cecilio Pardo <cpardo <at> imayhem.com> writes:
> 
> > The copyright text included in nt/emacs.rc.in is not updated:
> >
> >    VALUE "LegalCopyright", "Copyright (C) 2001-2021\0"
> 
> Thanks, fixed on emacs-30 (commit aa6ed7f67ec).

Should we perhaps fix the script not to miss these files?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72809; Package emacs. (Sat, 14 Sep 2024 07:31:02 GMT) Full text and rfc822 format available.

Message #16 received at 72809 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: stefankangas <at> gmail.com
Cc: 72809 <at> debbugs.gnu.org
Subject: Re: bug#72809: ms-windows: Copyright embedded into executable is
 outdated
Date: Sat, 14 Sep 2024 10:30:17 +0300
> Cc: cpardo <at> imayhem.com, 72809 <at> debbugs.gnu.org
> Date: Thu, 29 Aug 2024 15:03:49 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Resent-To: bug-gnu-emacs <at> gnu.org
> > From: Stefan Kangas <stefankangas <at> gmail.com>
> > Date: Mon, 26 Aug 2024 00:50:48 +0000
> > 
> > Version: 30.1
> > 
> > Cecilio Pardo <cpardo <at> imayhem.com> writes:
> > 
> > > The copyright text included in nt/emacs.rc.in is not updated:
> > >
> > >    VALUE "LegalCopyright", "Copyright (C) 2001-2021\0"
> > 
> > Thanks, fixed on emacs-30 (commit aa6ed7f67ec).
> 
> Should we perhaps fix the script not to miss these files?

Stefan, what are your thoughts about improving the script?  Do you
understand why these files were missed?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72809; Package emacs. (Sat, 14 Sep 2024 13:30:03 GMT) Full text and rfc822 format available.

Message #19 received at 72809 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 72809 <at> debbugs.gnu.org
Subject: Re: bug#72809: ms-windows: Copyright embedded into executable is
 outdated
Date: Sat, 14 Sep 2024 06:28:15 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> Stefan, what are your thoughts about improving the script?  Do you
> understand why these files were missed?

The simple reason is that the Gnulib `build-aux/update-copyright` script
don't support them, so we need to remember to update them manually.

As for why this is, the cases are different.

1. There's more than one copyright year in these files:

    configure.ac
    doc/lispref/tips.texi
    etc/images/gud/README

   However, the Gnulib script only updates the first copyright year.

2. For these files:

    nt/emacs.rc.in
    nt/emacsclient.rc.in

   the Gnulib script does not support making this update:

   -	    VALUE "LegalCopyright", "Copyright (C) 2001-2021\0"
   +	    VALUE "LegalCopyright", "Copyright (C) 2001-2024\0"

3. This file:

    test/lisp/which-key-tests.el

   was added with the wrong copyright in 2024.

There are even more edge cases, see for example commit 33d159c36f42.

I'm not sure if it's worth updating our script to support all this.
It's not too hard to remember to grep for "202[0-9]" and updating them
manually.  Writing code to do this has a maintenance cost too, and also
runs a risk of missing some years.  Files change, new files are added,
etc.  So there's no way around grepping to make sure, I think.

Thus, perhaps we should just do this:

diff --git a/admin/update-copyright b/admin/update-copyright
index b9007100b35..23b78443ca4 100755
--- a/admin/update-copyright
+++ b/admin/update-copyright
@@ -77,3 +77,6 @@ updatable_files=
   -print) &&

 build-aux/update-copyright $updatable_files
+
+printf "!! Please remember to grep for and manually update any"
+printf "!! copyright years that were not updated by this script."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72809; Package emacs. (Sat, 14 Sep 2024 14:04:01 GMT) Full text and rfc822 format available.

Message #22 received at 72809 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 72809 <at> debbugs.gnu.org
Subject: Re: bug#72809: ms-windows: Copyright embedded into executable is
 outdated
Date: Sat, 14 Sep 2024 17:02:47 +0300
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Sat, 14 Sep 2024 06:28:15 -0700
> Cc: 72809 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Stefan, what are your thoughts about improving the script?  Do you
> > understand why these files were missed?
> 
> The simple reason is that the Gnulib `build-aux/update-copyright` script
> don't support them, so we need to remember to update them manually.
> 
> As for why this is, the cases are different.
> 
> 1. There's more than one copyright year in these files:
> 
>     configure.ac
>     doc/lispref/tips.texi
>     etc/images/gud/README
> 
>    However, the Gnulib script only updates the first copyright year.
> 
> 2. For these files:
> 
>     nt/emacs.rc.in
>     nt/emacsclient.rc.in
> 
>    the Gnulib script does not support making this update:
> 
>    -	    VALUE "LegalCopyright", "Copyright (C) 2001-2021\0"
>    +	    VALUE "LegalCopyright", "Copyright (C) 2001-2024\0"
> 
> 3. This file:
> 
>     test/lisp/which-key-tests.el
> 
>    was added with the wrong copyright in 2024.
> 
> There are even more edge cases, see for example commit 33d159c36f42.
> 
> I'm not sure if it's worth updating our script to support all this.
> It's not too hard to remember to grep for "202[0-9]" and updating them
> manually.  Writing code to do this has a maintenance cost too, and also
> runs a risk of missing some years.  Files change, new files are added,
> etc.  So there's no way around grepping to make sure, I think.
> 
> Thus, perhaps we should just do this:
> 
> diff --git a/admin/update-copyright b/admin/update-copyright
> index b9007100b35..23b78443ca4 100755
> --- a/admin/update-copyright
> +++ b/admin/update-copyright
> @@ -77,3 +77,6 @@ updatable_files=
>    -print) &&
> 
>  build-aux/update-copyright $updatable_files
> +
> +printf "!! Please remember to grep for and manually update any"
> +printf "!! copyright years that were not updated by this script."

That's okay, but could you also update admin/notes/years?  That file
seems to be severely outdated (e.g., it mentions files we no longer
have), and I think it would be good to add what you say here to the
text, including the list of files that need manual updates.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72809; Package emacs. (Sat, 14 Sep 2024 15:43:01 GMT) Full text and rfc822 format available.

Message #25 received at 72809 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 72809 <at> debbugs.gnu.org
Subject: Re: bug#72809: ms-windows: Copyright embedded into executable is
 outdated
Date: Sat, 14 Sep 2024 10:41:21 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

>> diff --git a/admin/update-copyright b/admin/update-copyright
>> index b9007100b35..23b78443ca4 100755
>> --- a/admin/update-copyright
>> +++ b/admin/update-copyright
>> @@ -77,3 +77,6 @@ updatable_files=
>>    -print) &&
>>
>>  build-aux/update-copyright $updatable_files
>> +
>> +printf "!! Please remember to grep for and manually update any"
>> +printf "!! copyright years that were not updated by this script."
>
> That's okay, but could you also update admin/notes/years?  That file
> seems to be severely outdated (e.g., it mentions files we no longer
> have), and I think it would be good to add what you say here to the
> text, including the list of files that need manual updates.

Done.

The only non-existent file I could find in notes/years was that XPM
image files no longer have a copyright year since commit b5b59d1b8af.
If you spot any others, please amend what I pushed.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72809; Package emacs. (Sat, 14 Sep 2024 16:06:02 GMT) Full text and rfc822 format available.

Message #28 received at 72809 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 72809 <at> debbugs.gnu.org
Subject: Re: bug#72809: ms-windows: Copyright embedded into executable is
 outdated
Date: Sat, 14 Sep 2024 19:04:48 +0300
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Sat, 14 Sep 2024 10:41:21 -0500
> Cc: 72809 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > That's okay, but could you also update admin/notes/years?  That file
> > seems to be severely outdated (e.g., it mentions files we no longer
> > have), and I think it would be good to add what you say here to the
> > text, including the list of files that need manual updates.
> 
> Done.
> 
> The only non-existent file I could find in notes/years was that XPM
> image files no longer have a copyright year since commit b5b59d1b8af.
> If you spot any others, please amend what I pushed.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Oct 2024 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.