Article View: linux.debian.bugs.dist
Article #7431Bug#1156266: gcc-17: issues to address following NEW review of 17-20261203-1
From: Matthias Klose
Date: Fri, 04 Dec 2026 08:00
Date: Fri, 04 Dec 2026 08:00
105 lines
7478 bytes
7478 bytes
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, dfsg-team@debian.org 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
Technical Details
Message-ID:
<O6wmZ-fTDN-11@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O6h4B-fLuE-15@gated-at.bofh.it> <O6jzr-fMPG-1@gated-at.bofh.it> <O6h4B-fLuE-15@gated-at.bofh.it> <O6rdD-fQS4-13@gated-at.bofh.it> <O6h4B-fLuE-15@gated-at.bofh.it> <O6rdD-fQS4-13@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Matthias Klose <doko@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1156266: gcc-17: issues to address following NEW review of 17-20261203-1 Date: Fri, 04 Dec 2026 09:00:01 +0100 Message-ID: <O6wmZ-fTDN-11@gated-at.bofh.it> References: <O6h4B-fLuE-15@gated-at.bofh.it> <O6jzr-fMPG-1@gated-at.bofh.it> <O6h4B-fLuE-15@gated-at.bofh.it> <O6rdD-fQS4-13@gated-at.bofh.it> <O6h4B-fLuE-15@gated-at.bofh.it> <O6rdD-fQS4-13@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Dec 4 07:57:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.9 Reply-To: Matthias Klose <doko@debian.org>, 1156266@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-gcc@lists.debian.org X-Debian-Pr-Message: followup 1156266 X-Debian-Pr-Package: src:gcc-17 X-Debian-Pr-Source: gcc-17 Old-X-Envelope-From: doko@debian.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006886 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 105 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 4 Dec 2026 08:54:55 +0100 X-Original-Message-ID: <b5181098-2c18-47e3-afb8-90aa2a1879c4@debian.org> X-Original-References: <1796311916.b68f9c324f4ca0ccfee418d191f2d9ce@dfsg-new-queue.debian.org> <53dc21d8-b7a1-4c5d-87a7-b93c9f1c6957@debian.org> <1796311916.b68f9c324f4ca0ccfee418d191f2d9ce@dfsg-new-queue.debian.org> <549210b489aed3b54dd798a7cf3fa9230a482583.camel@mcmillan.net.nz> <1796311916.b68f9c324f4ca0ccfee418d191f2d9ce@dfsg-new-queue.debian.org> <549210b489aed3b54dd798a7cf3fa9230a482583.camel@mcmillan.net.nz>