public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Christophe Lyon <christophe.lyon@linaro.org>, Sam James <sam@gentoo.org>
Cc: gdb@sourceware.org
Subject: Re: [PATCH] contrib: Add autoregen.py
Date: Tue, 30 Apr 2024 13:59:52 -0400	[thread overview]
Message-ID: <de63f93e-f4e8-4844-bfb9-ef3dafd9c171@simark.ca> (raw)
In-Reply-To: <CAPS5khbJMooRyqzN0aJcRkfpLqW_vzT2tY08=43UUWrOGk68qQ@mail.gmail.com>



On 2024-04-30 08:50, Christophe Lyon via Gdb wrote:
>> It may be nice (not sure) to include `git log` or `git shortlog`
>> in the commit message to preserve some history too.
>>
>>>
>>> It is intended as a helper to regenerate files managed by autotools
>>> (autoconf, automake, aclocal, ....), as well as the toplevel
>>> Makefile.in which is created by autogen.
>>>
>>> Other files can be updated when using maintainer-mode, but this is not
>>> covered by this script.
>>
>> Who will own contrib/autoregen.py? Do we need to get all changes
>> reviewed across gdb, binutils, and gcc? The shared files tend to be a
>> huge pain for this.
> Yes, that's a concern I have.
> My motivation for adding it to contrib/ is to make it more visible (I
> don't think
> many contributors know where to find the sources of the autoregen
> buildbot, maybe most don't know it exists)
> It would also mean that the buildbot could do the equivalent of
> cd $project #project is one of gcc, binutils-gdb
> if [ -f .contrib/autoregen.py ]; then
>   ./contrib/autoregen.py
> fi
> 
> but that doesn't solve the maintenance pain indeed.
> 
> Or maybe just drop this idea, and somehow make the existence
> of the buildbot more widely known? (how?)

Having this file in the repo is much better.  This way, we know that a
particular version of the script at a given commit works well for the
code in the repo at that commit.  This way you can go back in time at an
old commit and re-generate things using the autoregen.py at that commit,
and it should just work.

I would suggest that maintainers on either side (gcc and binutils-gdb)
can approve modifications to the script, we just need to make sure to
sync the changes to the other repo now and then, just like we do for
other shared files.

Simon

      reply	other threads:[~2024-04-30 17:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19  9:09 Christophe Lyon
2024-04-19 16:23 ` Tom Tromey
2024-04-19 17:51   ` Simon Marchi
2024-04-30 12:45     ` Christophe Lyon
2024-04-30 17:17       ` Tom Tromey
2024-04-30 18:00         ` Simon Marchi
2024-04-30 22:12           ` Tom Tromey
2024-04-19 22:59 ` Sam James
2024-04-30 12:50   ` Christophe Lyon
2024-04-30 17:59     ` Simon Marchi [this message]

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=de63f93e-f4e8-4844-bfb9-ef3dafd9c171@simark.ca \
    --to=simark@simark.ca \
    --cc=christophe.lyon@linaro.org \
    --cc=gdb@sourceware.org \
    --cc=sam@gentoo.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).