commit:     df3ec50e047b2551a788c10170f61f4ecacf042b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  7 01:01:17 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb  7 01:01:17 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df3ec50e

net-dialup/lrzsz: fix C23 compat harder (which fixes glibc-2.43)

Just define STRICT_PROTOTYPES and use what comes from libc headers
instead.

Bug: https://bugs.gentoo.org/969297
Closes: https://bugs.gentoo.org/969297
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch | 30 --------------------------
 net-dialup/lrzsz/lrzsz-0.12.20-r10.ebuild      |  7 ++++--
 2 files changed, 5 insertions(+), 32 deletions(-)

diff --git a/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch 
b/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch
index 58defbea2b3f..428d9d25165f 100644
--- a/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch
+++ b/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch
@@ -66,36 +66,6 @@ https://bugs.gentoo.org/943880
  {
    char *t_ptr;
    char **p;
---- a/src/lrz.c
-+++ b/src/lrz.c
-@@ -42,9 +42,9 @@
- #include "error.h"
- 
- #ifndef STRICT_PROTOTYPES
--extern time_t time();
--extern char *strerror();
--extern char *strstr();
-+extern time_t time(time_t*);
-+extern char *strerror(int);
-+extern char *strstr(const char* , const char*);
- #endif
- 
- #ifndef HAVE_ERRNO_DECLARATION
---- a/src/lsz.c
-+++ b/src/lsz.c
-@@ -51,9 +51,9 @@ void *mm_addr=NULL;
- #include "error.h"
- 
- #ifndef STRICT_PROTOTYPES
--extern time_t time();
--extern char *strerror();
--extern char *strstr();
-+extern time_t time(time_t*);
-+extern char *strerror(int);
-+extern char *strstr(const char*, const char*);
- #endif
- 
- #ifndef HAVE_ERRNO_DECLARATION
 --- a/lib/getopt.h
 +++ b/lib/getopt.h
 @@ -101,7 +101,7 @@ struct option

diff --git a/net-dialup/lrzsz/lrzsz-0.12.20-r10.ebuild 
b/net-dialup/lrzsz/lrzsz-0.12.20-r10.ebuild
index 8fbe8d7fd0d3..d139f1dc2278 100644
--- a/net-dialup/lrzsz/lrzsz-0.12.20-r10.ebuild
+++ b/net-dialup/lrzsz/lrzsz-0.12.20-r10.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 DESCRIPTION="Communication package providing the X, Y, and ZMODEM file 
transfer protocols"
 HOMEPAGE="https://www.ohse.de/uwe/software/lrzsz.html";
@@ -56,6 +56,9 @@ src_prepare() {
 src_configure() {
        tc-export CC
 
+       # bug #943880, bug #969297
+       append-cppflags -DSTRICT_PROTOTYPES
+
        econf $(use_enable nls)
 }
 

Reply via email to