On 12/4/26 03:14, Andrew McMillan wrote:
On Thu, 2026-12-03 at 19:14 +0100, Matthias Klose wrote:
On 12/3/26 16:31, [email protected] wrote:
We send you the file d/copyright also shown in the public notes as
bug report.
thanks for giving that a try, however at a first glance, there seems
to
be some confusion about the GPL and GPL+exception. Your are
crediting
so many files falsely to the GPL+exception.
The rewrite also seems to drop a lot of names, mainly for files which
have a different license within a subdirectory.
So, in the current state the rewrite cannot be used.
That's totally reasonable. Things like the linux kernel and gcc and
other packages that have attracted active development for many years
have inevitably accumulated all sorts of special complexity in their
copyright and licensing - things are so much more rigorous around this
stuff even in just the last fifteen years.
The LLM tool is not designed for these kinds of things and that's why
we have humans review it's operation. It's particularly screwed by
this package because the upstream source is double gzipped, and it
doesn't have the tools to unpack that (it's very, *very* sandboxed) so
it just makes stuff up on the basis of it's vague corpus of knowledge
around "gcc" in general and definitely not "gcc in specific".
If you're curious, I did build a tool that can (maybe) build a machine-
readable debian/copyright for gcc-17, which I attach. Note that this
is *not* a debian/copyright but is instead a Python program which can
write it. And a second python program which will try and verify that
the first one did a good job. This is done more as an exercise in "I
wonder if it works..." than in "you should totally use this thing".
I don't expect you to bother changing debian/copyright at all, but if
you wanted to, maybe this tool gives you something workable - and can
possibly update that when a new version comes out.
Anyway: gen-copyright.py builds a DEP-5 file from each file's own
notice. It uses Python only and takes about a minute on GCC plus
newlib.
- It is consistent with its own reading: every one of the 45,027
files with a notice gets the licence that notice states, and no
file is left unmatched. It passes the report tool's form check.
The checker is verify.py.
- It backs up the maintainer's first complaint with numbers. The
review's proposal credited 11,182 files with plain GPL-3 notices to
the runtime exception: 8,970 in libstdc++-v3/testsuite, 1,591 in
gcc/config, 425 in gcc/m2 and 68 in gcc/algol68. It also gave
1,871 files that do carry the exception (1,747 in gcc/ada) plain
GPL or another licence.
- On dropped names: holders are taken from every file's Copyright
lines. Of the holders named in the current file, the ones the
generator leaves out are not holders of anything in the tree:
- one appears in no file at all;
- one only as an author;
- one only in a ChangeLog;
- one only in newlib's licence summary.
This gives a starting point, not a finished file:
- It is long: about 12,000 lines, against 1,639 now, most of them
file lists in gcc/testsuite and newlib.
- 241 files need checking by hand. Their licence could not be named,
and they are listed in gen.report. A further 50 say "GPL" without
a version.
- Some licence texts need writing in: the older "special exception"
wordings, and the ACATS and ISO notices, which are cut from a
file and need trimming.
- The debian/* paragraph is a guess, since the generator doesn't
read the packaging.
I haven't generated that myself. Maybe you could also attach that
(compressed) file to the issue?
Out of all this, the one finding of interest: about 49 files in
gcc/m2/gm2-libs-iso say they "may be freely copied for the purpose of
implementation" under an ISO copyright. That permission is narrow, and
the current file mentions it without comment.
I'll bring that one up with the upstream maintainer for clarification.
I am, of course, curious as to whether this is close to an answer, but
you should probably close this bug as "wontfix" because this level of
effort is unwarranted!
Regardless, this *has* been a useful exercise to try, since it has
uncovered a few deficiencies in the review process, as well as given an
indication on some limits where it should throw it's hands up and say
"this is beyond me". Hopefully in the future it can do better (just
not with this package :-).
Realistically we should move gcc-* into the same kind of automatically
approved category that we put the linux kernel into. I'm certainly
open to that, and perhaps the team need to discuss a process for
accepting packages into that group.
what even would help more, an exception for accepting binary NEW
packages that follow some pattern (e.g. just a new version number /
soname, a new target) to avoid the binary builds...
Matthias