From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 6/7] [gnulib, stable-202607] Call gnulib-tool with --avoid=pthread-once
Date: Tue, 17 Nov 2026 18:25:51 +0100 [thread overview]
Message-ID: <20261117172552.3083331-7-tdevries@suse.de> (raw)
In-Reply-To: <20261117172552.3083331-1-tdevries@suse.de>
Update update-gnulib.sh to call gnulib-tool with --avoid=pthread-once to avoid
defining a partial pthread.h.
Otherwise, on msys2-ucrt64, gnulib defines pthread.h, which hides winpthreads'
header, and because it is partial, the build fails.
This approach may cause trouble on platforms with a broken or missing
pthread_once. We're assuming here that that's not relevant.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=35004
---
gnulib/update-gnulib.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnulib/update-gnulib.sh b/gnulib/update-gnulib.sh
index 04cf5792368..9597e659e84 100755
--- a/gnulib/update-gnulib.sh
+++ b/gnulib/update-gnulib.sh
@@ -169,11 +169,14 @@ if [ "$ver" != "$ACLOCAL_VERSION" ]; then
fi
# Update our gnulib import.
+# Use --avoid=pthread-once to avoid a partial pthread.h pulled in via
+# dependency chain:
+# strerror_r-posix -> lock -> once -> pthread-once -> pthread-h.
$gnulib_prefix/gnulib-tool --import --dir=. --lib=libgnu \
--source-base=import --m4-base=import/m4 --doc-base=doc \
--tests-base=tests --aux-dir=import/extra \
--no-conditional-dependencies --no-libtool --macro-prefix=gl \
- --no-vc-files \
+ --no-vc-files --avoid=pthread-once \
$IMPORTED_GNULIB_MODULES
if [ $? -ne 0 ]; then
echo "Error: gnulib import failed. Aborting."
--
2.51.0
next prev parent reply other threads:[~2026-11-17 17:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 17:25 [PATCH 0/7] [gnulib, stable-202607] Update to latest stable branch Tom de Vries
2026-11-17 17:25 ` [PATCH 1/7] [gdb] Handle overloaded strncasecmp in find_label_symbols_in_block Tom de Vries
2026-11-17 17:25 ` [PATCH 2/7] [sim] Include defs.h via command line Tom de Vries
2026-11-17 17:25 ` [PATCH 3/7] [gnulib, stable-202607] Update GNULIB_COMMIT_SHA1 Tom de Vries
2026-11-17 17:25 ` [PATCH 4/7] [gnulib, stable-202607] Update 0002-no-solaris-_gl_attribute_dealloc Tom de Vries
2026-11-17 17:25 ` [PATCH 5/7] [gnulib, stable-202607] Add streq to IMPORTED_GNULIB_MODULES Tom de Vries
2026-11-17 17:25 ` Tom de Vries [this message]
2026-11-17 17:25 ` [PATCH 7/7] [gnulib, stable-202607] Run update-gnulib.sh 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=20261117172552.3083331-7-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.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