all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72809: ms-windows: Copyright embedded into executable is outdated
@ 2024-08-25 19:38 Cecilio Pardo
  2024-08-26  0:50 ` Stefan Kangas
  0 siblings, 1 reply; 8+ messages in thread
From: Cecilio Pardo @ 2024-08-25 19:38 UTC (permalink / raw)
  To: 72809

The copyright text included in nt/emacs.rc.in is not updated:

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






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

* bug#72809: ms-windows: Copyright embedded into executable is outdated
  2024-08-25 19:38 bug#72809: ms-windows: Copyright embedded into executable is outdated Cecilio Pardo
@ 2024-08-26  0:50 ` Stefan Kangas
  2024-08-29 12:03   ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2024-08-26  0:50 UTC (permalink / raw)
  To: Cecilio Pardo, 72809-done

Version: 30.1

Cecilio Pardo <cpardo@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).





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

* bug#72809: ms-windows: Copyright embedded into executable is outdated
  2024-08-26  0:50 ` Stefan Kangas
@ 2024-08-29 12:03   ` Eli Zaretskii
  2024-09-14  7:30     ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2024-08-29 12:03 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: cpardo, 72809

> Resent-To: bug-gnu-emacs@gnu.org
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Mon, 26 Aug 2024 00:50:48 +0000
> 
> Version: 30.1
> 
> Cecilio Pardo <cpardo@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?





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

* bug#72809: ms-windows: Copyright embedded into executable is outdated
  2024-08-29 12:03   ` Eli Zaretskii
@ 2024-09-14  7:30     ` Eli Zaretskii
  2024-09-14 13:28       ` Stefan Kangas
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2024-09-14  7:30 UTC (permalink / raw)
  To: stefankangas; +Cc: 72809

> Cc: cpardo@imayhem.com, 72809@debbugs.gnu.org
> Date: Thu, 29 Aug 2024 15:03:49 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > Resent-To: bug-gnu-emacs@gnu.org
> > From: Stefan Kangas <stefankangas@gmail.com>
> > Date: Mon, 26 Aug 2024 00:50:48 +0000
> > 
> > Version: 30.1
> > 
> > Cecilio Pardo <cpardo@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?





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

* bug#72809: ms-windows: Copyright embedded into executable is outdated
  2024-09-14  7:30     ` Eli Zaretskii
@ 2024-09-14 13:28       ` Stefan Kangas
  2024-09-14 14:02         ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2024-09-14 13:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 72809

Eli Zaretskii <eliz@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."





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

* bug#72809: ms-windows: Copyright embedded into executable is outdated
  2024-09-14 13:28       ` Stefan Kangas
@ 2024-09-14 14:02         ` Eli Zaretskii
  2024-09-14 15:41           ` Stefan Kangas
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2024-09-14 14:02 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 72809

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Sat, 14 Sep 2024 06:28:15 -0700
> Cc: 72809@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@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.





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

* bug#72809: ms-windows: Copyright embedded into executable is outdated
  2024-09-14 14:02         ` Eli Zaretskii
@ 2024-09-14 15:41           ` Stefan Kangas
  2024-09-14 16:04             ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2024-09-14 15:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 72809

Eli Zaretskii <eliz@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.





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

* bug#72809: ms-windows: Copyright embedded into executable is outdated
  2024-09-14 15:41           ` Stefan Kangas
@ 2024-09-14 16:04             ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2024-09-14 16:04 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 72809

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Sat, 14 Sep 2024 10:41:21 -0500
> Cc: 72809@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@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.





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

end of thread, other threads:[~2024-09-14 16:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-25 19:38 bug#72809: ms-windows: Copyright embedded into executable is outdated Cecilio Pardo
2024-08-26  0:50 ` Stefan Kangas
2024-08-29 12:03   ` Eli Zaretskii
2024-09-14  7:30     ` Eli Zaretskii
2024-09-14 13:28       ` Stefan Kangas
2024-09-14 14:02         ` Eli Zaretskii
2024-09-14 15:41           ` Stefan Kangas
2024-09-14 16:04             ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.