main/ssmtp: fix implicit function declaration

See #16106
This commit is contained in:
Sören Tempel 2024-05-12 23:49:35 +02:00
parent df1c21dfab
commit f020a8ed7c
2 changed files with 16 additions and 1 deletions

View file

@ -3,7 +3,7 @@
pkgname=ssmtp
pkgver=2.64
pkgrel=21
pkgrel=22
pkgdesc="Extremely simple MTA to get mail off the system to a mail hub"
subpackages="$pkgname-doc"
arch="all"
@ -16,6 +16,7 @@ source="https://deb.debian.org/debian/pool/main/s/ssmtp/ssmtp_$pkgver.orig.tar.b
generate_config.patch
libcrypto-underlinking.patch
inet6-getaddrinfo.patch
basename.patch
"
build() {
@ -47,4 +48,5 @@ e25707d508a220c24105078c2e1ec32c5c37b2aea68e43cb90a885bb31467ff693daf498b6c13124
a4273d7c5b50984994b35de052c450a872f0014c45c1d3bfe36f2edd4f224281aacea234be61c6e966da2c4d3e033042628b79b2216340001487e6bb3a55b6cd generate_config.patch
9da89ec5ea66dae8b7a22ffcf196c45005c0403e6505162dba05003feac38eb397f8aff4f140d720f826ea057f92e47302ec3c24bddf5786c10b214ec906e82f libcrypto-underlinking.patch
92dc128b2f6ce234843e8f1e6ddb72653825652544cd68f693457b3fdc4ee22b0f9861feec0dfd123d012c294c7083dd8d24a9a589a3c2ae5bcdde697d30a290 inet6-getaddrinfo.patch
4d47d58d018fd5dadbe5abbfb7f3dcd8f344c614df3ecdcff1526d786b9110b394fcb6d242daced748c88693586de9dfd8ac1af0b9eec33060baa8d92154cdf7 basename.patch
"

13
main/ssmtp/basename.patch Normal file
View file

@ -0,0 +1,13 @@
Se https://gitlab.alpinelinux.org/alpine/aports/-/issues/16106
diff -upr ssmtp-2.64.orig/ssmtp.c ssmtp-2.64/ssmtp.c
--- ssmtp-2.64.orig/ssmtp.c 2024-05-12 12:51:08.577436203 +0200
+++ ssmtp-2.64/ssmtp.c 2024-05-12 12:51:26.934150173 +0200
@@ -25,6 +25,7 @@
#include <string.h>
#include <ctype.h>
#include <netdb.h>
+#include <libgen.h>
#ifdef HAVE_SSL
#include <openssl/crypto.h>
#include <openssl/x509.h>