pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/dovecot2 Add missing ifdef guard to fix OpenBSD b...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d3bf4933299b
branches: trunk
changeset: 444506:d3bf4933299b
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Sat Jan 09 11:23:18 2021 +0000
description:
Add missing ifdef guard to fix OpenBSD build.
diffstat:
mail/dovecot2/distinfo | 3 +-
mail/dovecot2/patches/patch-src_lib_test-file-cache.c | 22 +++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 7dae8e2dc19f -r d3bf4933299b mail/dovecot2/distinfo
--- a/mail/dovecot2/distinfo Sat Jan 09 09:30:47 2021 +0000
+++ b/mail/dovecot2/distinfo Sat Jan 09 11:23:18 2021 +0000
@@ -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-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
diff -r 7dae8e2dc19f -r d3bf4933299b mail/dovecot2/patches/patch-src_lib_test-file-cache.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot2/patches/patch-src_lib_test-file-cache.c Sat Jan 09 11:23:18 2021 +0000
@@ -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