From: Tom de Vries <tdevries@suse.de>
To: Andrew Burgess <aburgess@redhat.com>, Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org, Tom Tromey <tom@tromey.com>
Subject: Re: [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-*
Date: Fri, 20 Nov 2026 19:59:32 +0100 [thread overview]
Message-ID: <4ac5439b-926d-40ab-b234-a514a6b80746@suse.de> (raw)
In-Reply-To: <xhuyfv75r2xqm.fsf@aburgess-thinkpadp1gen8.rmtgb.csb>
On 11/20/26 6:56 PM, Andrew Burgess wrote:
> Tom de Vries <tdevries@suse.de> writes:
>
>> On 11/2/26 6:06 PM, Eli Zaretskii wrote:
>>>> From: Tom de Vries <tdevries@suse.de>
>>>> Date: Mon, 2 Nov 2026 17:33:45 +0100
>>>>
>>>> This series contains 7 patches.
>>>>
>>>> The first splits up gdb/NEWS into gdb/doc/NEWS-*.
>>>>
>>>> The second adds script gdb/doc/gen-news.sh.
>>>>
>>>> The third regenerates gdb/NEWS using gdb/doc/gen-news.sh.
>>>>
>>>> The fourth adds some header text to gdb/NEWS mentioning it's generated.
>>>>
>>>> The fifth extends gen-news.sh with a --check option.
>>>>
>>>> The sixth adds a test-case gdb.src/news.exp using gen-news.sh --check.
>>>>
>>>> The seventh adds a pre-commit check re-generating gdb/NEWS.
>
> What's missing here is a *motivation*. Without me having to go and
> figure it out for myself, *why* is this a good change to make?
>
Hi Andrew,
thanks for the review.
Indeed, the motivation is missing here. I'm following a style of branch
description that is minimal, and only tries to give some sort of
overview of how the patches are related.
The motivation is given in the patches themselves. Typically the first
or last patch. It is my understanding that this style is preferred,
because it makes sure that the important bits are in the patches, and
consequently committed (FWIW, personally I would prefer the overall
motivation in the branch description, and committing it as an empty
first commit).
In this particular series, the motivation is in the first patch:
...
The file gdb/NEWS is organized by release.
As we've seen here [1], it's non-trivial to add gdb/NEWS items to the
correct part of gdb/NEWS.
Fix this by:
- splitting up gdb/NEWS into gdb/doc/NEWS-*
- regenerating gdb/NEWS from gdb/doc/NEWS-*
...
[1] https://sourceware.org/pipermail/gdb-patches/2026-November/231560.html
...
>>>
>>> Thanks, but what does this mean in practice for changes in GDB that
>>> are NEWS-worthy? what should we tell the contributors to do to add the
>>> necessary stuff to NEWS?
>>
>> Hi Eli,
>>
>> thanks for the comments.
>>
>> We should tell them to add to gdb/doc/NEWS-<next-release>, and then
>> regenerate gdb/NEWS with gdb/doc/gen-news.sh (unless they have
>> pre-commit installed, in which case this'll happen when committing).
>
> Would a better strategy be to NOT have individual contributors do the
> regeneration step, but instead have NEWS be generated as part of the
> build.
>
There was a comment from Tom Tromey in a PR (
https://sourceware.org/bugzilla/show_bug.cgi?id=34918#c2 ):
...
I'd hate to lose having a NEWS file that you can scan to
find things like "what version did feature X enter", etc.
However we could break it up into gdb/doc/NEWS-* files and
then generate the NEWS file somehow.
...
that I took as meaning having a NEWS file in the sources rather than in
the build. But I might have misunderstood.
Also, I think that the fact that pre-commit does the regeneration
automatically means that it should not be a great burden to regenerate.
> The generated NEWS files can still be included in the release tar files
> just like other generated files are, e.g. the files that are created
> from gdb/*.y are generated and packaged into a release, so the unified
> NEWS file could be handled the same way.
>
Sure, that could be a way of doing it.
> Also, I agree with your follow up email, the current NEWS snippet should
> be called just NEWS-next, and as part of the release process this can be
> moved to NEWS-19 (or whatever) and NEWS-next will be emptied.
>
The only concern I have is that keeping the NEWS-<n> file in a release
branch in sync with the corresponding file in trunk should be easy. So
perhaps with that in mind, the move from NEWS-next to NEWS-19 should
happen when the gdb-19-branchpoint is created? I haven't fully thought
this through yet.
Thanks,
- Tom
> Of course, this all depends on there being a motivating case for why
> we'd want to do this at all.
>
> Thanks,
> Andrew
>
next prev parent reply other threads:[~2026-11-20 19:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 16:33 Tom de Vries
2026-11-02 16:33 ` [PATCH 1/7] [gdb/doc] Add NEWS-* files Tom de Vries
2026-11-02 16:33 ` [PATCH 2/7] [gdb/doc] Add gen-news.sh Tom de Vries
2026-11-02 16:33 ` [PATCH 3/7] [gdb/NEWS] Regenerate using gdb/doc/gen-news.sh Tom de Vries
2026-11-02 16:33 ` [PATCH 4/7] [gdb/NEWS] Add header text mentioning it's generated Tom de Vries
2026-11-02 16:33 ` [PATCH 5/7] [gdb/doc] Add gen-news.sh --check Tom de Vries
2026-11-02 16:33 ` [PATCH 6/7] [gdb/testsuite] Add gdb.src/news.exp Tom de Vries
2026-11-02 16:33 ` [PATCH 7/7] [pre-commit] Add check-news Tom de Vries
2026-11-02 17:06 ` [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-* Eli Zaretskii
2026-11-02 17:15 ` Tom de Vries
2026-11-02 17:27 ` Tom de Vries
2026-11-20 17:56 ` Andrew Burgess
2026-11-20 18:59 ` Tom de Vries [this message]
2026-11-20 13:47 ` [PING] " Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ac5439b-926d-40ab-b234-a514a6b80746@suse.de \
--to=tdevries@suse.de \
--cc=aburgess@redhat.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox