From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: Thiago Jung Bauermann <thiago.bauermann@linaro.org>,
gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/build] Use gnulib fnmatch
Date: Wed, 18 Nov 2026 16:57:19 +0100 [thread overview]
Message-ID: <036536dd-7ed8-49f5-9f1b-3d81e8f7a300@suse.de> (raw)
In-Reply-To: <87zevc38br.fsf@tromey.com>
On 11/13/26 7:16 PM, Tom Tromey wrote:
>>>>>> "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 :(
>
Hi Tom,
thanks for weighing in here.
> 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.
>
I've given updating a try. I've filed a PR (
https://sourceware.org/bugzilla/show_bug.cgi?id=35004 ) and submitted a
series (
https://sourceware.org/git/?p=binutils-gdb.git;a=shortlog;h=refs/heads/users/vries/try-gnulib-stable-202607
, https://sourceware.org/pipermail/gdb-patches/2026-November/231948.html ).
I took a slightly different approach by using a stable branch rather
than importing from trunk.
The thing I encountered that sounds most like the problem you describe
above, is the pthread.h thing.
> gnulib is painful enough that I've often thought we should remove it
> again.
>
I've filed a PR to discuss the merits of libiberty vs gnulib vs both (
https://sourceware.org/bugzilla/show_bug.cgi?id=35017 ).
> 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?
>
I think so. If we have it available, we should use it.
Thanks,
- Tom
> 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
next prev parent reply other threads:[~2026-11-18 15:57 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
2026-11-18 15:57 ` Tom de Vries [this message]
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=036536dd-7ed8-49f5-9f1b-3d81e8f7a300@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=thiago.bauermann@linaro.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