pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/dovecot2



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat Jan  9 11:23:19 UTC 2021

Modified Files:
        pkgsrc/mail/dovecot2: distinfo
Added Files:
        pkgsrc/mail/dovecot2/patches: patch-src_lib_test-file-cache.c

Log Message:
Add missing ifdef guard to fix OpenBSD build.


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 pkgsrc/mail/dovecot2/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/mail/dovecot2/patches/patch-src_lib_test-file-cache.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/dovecot2/distinfo
diff -u pkgsrc/mail/dovecot2/distinfo:1.107 pkgsrc/mail/dovecot2/distinfo:1.108
--- pkgsrc/mail/dovecot2/distinfo:1.107 Mon Jan  4 14:57:18 2021
+++ pkgsrc/mail/dovecot2/distinfo       Sat Jan  9 11:23:18 2021
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.107 2021/01/04 14:57:18 taca Exp $
+$NetBSD: distinfo,v 1.108 2021/01/09 11:23:18 schmonz Exp $
 
 SHA1 (dovecot-2.3.13.tar.gz) = 252dc597e8c4b4b0c016916415fec0f80be2facb
 RMD160 (dovecot-2.3.13.tar.gz) = 2005b644abe43133070078188c6fa00fbf076e03
@@ -11,4 +11,5 @@ SHA1 (patch-af) = c066e94dd6593d16eec3e6
 SHA1 (patch-src_imap_imap-client.h) = 1a2bf95ab6af57d88862a1512624bf263f4c2ce7
 SHA1 (patch-src_lib-ldap_ldap-private.h) = 2d5ce32330ad4164cc75f8d209ba499d37ed01fc
 SHA1 (patch-src_lib_connection.h) = c147511f4ff50e4b5a048c3a363f0af90ee4c6ad
+SHA1 (patch-src_lib_test-file-cache.c) = 7eb5cf9d3a44be141ab1597b270f20bf36547b6c
 SHA1 (patch-src_old-stats_mail-stats.h) = 0d40c618445c089af2646a6864c3e909812282af

Added files:

Index: pkgsrc/mail/dovecot2/patches/patch-src_lib_test-file-cache.c
diff -u /dev/null pkgsrc/mail/dovecot2/patches/patch-src_lib_test-file-cache.c:1.1
--- /dev/null   Sat Jan  9 11:23:19 2021
+++ pkgsrc/mail/dovecot2/patches/patch-src_lib_test-file-cache.c        Sat Jan  9 11:23:19 2021
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_lib_test-file-cache.c,v 1.1 2021/01/09 11:23:19 schmonz Exp $
+
+Add missing ifdef guard to fix OpenBSD build.
+
+--- src/lib/test-file-cache.c.orig     Tue Dec 22 13:26:52 2020
++++ src/lib/test-file-cache.c
+@@ -254,6 +254,7 @@ static void test_file_cache_errors(void)
+       test_assert(size == 0);
+       test_assert(map == NULL);
+ 
++#ifdef HAVE_RLIMIT_AS
+       /* temporarily set a small memory limit to make mmap attempt fail */
+       struct rlimit rl_cur;
+       test_assert(getrlimit(RLIMIT_AS, &rl_cur) == 0);
+@@ -277,6 +278,7 @@ static void test_file_cache_errors(void)
+       test_expect_error_string(errstr);
+       test_assert(file_cache_set_size(cache, page_size*2) == -1);
+       test_assert(setrlimit(RLIMIT_AS, &rl_cur) == 0);
++#endif
+ 
+       file_cache_free(&cache);
+       i_close_fd(&fd);



Home | Main Index | Thread Index | Old Index