commit:     c3c7109c9383582faff4f2c45b0073cd58bd859e
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  2 04:38:41 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Dec  2 04:39:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3c7109c

net-mail/safecat: GCC15 fixes

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
Closes: https://bugs.gentoo.org/945487

 net-mail/safecat/files/safecat-1.13-gcc15.patch | 11 +++++++++++
 net-mail/safecat/safecat-1.13-r2.ebuild         |  5 ++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/net-mail/safecat/files/safecat-1.13-gcc15.patch 
b/net-mail/safecat/files/safecat-1.13-gcc15.patch
new file mode 100644
index 000000000000..48f5f90c7453
--- /dev/null
+++ b/net-mail/safecat/files/safecat-1.13-gcc15.patch
@@ -0,0 +1,11 @@
+diff -Nuar safecat-1.13.orig/exit.h safecat-1.13/exit.h
+--- safecat-1.13.orig/exit.h   2000-02-28 20:10:12.000000000 -0800
++++ safecat-1.13/exit.h        2024-12-01 20:31:38.729548653 -0800
+@@ -1,6 +1,6 @@
+ #ifndef EXIT_H
+ #define EXIT_H
+ 
+-extern void _exit();
++extern void _exit(int);
+ 
+ #endif

diff --git a/net-mail/safecat/safecat-1.13-r2.ebuild 
b/net-mail/safecat/safecat-1.13-r2.ebuild
index d74f17778cea..f604ea6e293f 100644
--- a/net-mail/safecat/safecat-1.13-r2.ebuild
+++ b/net-mail/safecat/safecat-1.13-r2.ebuild
@@ -30,6 +30,8 @@ PATCHES=(
        "${FILESDIR}"/${P}-include.patch
        # Clang fixes
        "${DISTDIR}"/${P}-clang-fixes.patch
+       # GCC15 fixes
+       "${FILESDIR}"/safecat-1.13-gcc15.patch
 )
 
 src_prepare() {
@@ -40,7 +42,8 @@ src_prepare() {
 
 src_configure() {
        echo "/usr" > conf-root || die
-       echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
+       # Verified that these are safe as of 2024/12/01.
+       echo "$(tc-getCC) ${CFLAGS} -Wno-discarded-qualifiers 
-Wno-misleading-indentation" > conf-cc || die
        echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
        echo "$(tc-getAR)" > conf-ar || die
 }

Reply via email to