commit: 972af9a1b6c04dbb875cbe3a785a20d6c9d749e3 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Feb 11 01:30:04 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 11 01:58:15 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=972af9a1
dev-lang/tk: fix build w/ glibc-2.43 Closes: https://bugs.gentoo.org/969309 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-lang/tk/files/tk-8.6.17-glibc-2.43.patch | 19 +++++++++++++++++++ dev-lang/tk/tk-8.6.17.ebuild | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/dev-lang/tk/files/tk-8.6.17-glibc-2.43.patch b/dev-lang/tk/files/tk-8.6.17-glibc-2.43.patch new file mode 100644 index 000000000000..03c019c003a6 --- /dev/null +++ b/dev-lang/tk/files/tk-8.6.17-glibc-2.43.patch @@ -0,0 +1,19 @@ +https://bugs.gentoo.org/969309 +https://gitlab.exherbo.org/exherbo/arbor/-/commit/a0a2deee48fa9377913aef8ddb2ee70f70b9e120 +https://core.tcl-lang.org/tk/info/c07d5817bada4c9b +--- a/unix/tkUnixFont.c ++++ b/unix/tkUnixFont.c +@@ -2142,11 +2142,11 @@ + */ + + nameList = ListFonts(fontPtr->display, "*", &numNames); + for (i = 0; i < numNames; i++) { + fallback = strchr(nameList[i] + 1, '-') + 1; +- strchr(fallback, '-')[0] = '\0'; ++ strchr((char *)fallback, '-')[0] = '\0'; + if (SeenName(fallback, &ds) == 0) { + subFontPtr = CanUseFallback(fontPtr, fallback, ch, + fixSubFontPtrPtr); + if (subFontPtr != NULL) { + XFreeFontNames(nameList); + diff --git a/dev-lang/tk/tk-8.6.17.ebuild b/dev-lang/tk/tk-8.6.17.ebuild index c3948cb5829c..7c9295d9a075 100644 --- a/dev-lang/tk/tk-8.6.17.ebuild +++ b/dev-lang/tk/tk-8.6.17.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -41,6 +41,7 @@ PATCHES=( "${FILESDIR}"/${PN}-8.6.9-conf.patch # Bug 125971 "${FILESDIR}"/${PN}-8.6.12-test.patch "${FILESDIR}"/${PN}-8.6.14-test.patch + "${FILESDIR}"/${PN}-8.6.17-glibc-2.43.patch ) QA_CONFIG_IMPL_DECL_SKIP=(
