commit:     68dbdb6b7cd0005452521fea8e3914b1076fd67d
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Sat Feb  7 14:03:24 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb  7 21:44:34 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68dbdb6b

net-misc/socat: fix build with glibc-2.43

Closes: https://bugs.gentoo.org/969295
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/45669
Closes: https://github.com/gentoo/gentoo/pull/45669
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/socat/files/1.8.1.0-const.patch | 28 ++++++++++++++++++++++++++++
 net-misc/socat/socat-1.8.1.0.ebuild      |  2 ++
 2 files changed, 30 insertions(+)

diff --git a/net-misc/socat/files/1.8.1.0-const.patch 
b/net-misc/socat/files/1.8.1.0-const.patch
new file mode 100644
index 000000000000..c6a7d0e29293
--- /dev/null
+++ b/net-misc/socat/files/1.8.1.0-const.patch
@@ -0,0 +1,28 @@
+Bug: https://bugs.gentoo.org/969295
+
+diff --git a/filan.c b/filan.c
+index 101940a..85db9b4 100644
+--- a/filan.c
++++ b/filan.c
+@@ -1105,7 +1105,7 @@ const char *getfiletypestring(int st_mode) {
+ }
+ 
+ static int printtime(FILE *outfile, time_t time) {
+-   const char *s;
++   char *s;
+ 
+    if (filan_rawoutput) {
+       fprintf(outfile, "\t"F_time, time);
+diff --git a/xio-ip6.c b/xio-ip6.c
+index 7d7e286..e66a3e4 100644
+--- a/xio-ip6.c
++++ b/xio-ip6.c
+@@ -117,7 +117,7 @@ int xioparsenetwork_ip6(
+       struct xiorange *range,
+       const int ai_flags[2])
+ {
+-   char *delimpos;    /* absolute address of delimiter */
++   const char *delimpos;      /* absolute address of delimiter */
+    size_t delimind;   /* index of delimiter in string */
+    unsigned int bits; /* netmask bits */
+    char *endptr;

diff --git a/net-misc/socat/socat-1.8.1.0.ebuild 
b/net-misc/socat/socat-1.8.1.0.ebuild
index abb836e44ea4..e74ee422357f 100644
--- a/net-misc/socat/socat-1.8.1.0.ebuild
+++ b/net-misc/socat/socat-1.8.1.0.ebuild
@@ -28,6 +28,8 @@ RDEPEND="${DEPEND}"
 
 DOCS=( BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ FILES PORTING README 
SECURITY )
 
+PATCHES=( "${FILESDIR}"/1.8.1.0-const.patch )
+
 src_configure() {
        # bug #293324
        filter-flags '-Wno-error*'

Reply via email to