head 1.2; access; symbols pkgsrc-2020Q1:1.1.0.4 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.6 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.2 pkgsrc-2019Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2020.06.07.10.27.12; author nia; state dead; branches; next 1.1; commitid hX8vqmcpfsaonhbC; 1.1 date 2019.09.21.11.23.28; author ryoon; state Exp; branches; next ; commitid mY1wfmq9fOmp3SDB; desc @@ 1.2 log @mail: Remove thunderbird60 - EOL Note: the release strategy of Thunderbird has changed and there will be no more non-extended-support releases, so mail/thunderbird contains the most recent extended support release, derived from firefox68 @ text @$NetBSD: patch-comm_mail_app_nsMailApp.cpp,v 1.1 2019/09/21 11:23:28 ryoon Exp $ --- comm/mail/app/nsMailApp.cpp.orig 2018-12-04 23:12:16.000000000 +0000 +++ comm/mail/app/nsMailApp.cpp @@@@ -14,6 +14,26 @@@@ #include #include #endif +/* + * On netbsd-4, ulimit -n is 64 by default; too few for us. + */ +static void netbsd_fixrlimit(void) { + struct rlimit rlp; + if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) { + fprintf(stderr, "warning: getrlimit failed\n"); + return; + } + if (rlp.rlim_cur >= 512) + return; + if (rlp.rlim_max < 512) { + fprintf(stderr, "warning: hard limit of 'ulimit -n' too low\n"); + rlp.rlim_cur = rlp.rlim_max; + } + else + rlp.rlim_cur = 512; + if (setrlimit(RLIMIT_NOFILE, &rlp) == -1) + fprintf(stderr, "warning: setrlimit failed\n"); + } #include #include @@@@ -235,6 +255,7 @@@@ static int do_main(int argc, char* argv[ static nsresult InitXPCOMGlue() { + netbsd_fixrlimit(); UniqueFreePtr exePath = BinaryPath::Get(); if (!exePath) { Output("Couldn't find the application directory.\n"); @ 1.1 log @mail/thunderbird60: import thunderbird60-60.9.0 Mozilla Thunderbird is a redesign of the Mozilla mail component. The goal is to produce a cross platform stand alone mail application using the XUL user interface language. This version uses the gtk2 toolkit. This package provides Thunderbird 60 ESR. @ text @d1 1 a1 1 $NetBSD: patch-comm_mail_app_nsMailApp.cpp,v 1.1 2018/12/16 08:12:15 ryoon Exp $ @