Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Tom de Vries <tdevries@suse.de>
Cc: Thiago Jung Bauermann <thiago.bauermann@linaro.org>,
	gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/build] Use gnulib fnmatch
Date: Fri, 13 Nov 2026 11:16:56 -0700	[thread overview]
Message-ID: <87zevc38br.fsf@tromey.com> (raw)
In-Reply-To: <69e3799f-231e-4e51-a70a-aefd4429350e@suse.de> (Tom de Vries's message of "Fri, 13 Nov 2026 15:52:53 +0100")

>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> That's a good question.  I've looked into this a bit.  I think this is
Tom> the solution we want eventually, but for that to happen we need to
Tom> update gcc to no longer use it (and start using gnulib), as well as
Tom> other components in our repo which use the libiberty version instead
Tom> of gnulib.  So that's quite a project.

Sharing gnulib would be very difficult, much worse even than you might
think :(

The main issue is that gdb is extremely sensitive to exactly which
gnulib modules are used.  I don't recall the details any more, but there
are some modules that cannot be imported, and if they are, things break.

Also, maybe worth noting that it's also very difficult to update gnulib.
I failed the last time I tried.

gnulib is painful enough that I've often thought we should remove it
again.

Though I have to say this current bug makes me second-guess my wish.  I
mean, on the one hand this self-test is maybe invalid or non-portable;
but OTOH shouldn't fnmatch work more nicely than libiberty's, since it's
exposed to the user?

But maybe another way to go, assuming gnulib removal is on the table,
would be to ensure that libiberty uses the macOS fnmatch and not the
replacement.

Tom

  reply	other threads:[~2026-11-13 18:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 19:26 Tom de Vries
2026-11-12 22:53 ` Thiago Jung Bauermann
2026-11-13 14:52   ` Tom de Vries
2026-11-13 18:16     ` Tom Tromey [this message]
2026-11-18 15:57       ` Tom de Vries
2026-11-19 20:39         ` Tom Tromey

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=87zevc38br.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tdevries@suse.de \
    --cc=thiago.bauermann@linaro.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