diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-03-25 11:58:26 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-03-25 12:50:39 -0700 |
commit | 7bc6403b7334deb499d3b4dbc76ea8f3ea45e185 (patch) | |
tree | 3dcf93f186a4365e734f715b0d6621aa78f3840d /meta-networking | |
parent | f370d3be8ebe7a9e4a639edc2171f26028841791 (diff) | |
download | meta-openembedded-7bc6403b7334deb499d3b4dbc76ea8f3ea45e185.tar.gz |
ssmtp: Fix build with musl >= 1.2.5
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch | 32 | ||||
-rw-r--r-- | meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch b/meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch new file mode 100644 index 000000000..094ba5afa --- /dev/null +++ b/meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From b48840952ec9a68363bed960e98dd6c7aaa3acec Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 25 Mar 2024 11:55:59 -0700 | ||
4 | Subject: [PATCH] include libgen.h for basename | ||
5 | |||
6 | basename prototype has been removed from string.h from latest musl [1] | ||
7 | compilers e.g. clang-18 flags the absense of prototype as error. therefore | ||
8 | include libgen.h for providing it. | ||
9 | |||
10 | [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | ssmtp.c | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/ssmtp.c b/ssmtp.c | ||
19 | index 0a719ac..4dedaf8 100644 | ||
20 | --- a/ssmtp.c | ||
21 | +++ b/ssmtp.c | ||
22 | @@ -23,6 +23,7 @@ | ||
23 | #include <signal.h> | ||
24 | #include <setjmp.h> | ||
25 | #include <string.h> | ||
26 | +#include <libgen.h> | ||
27 | #include <ctype.h> | ||
28 | #include <netdb.h> | ||
29 | #ifdef HAVE_SSL | ||
30 | -- | ||
31 | 2.44.0 | ||
32 | |||
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb index 05d2bb18f..499a79d1e 100644 --- a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb +++ b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb | |||
@@ -8,6 +8,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.bz2 \ | |||
8 | file://build-ouside_srcdir.patch \ | 8 | file://build-ouside_srcdir.patch \ |
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 | " | 12 | " |
12 | 13 | ||
13 | SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" | 14 | SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" |