diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2024-12-01 20:38:41 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2024-12-01 20:39:05 -0800 |
commit | c3c7109c9383582faff4f2c45b0073cd58bd859e (patch) | |
tree | 25e27a22549627360fda69e7b7b9bd0d24c82f33 /net-mail | |
parent | media-gfx/librecad: drop 2.1.3-r7, 2.2.0 (diff) | |
download | gentoo-c3c7109c9383582faff4f2c45b0073cd58bd859e.tar.gz gentoo-c3c7109c9383582faff4f2c45b0073cd58bd859e.tar.bz2 gentoo-c3c7109c9383582faff4f2c45b0073cd58bd859e.zip |
net-mail/safecat: GCC15 fixes
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://bugs.gentoo.org/945487
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/safecat/files/safecat-1.13-gcc15.patch | 11 | ||||
-rw-r--r-- | net-mail/safecat/safecat-1.13-r2.ebuild | 5 |
2 files changed, 15 insertions, 1 deletions
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 } |