summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ssmtp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/ssmtp')
-rw-r--r--meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch47
-rw-r--r--meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb1
2 files changed, 48 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch b/meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch
new file mode 100644
index 0000000000..920c1cd2c5
--- /dev/null
+++ b/meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch
@@ -0,0 +1,47 @@
1From 7d3db0f63b9fa4a0deca486eccbe60c3cfa00750 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Wed, 16 Apr 2025 18:28:24 +0900
4Subject: [PATCH] Fix incompatible-pointer-types error with gcc 15
5
6../ssmtp-2.64/ssmtp.c:1454:31: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
7 1454 | (void)signal(SIGALRM, (void(*)())handler); /* Catch SIGALRM */
8 | ^~~~~~~~~~~~~~~~~~
9 | |
10 | void (*)(void)
11In file included from TOPDIR/tmp/work/core2-64-oe-linux/ssmtp/2.64/recipe-sysroot/usr/include/sys/param.h:28,
12 from ../ssmtp-2.64/ssmtp.c:18:
13TOPDIR/tmp/work/core2-64-oe-linux/ssmtp/2.64/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
14 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
15 | ~~~~~~~~~~~~~~~^~~~~~~~~
16../ssmtp-2.64/ssmtp.c:1393:6: note: 'handler' declared here
17 1393 | void handler(void)
18 | ^~~~~~~
19
20Upstream-Status: Inactive-Upstream [This package has been orphaned https://bugs.debian.org/925056]
21Signed-off-by: mark.yang <mark.yang@lge.com>
22---
23 ssmtp.c | 4 ++--
24 1 file changed, 2 insertions(+), 2 deletions(-)
25
26diff --git a/ssmtp.c b/ssmtp.c
27index 4dedaf8..a938d14 100644
28--- a/ssmtp.c
29+++ b/ssmtp.c
30@@ -1390,7 +1390,7 @@ handler() -- A "normal" non-portable version of an alarm handler
31 like a socket. So we longjump instead, which is erronious on
32 a small number of machines and ill-defined in the language
33 */
34-void handler(void)
35+void handler(__attribute__((unused)) int sig)
36 {
37 extern jmp_buf TimeoutJmpBuf;
38
39@@ -1451,7 +1451,7 @@ int ssmtp(char *argv[])
40 from = from_format(uad, override_from);
41
42 /* Now to the delivery of the message */
43- (void)signal(SIGALRM, (void(*)())handler); /* Catch SIGALRM */
44+ (void)signal(SIGALRM, handler); /* Catch SIGALRM */
45 (void)alarm((unsigned) MAXWAIT); /* Set initial timer */
46 if(setjmp(TimeoutJmpBuf) != 0) {
47 /* Then the timer has gone off and we bail out */
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb
index 499a79d1ed..8dc2d76477 100644
--- a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb
+++ b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb
@@ -9,6 +9,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.bz2 \
9 file://use-DESTDIR.patch \ 9 file://use-DESTDIR.patch \
10 file://0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch \ 10 file://0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch \
11 file://0001-include-libgen.h-for-basename.patch \ 11 file://0001-include-libgen.h-for-basename.patch \
12 file://0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch \
12 " 13 "
13 14
14SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" 15SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f"