From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH] [gnulib] Skip 3rd-party m4 files in update-gnulib.sh
Date: Mon, 16 Nov 2026 16:39:34 +0100 [thread overview]
Message-ID: <20261116153934.2230309-1-tdevries@suse.de> (raw)
When running update-gnulib.sh, I get changes from
/usr/share/aclocal/po.m4, a file installed from package gettext-tools.
Fix this by running aclocal with:
- ACLOCAL_PATH="" and
- --system-acdir="<empty dir>".
After this change, running update-gnulib.sh produces no changes.
---
gnulib/update-gnulib.sh | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnulib/update-gnulib.sh b/gnulib/update-gnulib.sh
index f38b31f31fa..8203bf3a2ce 100755
--- a/gnulib/update-gnulib.sh
+++ b/gnulib/update-gnulib.sh
@@ -192,12 +192,22 @@ apply_patches ()
apply_patches "patches/0001-use-windows-stat"
apply_patches "patches/0002-no-solaris-_gl_attribute_dealloc"
-# Regenerate all necessary files...
-aclocal &&
+if ! empty_dir=$(mktemp -d); then
+ echo "Error: Failed to create empty dir. Aborting."
+ exit 1
+fi
+
+# Regenerate all necessary files. Run aclocal while ignoring 3rd-party .m4
+# files.
+ACLOCAL_PATH="" aclocal --system-acdir="$empty_dir" &&
autoconf &&
autoheader &&
automake
-if [ $? -ne 0 ]; then
+st=$?
+
+rmdir "$empty_dir"
+
+if [ $st -ne 0 ]; then
echo "Error: Failed to regenerate Makefiles and configure scripts."
exit 1
fi
base-commit: 5678a7bfceb3a6ea18bcde1ae68f7e96c43c998b
--
2.51.0
next reply other threads:[~2026-11-16 15:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 15:39 Tom de Vries [this message]
2026-11-16 16:29 ` Simon Marchi
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=20261116153934.2230309-1-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