commit:     3775a498108182a4a664871189c202d59df713da
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Sep  8 10:36:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 11 03:28:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3775a498

app-misc/ttyrec: fix gcc15

Closes: https://bugs.gentoo.org/943781
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43711
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/ttyrec/files/ttyrec-1.0.8-fix_gcc15.patch | 42 ++++++++++++++++++++++
 app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild             |  1 +
 2 files changed, 43 insertions(+)

diff --git a/app-misc/ttyrec/files/ttyrec-1.0.8-fix_gcc15.patch 
b/app-misc/ttyrec/files/ttyrec-1.0.8-fix_gcc15.patch
new file mode 100644
index 000000000000..e27c95e789c5
--- /dev/null
+++ b/app-misc/ttyrec/files/ttyrec-1.0.8-fix_gcc15.patch
@@ -0,0 +1,42 @@
+https://bugs.gentoo.org/943781
+--- a/ttyrec.c
++++ b/ttyrec.c
+@@ -122,14 +122,12 @@ int      aflg;
+ int   uflg;
+ 
+ int
+-main(argc, argv)
+-      int argc;
+-      char *argv[];
++main(int argc, char *argv[])
+ {
+       extern int optind;
+       int ch;
+       void finish();
+-      char *getenv();
++      char *getenv(const char *);
+       char *command = NULL;
+ 
+       while ((ch = getopt(argc, argv, "aue:h?")) != EOF)
+diff --git a/ttyrec.c b/ttyrec.c
+index b112dc6..ab78ce3 100644
+--- a/ttyrec.c
++++ b/ttyrec.c
+@@ -126,7 +126,7 @@ main(int argc, char *argv[])
+ {
+       extern int optind;
+       int ch;
+-      void finish();
++      void finish(int);
+       char *getenv(const char *);
+       char *command = NULL;
+ 
+@@ -207,7 +207,7 @@ doinput()
+ #include <sys/wait.h>
+ 
+ void
+-finish()
++finish(int sig)
+ {
+ #if defined(SVR4)
+       int status;

diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild 
b/app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild
index a5902b4d61eb..8ffb5d5eae02 100644
--- a/app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild
+++ b/app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild
@@ -16,6 +16,7 @@ KEYWORDS="~alpha amd64 ppc ppc64 ~sparc x86 ~amd64-linux 
~x86-linux ~ppc-macos"
 PATCHES=(
        "${FILESDIR}"/${P}-flags.patch
        "${FILESDIR}"/${P}-glibc-2.30.patch
+       "${FILESDIR}"/${P}-fix_gcc15.patch
 )
 
 src_configure() {

Reply via email to