pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/qsmtp



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sun Jan 12 23:03:28 UTC 2020

Modified Files:
        pkgsrc/mail/qsmtp: distinfo
        pkgsrc/mail/qsmtp/patches: patch-CMakeLists.txt
Added Files:
        pkgsrc/mail/qsmtp/patches: patch-qsmtpd_antispam.c patch-qsmtpd_auth.c
            patch-qsmtpd_data.c patch-tests_mmap__test.c
            patch-tests_qsdata__test.c

Log Message:
Fix build on NetBSD current.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/mail/qsmtp/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/mail/qsmtp/patches/patch-CMakeLists.txt
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/qsmtp/patches/patch-qsmtpd_antispam.c \
    pkgsrc/mail/qsmtp/patches/patch-qsmtpd_auth.c \
    pkgsrc/mail/qsmtp/patches/patch-qsmtpd_data.c \
    pkgsrc/mail/qsmtp/patches/patch-tests_mmap__test.c \
    pkgsrc/mail/qsmtp/patches/patch-tests_qsdata__test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/qsmtp/distinfo
diff -u pkgsrc/mail/qsmtp/distinfo:1.1 pkgsrc/mail/qsmtp/distinfo:1.2
--- pkgsrc/mail/qsmtp/distinfo:1.1      Tue Jan  7 08:15:30 2020
+++ pkgsrc/mail/qsmtp/distinfo  Sun Jan 12 23:03:28 2020
@@ -1,7 +1,12 @@
-$NetBSD: distinfo,v 1.1 2020/01/07 08:15:30 schmonz Exp $
+$NetBSD: distinfo,v 1.2 2020/01/12 23:03:28 joerg Exp $
 
 SHA1 (Qsmtp-0.37.tar.xz) = 768567e10adf47d651735bd8e7289a6b8a18d24a
 RMD160 (Qsmtp-0.37.tar.xz) = abf841db63e94142f309fcac93c29a29c1a4d692
 SHA512 (Qsmtp-0.37.tar.xz) = 911d9d956ef7d0c6ad150745db489dd96eca0b665d99c0db648b4382c0d21fc759ad4a138e7adf69c6749574ad619114e7f06f62c131d0ae103e9b0493d39ef3
 Size (Qsmtp-0.37.tar.xz) = 250100 bytes
-SHA1 (patch-CMakeLists.txt) = de0a0f4acd99e1573937063fd89fec3caa4232e3
+SHA1 (patch-CMakeLists.txt) = ca780d4dfe778c359db03231b06382372e13a62f
+SHA1 (patch-qsmtpd_antispam.c) = 8df576496c31712e49f4679be172074d7712c089
+SHA1 (patch-qsmtpd_auth.c) = 48958cc70850e2016c755eb53c777998d1477018
+SHA1 (patch-qsmtpd_data.c) = 94a8c51a63c1d6db2433c932388bbac260f462c2
+SHA1 (patch-tests_mmap__test.c) = a39835b6fba0a183e8ff47bdeb7f26889cbb4b53
+SHA1 (patch-tests_qsdata__test.c) = 8b07628c00c05edee79fd6918ce6bc1a24747ebb

Index: pkgsrc/mail/qsmtp/patches/patch-CMakeLists.txt
diff -u pkgsrc/mail/qsmtp/patches/patch-CMakeLists.txt:1.1 pkgsrc/mail/qsmtp/patches/patch-CMakeLists.txt:1.2
--- pkgsrc/mail/qsmtp/patches/patch-CMakeLists.txt:1.1  Tue Jan  7 08:15:30 2020
+++ pkgsrc/mail/qsmtp/patches/patch-CMakeLists.txt      Sun Jan 12 23:03:28 2020
@@ -1,10 +1,40 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2020/01/07 08:15:30 schmonz Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2020/01/12 23:03:28 joerg Exp $
 
 Support PKGMANDIR.
+Support explicit_memset on NetBSD.
 
 --- CMakeLists.txt.orig        2020-01-06 19:19:59.000000000 +0000
 +++ CMakeLists.txt
-@@ -220,8 +220,8 @@ if (BUILD_DOC)
+@@ -7,7 +7,7 @@ project(Qsmtp
+ 
+ option(CHECK_MEMORY "Add memory access checks" OFF)
+ 
+-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
++set (CMAKE_MODULE_PATH "/data/scratch/mail/qsmtp/work/.buildlink/cmake-Modules" ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
+ 
+ set(CMAKE_C_STANDARD 99)
+ set(CMAKE_C_STANDARD_REQUIRED On)
+@@ -95,7 +95,8 @@ endif ()
+ 
+ set(CMAKE_REQUIRED_INCLUDES string.h)
+ CHECK_FUNCTION_EXISTS(explicit_bzero HAS_EXP_BZERO)
+-if (NOT HAS_EXP_BZERO)
++CHECK_FUNCTION_EXISTS(explicit_memset HAS_EXP_MEMSET)
++if (NOT HAS_EXP_BZERO AND NOT HAS_EXP_MEMSET)
+       set(CMAKE_REQUIRED_INCLUDES bsd/string.h)
+       find_library(LIBBSD NAMES bsd)
+       if (LIBBSD)
+@@ -111,6 +112,9 @@ if (NOT HAS_EXP_BZERO)
+               add_definitions(-DINSECURE_BZERO)
+       endif ()
+ endif ()
++if (HAS_EXP_MEMSET)
++      add_definitions(-DHAS_EXP_MEMSET)
++endif ()
+ set(CMAKE_REQUIRED_INCLUDES fcntl.h)
+ CHECK_FUNCTION_EXISTS(openat HAS_OPENAT)
+ unset(CMAKE_REQUIRED_INCLUDES)
+@@ -220,8 +224,8 @@ if (BUILD_DOC)
        install(FILES
                ${CMAKE_CURRENT_BINARY_DIR}/Qremote.8
                ${CMAKE_CURRENT_BINARY_DIR}/Qsmtpd.8

Added files:

Index: pkgsrc/mail/qsmtp/patches/patch-qsmtpd_antispam.c
diff -u /dev/null pkgsrc/mail/qsmtp/patches/patch-qsmtpd_antispam.c:1.1
--- /dev/null   Sun Jan 12 23:03:28 2020
+++ pkgsrc/mail/qsmtp/patches/patch-qsmtpd_antispam.c   Sun Jan 12 23:03:28 2020
@@ -0,0 +1,14 @@
+$NetBSD: patch-qsmtpd_antispam.c,v 1.1 2020/01/12 23:03:28 joerg Exp $
+
+Find LOCK_* on NetBSD.
+
+--- qsmtpd/antispam.c.orig     2020-01-11 21:21:57.002915885 +0000
++++ qsmtpd/antispam.c
+@@ -1,6 +1,7 @@
+ /** \file antispam.c
+  \brief several helper functions for spam filters
+  */
++#define _NETBSD_SOURCE
+ 
+ #include <qsmtpd/antispam.h>
+ 
Index: pkgsrc/mail/qsmtp/patches/patch-qsmtpd_auth.c
diff -u /dev/null pkgsrc/mail/qsmtp/patches/patch-qsmtpd_auth.c:1.1
--- /dev/null   Sun Jan 12 23:03:28 2020
+++ pkgsrc/mail/qsmtp/patches/patch-qsmtpd_auth.c       Sun Jan 12 23:03:28 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-qsmtpd_auth.c,v 1.1 2020/01/12 23:03:28 joerg Exp $
+
+Use explicit_memset as explicit_bzero implementation on NetBSD.
+
+--- qsmtpd/auth.c.orig 2020-01-11 21:10:23.629847795 +0000
++++ qsmtpd/auth.c
+@@ -26,7 +26,9 @@
+ #include <syslog.h>
+ #include <time.h>
+ #include <unistd.h>
+-#ifdef NEED_BSD_STRING_H
++#ifdef HAS_EXP_MEMSET
++#define explicit_bzero(a, b) explicit_memset((a), 0, (b))
++#elif defined(NEED_BSD_STRING_H)
+ #include <bsd/string.h>
+ #elif defined(INSECURE_BZERO)
+ // insecure fallback, could be optimized out by the compiler so memory is not overwritten
Index: pkgsrc/mail/qsmtp/patches/patch-qsmtpd_data.c
diff -u /dev/null pkgsrc/mail/qsmtp/patches/patch-qsmtpd_data.c:1.1
--- /dev/null   Sun Jan 12 23:03:28 2020
+++ pkgsrc/mail/qsmtp/patches/patch-qsmtpd_data.c       Sun Jan 12 23:03:28 2020
@@ -0,0 +1,14 @@
+$NetBSD: patch-qsmtpd_data.c,v 1.1 2020/01/12 23:03:28 joerg Exp $
+
+Find LOCK_* on NetBSD.
+
+--- qsmtpd/data.c.orig 2020-01-11 21:11:14.750764277 +0000
++++ qsmtpd/data.c
+@@ -4,6 +4,7 @@
+ 
+ #define _STD_SOURCE
+ #define _GNU_SOURCE
++#define _NETBSD_SOURCE
+ #include <qsmtpd/qsdata.h>
+ 
+ #include <fmt.h>
Index: pkgsrc/mail/qsmtp/patches/patch-tests_mmap__test.c
diff -u /dev/null pkgsrc/mail/qsmtp/patches/patch-tests_mmap__test.c:1.1
--- /dev/null   Sun Jan 12 23:03:28 2020
+++ pkgsrc/mail/qsmtp/patches/patch-tests_mmap__test.c  Sun Jan 12 23:03:28 2020
@@ -0,0 +1,11 @@
+$NetBSD: patch-tests_mmap__test.c,v 1.1 2020/01/12 23:03:28 joerg Exp $
+
+Find LOCK_* on NetBSD.
+
+--- tests/mmap_test.c.orig     2020-01-11 21:22:55.244319133 +0000
++++ tests/mmap_test.c
+@@ -1,3 +1,4 @@
++#define _NETBSD_SOURCE
+ #include <mmap.h>
+ #include "test_io/testcase_io.h"
+ 
Index: pkgsrc/mail/qsmtp/patches/patch-tests_qsdata__test.c
diff -u /dev/null pkgsrc/mail/qsmtp/patches/patch-tests_qsdata__test.c:1.1
--- /dev/null   Sun Jan 12 23:03:28 2020
+++ pkgsrc/mail/qsmtp/patches/patch-tests_qsdata__test.c        Sun Jan 12 23:03:28 2020
@@ -0,0 +1,16 @@
+$NetBSD: patch-tests_qsdata__test.c,v 1.1 2020/01/12 23:03:28 joerg Exp $
+
+Patch the right function on NetBSD, symbol renaming doesn't agree with
+the manual definition.
+
+--- tests/qsdata_test.c.orig   2020-01-11 21:16:44.405991522 +0000
++++ tests/qsdata_test.c
+@@ -53,6 +53,8 @@ time(time_t *t __attribute__ ((unused)))
+ int
+ #ifdef __DARWIN_ONLY_UNIX_CONFORMANCE
+ gettimeofday(struct timeval *tv, void *tz)
++#elif defined(__NetBSD__)
++__gettimeofday50(struct timeval * __restrict tv, struct timezone * __restrict tz)
+ #else
+ gettimeofday(struct timeval *tv, struct timezone *tz)
+ #endif



Home | Main Index | Thread Index | Old Index