From ec5da35273bf71e4726a1aae4d42b52b9dcd4f5e Mon Sep 17 00:00:00 2001 From: Lars Engels Date: Wed, 7 Jan 2015 20:35:38 +0000 Subject: [PATCH] MFH: r376495 - Fix segfault at startup by hardcoding "--no-stack-rlimit" in lib/base/application.cpp - Bump PORTREVISION Noticed by: ohauer Approved by: portmgr (bapt) --- net-mgmt/icinga2/Makefile | 1 + .../icinga2/files/patch-lib_base_application.cpp | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 net-mgmt/icinga2/files/patch-lib_base_application.cpp diff --git a/net-mgmt/icinga2/Makefile b/net-mgmt/icinga2/Makefile index 5111cac00e8a..8c52e65f3bcd 100644 --- a/net-mgmt/icinga2/Makefile +++ b/net-mgmt/icinga2/Makefile @@ -2,6 +2,7 @@ PORTNAME= icinga2 DISTVERSION= 2.2.2 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= http://github.com/Icinga/${PORTNAME}/archive/v${DISTVERSION}.tar.gz?dummy=/ diff --git a/net-mgmt/icinga2/files/patch-lib_base_application.cpp b/net-mgmt/icinga2/files/patch-lib_base_application.cpp new file mode 100644 index 000000000000..aaf01104400e --- /dev/null +++ b/net-mgmt/icinga2/files/patch-lib_base_application.cpp @@ -0,0 +1,14 @@ +--- lib/base/application.cpp.orig 2015-01-07 20:24:52.914349279 +0100 ++++ lib/base/application.cpp 2015-01-07 20:28:25.822333330 +0100 +@@ -216,10 +216,7 @@ + rl.rlim_max = RLIM_INFINITY; + } + +- if (set_stack_rlimit) +- rl.rlim_cur = 256 * 1024; +- else +- rl.rlim_cur = rl.rlim_max; ++ rl.rlim_cur = rl.rlim_max; + + if (setrlimit(RLIMIT_STACK, &rl) < 0) + Log(LogNotice, "Application", "Could not adjust resource limit for stack size (RLIMIT_STACK)");