From 5d1cc4f05e4ca6f3ecabfed97d2b67f2ef28b258 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 5 Mar 2026 22:09:43 +0100 Subject: [PATCH] package/links: Fix build with glibc 2.43 Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain --- package/links/0001-glibc-2.43.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/links/0001-glibc-2.43.patch diff --git a/package/links/0001-glibc-2.43.patch b/package/links/0001-glibc-2.43.patch new file mode 100644 index 0000000000..73bd330c7a --- /dev/null +++ b/package/links/0001-glibc-2.43.patch @@ -0,0 +1,27 @@ +Fix build with glibc 2.43 + +https://bugs.gentoo.org/969617 +https://gitlab.exherbo.org/exherbo/arbor/-/raw/45d1f0e764ad1fcb8d776534d0925fe074d04d61/packages/net-www/links/files/links-2.30-glibc-2.43.patch + +Source: https://www.linuxfromscratch.org/blfs/view/svn/basicnet/links.html +Reason: Fix build with glibc 2.43 + +Downloaded from +https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/links/files/links-2.30-glibc-2.43-const.patch?id=ad9dd078c5473b947f237136746cd1c3933ae494 + +Upstream: Sent via email to project maintainers + +Signed-off-by: Bernd Kuhls + +--- a/ftp.c ++++ b/ftp.c +@@ -768,7 +768,7 @@ + } while (0) + A(ftp_head); + ud = stracpy(get_url_data(c->url)); +- if (strchr(cast_const_char ud, POST_CHAR)) *strchr(cast_const_char ud, POST_CHAR) = 0; ++ if (strchr(cast_char ud, POST_CHAR)) *strchr(cast_char ud, POST_CHAR) = 0; + s0 = init_str(); + s0l = 0; + add_conv_str(&s0, &s0l, ud, (int)strlen(cast_const_char ud), -1); +