public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Luke T. Shumaker <lukeshu@lukeshu.com>
To: Joseph Myers <josmyers@redhat.com>
Cc: "Luke T. Shumaker" <lukeshu@lukeshu.com>,
	binutils@sourceware.org, gdb-patches@sourceware.org,
	"Alfred M. Szmidt" <ams@gnu.org>,
	Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
	Tom Tromey <tromey@adacore.com>
Subject: Re: [PATCH 4/4] Add a ./bootstrap script to automate bundling and generating files
Date: Wed, 12 Jun 2024 01:02:24 -0600	[thread overview]
Message-ID: <87o786y77j.wl-lukeshu@lukeshu.com> (raw)
In-Reply-To: <c89339d4-d861-11a7-1cb9-989e42ee4d1b@redhat.com>

On Mon, 10 Jun 2024 13:27:51 -0600,
Joseph Myers wrote:
> On Fri, 7 Jun 2024, Luke T. Shumaker wrote:
> 
> > Even after the two are in better sync, I think that having 'patches/'
> > as a live a record of "changes that still need to be copied over" is
> > probably a pretty good workflow; in many cases they can even be
> > applied with `git am` and sent with `git send-email`.  So, for
> > example: whatever.patch is approved to binutils; and is commited to
> > binutils.git/libiberty/patches/whatever.patch.  That patch is then
> > applied to GCC.  The next time someone bumps the commit hash in
> > binutils.git/bootstrap.d/bundle-gcc.mk ty sync with GCC, `patch` will
> > complain that the patch has already been applied, and then the person
> > can delete the patch file.
> 
> That process still seems excessively complicated.
> 
> Preferred process:
> 
> * Precondition: the shared files and directories are in sync.
> 
> 1. A patch is committed to both places.
> 
> * Postcondition: the shared files and directories are still in sync.

The problem with that is that the precondition is--at this moment--not met.
Which is to say: Past attempts at this process have failed to fulfill
the postcondition.

> You seem to be suggesting a more complicated process involving committing 
> to one place, also committing a .patch file there, committing to the other 
> place, then doing a second commit to the first place to remove the .patch 
> file and update a commit hash.

Mostly; but the last commit could be "lazy", the .patch files can
stick around until the next time there's something to sync in the
other direction.

I'll admit, It's not a great process.  But we've seen patches get
lost-track-of, and never get synced to gcc.  The process isn't
*terrible*, and should make it so that things don't get lost track of
and the postcondition isn't violated for as long.

Anyway, my goal with this patchset isn't yet to induce any process
change, it's to document how things are right now.

>                                                                (Files such 
> as Makefile.def are definitely included in this, not just shared 
> subdirectories.)

Oh shoot, I didn't realize that Makepkg.def is shared.  I'll adjust
the patchset in v3 to include it.

-- 
Happy hacking,
~ Luke T. Shumaker

  reply	other threads:[~2024-06-12  7:02 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-06 20:11 [PATCH 0/4] " Luke T. Shumaker
2024-06-06 20:11 ` [PATCH 1/4] readline: Fix examples/rlfe/configure.ac Luke T. Shumaker
2024-06-08 18:25   ` Maciej W. Rozycki
2024-06-08 18:28     ` Maciej W. Rozycki
2024-06-10  3:01       ` Luke T. Shumaker
2024-06-10 16:51         ` Simon Marchi
2024-06-06 20:11 ` [PATCH 2/4] Update COPYING files from gnu.org Luke T. Shumaker
2024-06-06 20:11 ` [PATCH 3/4] zlib: Remove files that should certainly not be checked in Luke T. Shumaker
2024-06-07  6:24   ` Jan Beulich
2024-06-07  7:53     ` Luke T. Shumaker
2024-06-10  3:04       ` Luke T. Shumaker
2024-06-08  0:35   ` Luke T. Shumaker
2024-06-06 20:11 ` [PATCH 4/4] Add a ./bootstrap script to automate bundling and generating files Luke T. Shumaker
2024-06-06 20:53   ` Luke T. Shumaker
2024-06-06 20:57   ` Joseph Myers
2024-06-07  8:23     ` Luke T. Shumaker
2024-06-10 19:27       ` Joseph Myers
2024-06-12  7:02         ` Luke T. Shumaker [this message]
2024-06-12 12:58           ` Tom Tromey
2024-06-06 20:55 ` [PATCH 0/4] " Luke T. Shumaker
2024-06-10  3:08 ` [PATCH v2 0/5] " Luke T. Shumaker
2024-06-10  3:08 ` [PATCH v2 1/5] readline: Fix examples/rlfe/configure.in Luke T. Shumaker
2024-06-10 22:49   ` Hans-Peter Nilsson
2024-06-10  3:08 ` [PATCH v2 2/5] Update COPYING files from gnu.org Luke T. Shumaker
2024-06-10  3:08 ` [PATCH v2 3/5] zlib: Remove files that should certainly not be checked in Luke T. Shumaker
2024-06-10  3:08 ` [PATCH v2 4/5] readline: Re-generate configure Luke T. Shumaker
2024-06-10  3:08 ` [PATCH v2 5/5] Add a ./bootstrap script to automate bundling and generating files Luke T. Shumaker

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=87o786y77j.wl-lukeshu@lukeshu.com \
    --to=lukeshu@lukeshu.com \
    --cc=Ralf.Wildenhues@gmx.de \
    --cc=ams@gnu.org \
    --cc=binutils@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    --cc=josmyers@redhat.com \
    --cc=tromey@adacore.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).