pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mail/ssmtp/patches
Module Name: pkgsrc
Committed By: cheusov
Date: Wed Apr 22 23:27:01 UTC 2026
Modified Files:
pkgsrc/mail/ssmtp/patches: patch-ab
Added Files:
pkgsrc/mail/ssmtp/patches: patch-configure.in
Removed Files:
pkgsrc/mail/ssmtp/patches: patch-ad
Log Message:
Fix build failure on Linux/musl with recent gcc
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/mail/ssmtp/patches/patch-ab
cvs rdiff -u -r1.1.1.1 -r0 pkgsrc/mail/ssmtp/patches/patch-ad
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/ssmtp/patches/patch-configure.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mail/ssmtp/patches/patch-ab
diff -u pkgsrc/mail/ssmtp/patches/patch-ab:1.4 pkgsrc/mail/ssmtp/patches/patch-ab:1.5
--- pkgsrc/mail/ssmtp/patches/patch-ab:1.4 Tue Oct 20 10:53:24 2015
+++ pkgsrc/mail/ssmtp/patches/patch-ab Wed Apr 22 23:27:00 2026
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.4 2015/10/20 10:53:24 tnn Exp $
+$NetBSD: patch-ab,v 1.5 2026/04/22 23:27:00 cheusov Exp $
--- ssmtp.c.orig 2009-11-23 09:55:11.000000000 +0000
+++ ssmtp.c
@@ -11,3 +11,45 @@ $NetBSD: patch-ab,v 1.4 2015/10/20 10:53
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/param.h>
+@@ -55,21 +57,21 @@ bool_t use_oldauth = False; /* use old
+
+ #define ARPADATE_LENGTH 32 /* Current date in RFC format */
+ char arpadate[ARPADATE_LENGTH];
+-char *auth_user = (char)NULL;
+-char *auth_pass = (char)NULL;
+-char *auth_method = (char)NULL; /* Mechanism for SMTP authentication */
+-char *mail_domain = (char)NULL;
+-char *from = (char)NULL; /* Use this as the From: address */
++char *auth_user = NULL;
++char *auth_pass = NULL;
++char *auth_method = NULL; /* Mechanism for SMTP authentication */
++char *mail_domain = NULL;
++char *from = NULL; /* Use this as the From: address */
+ char *hostname;
+ char *mailhost = "mailhub";
+-char *minus_f = (char)NULL;
+-char *minus_F = (char)NULL;
++char *minus_f = NULL;
++char *minus_F = NULL;
+ char *gecos;
+-char *prog = (char)NULL;
++char *prog = NULL;
+ char *root = NULL;
+-char *tls_cert = "/etc/ssl/certs/ssmtp.pem"; /* Default Certificate */
+-char *uad = (char)NULL;
+-char *config_file = (char)NULL; /* alternate configuration file */
++char *tls_cert = "/home/cheusov/pkg/home/cheusov/pkg/etc/ssmtp/ssmtp.pem"; /* Default Certificate */
++char *uad = NULL;
++char *config_file = NULL; /* alternate configuration file */
+
+ headers_t headers, *ht;
+
+@@ -1457,7 +1459,7 @@ int ssmtp(char *argv[])
+ from = from_format(uad, override_from);
+
+ /* Now to the delivery of the message */
+- (void)signal(SIGALRM, (void(*)())handler); /* Catch SIGALRM */
++ (void)signal(SIGALRM, (void(*)(int))handler); /* Catch SIGALRM */
+ (void)alarm((unsigned) MAXWAIT); /* Set initial timer */
+ if(setjmp(TimeoutJmpBuf) != 0) {
+ /* Then the timer has gone off and we bail out */
Added files:
Index: pkgsrc/mail/ssmtp/patches/patch-configure.in
diff -u /dev/null pkgsrc/mail/ssmtp/patches/patch-configure.in:1.1
--- /dev/null Wed Apr 22 23:27:01 2026
+++ pkgsrc/mail/ssmtp/patches/patch-configure.in Wed Apr 22 23:27:01 2026
@@ -0,0 +1,13 @@
+$NetBSD: patch-configure.in,v 1.1 2026/04/22 23:27:01 cheusov Exp $
+
+--- configure.in.orig 2026-04-22 23:16:20.270764687 +0000
++++ configure.in
+@@ -52,7 +52,7 @@ AC_ARG_ENABLE(ssl,
+ [ --enable-ssl support for secure connection to mail server])
+ if test x$enableval = xyes ; then
+ AC_DEFINE(HAVE_SSL)
+- LIBS="$LIBS -lssl"
++ LIBS="$LIBS -lssl -lcrypto"
+ fi
+ enableval=""
+
Home |
Main Index |
Thread Index |
Old Index