gettext-0.22 has some configure tests which dump cores, making it so
that building GCC with in-tree gettext triggers core collection
mechanisms like systemd-coredump and pollutes them with useless
coredumps.
This issue appears to be gone in gettext-1.0 so update to that.
We might as well use the new version anyway.
contrib/ChangeLog:
* download_prerequisites (gettext): Set gettext source file to
gettext-1.0.tar.gz.
* prerequisites.md5: Update gettext hash.
* prerequisites.sha512: Update gettext hash.
---
This issue was brought to my attention by jwakely. I wondered why I
didn't have this issue on my end until I realized that I haven't built
gettext-0.22 in years:
~$ qlop -vm =gettext-0.22
2023-06-22T13:24:20 >>> sys-devel/gettext-0.22
... yet I could replicate it if I hand-configured it.
Then, we both checked whether gettext-1.0 (the latest ATM) has the
issue; it does not.
I tested whether build and translations work on
aarch64-unknown-freebsd16.0:
[arsen@cfarm427 ~/_b_gcc/_pfx/bin]$ LANG=sr_RS.UTF-8 ./c++ -dumpmachine
aarch64-unknown-freebsd16.0
[arsen@cfarm427 ~/_b_gcc/_pfx/bin]$ LANG=sr_RS.UTF-8 ./c++ --version
c++ (GCC) 17.0.0 20260706 (experimental)
Copyright © 2026 Free Software Foundation, Inc.
Ово је слободан софтвер; погледајте изворе за услове копирања. Нема БИЛО КАКВЕ
ГАРАНЦИЈЕ; чак ни за КОМЕРЦИЈАЛНУ ВРЕДНОСТ или ИСПУЊАВАЊЕ ОДРЕЂЕНЕ ПОТРЕБЕ.
... though it appears that something is broken on aarch64 FreeBSD at the
moment; I got a build failure that resembles
https://gcc.gnu.org/PR125182 so I couldn't fully build GCC.
But, I don't see how changing gettext versions should impact results
anyway, really.
OK for trunk?
Have a lovely day.
contrib/download_prerequisites | 2 +-
contrib/prerequisites.md5 | 2 +-
contrib/prerequisites.sha512 | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites
index 9e4bed94bedf..2e6693a2aa65 100755
--- a/contrib/download_prerequisites
+++ b/contrib/download_prerequisites
@@ -31,7 +31,7 @@ gmp='gmp-6.3.0.tar.bz2'
mpfr='mpfr-4.2.2.tar.bz2'
mpc='mpc-1.3.1.tar.gz'
isl='isl-0.24.tar.bz2'
-gettext='gettext-0.22.tar.gz'
+gettext='gettext-1.0.tar.gz'
base_url='https://gcc.gnu.org/pub/gcc/infrastructure/'
diff --git a/contrib/prerequisites.md5 b/contrib/prerequisites.md5
index 96b9802d9017..1485466f9547 100644
--- a/contrib/prerequisites.md5
+++ b/contrib/prerequisites.md5
@@ -2,4 +2,4 @@ c1cd6ef33085e9cb818b9b08371f9000 gmp-6.3.0.tar.bz2
afe8268360bc8702fbc8297d351c8b5e mpfr-4.2.2.tar.bz2
5c9bc658c9fd0f940e8e3e0f09530c62 mpc-1.3.1.tar.gz
dd2f7b78e118c25bd96134a52aae7f4d isl-0.24.tar.bz2
-c092102240f8f66134d22718421d5115 gettext-0.22.tar.gz
+4ba57b13fc49183a9b8ef6a691571a90 gettext-1.0.tar.gz
diff --git a/contrib/prerequisites.sha512 b/contrib/prerequisites.sha512
index 7a3e9c2cbf7e..d32c789096b7 100644
--- a/contrib/prerequisites.sha512
+++ b/contrib/prerequisites.sha512
@@ -2,4 +2,4 @@
0176e50808dcc07afbf5bc3e38bf9b7b21918e5f194aa0bfd860d99b00c470630aef149776c4be814a61c44269c3a5b9a4b0b1c0fcd4c9feb1459d8466452da8
mpfr-4.2.2.tar.bz2
4bab4ef6076f8c5dfdc99d810b51108ced61ea2942ba0c1c932d624360a5473df20d32b300fc76f2ba4aa2a97e1f275c9fd494a1ba9f07c4cb2ad7ceaeb1ae97
mpc-1.3.1.tar.gz
aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
isl-0.24.tar.bz2
-e2a58dde1cae3e6b79c03e7ef3d888f7577c1f4cba283b3b0f31123ceea8c33d7c9700e83de57104644de23e5f5c374868caa0e091f9c45edbbe87b98ee51c04
gettext-0.22.tar.gz
+664c3b1985cb7d1e7ed443e036a6c7f8c1f47354720d13c2db2c2cf8a85136d0ffc2cc920dce1240d688f706653f647749ce29f69eb0bb659e043b499f9c47eb
gettext-1.0.tar.gz
--
2.54.0