summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-11-26 19:55:14 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-11-26 19:55:14 +0100
commitc6ee8092d613a5c546c6ccef78bdb1b9101de84e (patch)
tree014d1026ebc40d34bc8e331ffd8c520e2cef737a /net-mail
parentdev-ml/easy-format: update maintainers (diff)
downloadgentoo-c6ee8092d613a5c546c6ccef78bdb1b9101de84e.tar.gz
gentoo-c6ee8092d613a5c546c6ccef78bdb1b9101de84e.tar.bz2
gentoo-c6ee8092d613a5c546c6ccef78bdb1b9101de84e.zip
net-mail/courier-imap: fix build with gcc-15
Closes: https://bugs.gentoo.org/944906 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/courier-imap/courier-imap-5.2.10.ebuild1
-rw-r--r--net-mail/courier-imap/files/courier-imap-5.2.10-gcc15.patch24
2 files changed, 25 insertions, 0 deletions
diff --git a/net-mail/courier-imap/courier-imap-5.2.10.ebuild b/net-mail/courier-imap/courier-imap-5.2.10.ebuild
index e6552f3a4065..1f6f31da501c 100644
--- a/net-mail/courier-imap/courier-imap-5.2.10.ebuild
+++ b/net-mail/courier-imap/courier-imap-5.2.10.ebuild
@@ -65,6 +65,7 @@ and rerun mkdhparams if needed. Location has changed
PATCHES=(
"${FILESDIR}/${PN}-5.1.8-aclocal-fix.patch"
"${FILESDIR}/${PN}-5.0.8-ar-fix.patch"
+ "${FILESDIR}/${P}-gcc15.patch"
)
src_prepare() {
diff --git a/net-mail/courier-imap/files/courier-imap-5.2.10-gcc15.patch b/net-mail/courier-imap/files/courier-imap-5.2.10-gcc15.patch
new file mode 100644
index 000000000000..01beff418618
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-5.2.10-gcc15.patch
@@ -0,0 +1,24 @@
+--- a/libs/tcpd/starttls.c 2024-11-26 08:53:04.567473386 +0100
++++ b/libs/tcpd/starttls.c 2024-11-26 08:53:25.764198066 +0100
+@@ -522,8 +522,9 @@
+ return (1);
+ }
+
+-static void child_handler()
++static void child_handler(int signum)
+ {
++ (void)signum;
+ alarm(10);
+ }
+
+--- a/libs/tcpd/tcpd.c 2024-11-26 08:54:56.315021691 +0100
++++ b/libs/tcpd/tcpd.c 2024-11-26 08:55:12.192818500 +0100
+@@ -1590,7 +1590,7 @@
+
+ if (p == 0)
+ {
+- wait_restore(childsig);
++ wait_restore();
+
+ if (accesslocal) /* Lookup local interface address too? */
+ {