head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.4 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.2 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.1.0.18 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.16 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.14 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.12 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.10 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.8 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.6 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.4 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.2 pkgsrc-2009Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2012.03.19.10.36.01; author ryoon; state dead; branches; next 1.2; 1.2 date 2012.03.10.03.26.07; author ryoon; state Exp; branches; next 1.1; 1.1 date 2009.11.29.00.40.48; author tnn; state Exp; branches; next ; desc @@ 1.3 log @Update to 2.8 * Based on xulrunner-11.0 * Patches are almost as same as mail/thunderbird Changelog: See http://www.seamonkey-project.org/releases/seamonkey2.8/ etc. @ text @$NetBSD: patch-zc,v 1.2 2012/03/10 03:26:07 ryoon Exp $ --- suite/app/nsSuiteApp.cpp.orig 2012-02-16 13:59:53.000000000 +0000 +++ suite/app/nsSuiteApp.cpp @@@@ -44,6 +44,27 @@@@ #include #include +#include +/* + * 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 "nsCOMPtr.h" #include "nsILocalFile.h" @@@@ -83,6 +104,7 @@@@ public: int main(int argc, char* argv[]) { + netbsd_fixrlimit(); ScopedLogging log; nsCOMPtr appini; @ 1.2 log @Update to 2.7.2 * Many new features. * Security bugfixes. * See http://www.seamonkey-project.org/releases/seamonkey2.7/ @ text @d1 1 a1 1 $NetBSD: patch-zc,v 1.1 2009/11/29 00:40:48 tnn Exp $ @ 1.1 log @Update to seamonkey-2.0, from pkgsrc-wip. Hijack maintainership. Many, many changes; the biggest being that it's based on firefox 3.5. For an exhaustive list of changes, see: http://www.seamonkey-project.org/releases/seamonkey2.0/changes @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- suite/app/nsSuiteApp.cpp.orig 2009-10-25 15:29:07.000000000 +0100 @