Date: Tue, 19 Jul 2005 11:03:09 -0300 (BRT) From: Marcus Grando <marcus@corp.grupos.com.br> To: FreeBSD-gnats-submit@FreeBSD.org Cc: clement@FreeBSD.org Subject: ports/83723: Update port: net/cactid fix build on 4.x Message-ID: <20050719140309.D0D015603@corp.grupos.com.br> Resent-Message-ID: <200507191410.j6JEAEWl023240@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83723 >Category: ports >Synopsis: Update port: net/cactid fix build on 4.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jul 19 14:10:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Marcus Grando >Release: FreeBSD 4.11-STABLE i386 >Organization: Grupos Internet S/A >Environment: System: FreeBSD corp.grupos.com.br 4.11-STABLE FreeBSD 4.11-STABLE #0: Mon Jul 11 10:07:29 BRT 2005 root@corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386 >Description: - Fix build on 4.x based on CVS: http://cvs.cacti.net/cgi-bin/viewcvs.cgi/trunk/cactid_unix/php.c?rev=3066&r1=2993&r2=3066 NOTE: If need update PORTREVISION >How-To-Repeat: >Fix: --- cactid.patch begins here --- diff -ruN cactid.orig/files/patch-php.c cactid/files/patch-php.c --- cactid.orig/files/patch-php.c Wed Dec 31 21:00:00 1969 +++ cactid/files/patch-php.c Tue Jul 19 10:59:18 2005 @@ -0,0 +1,30 @@ +--- php.c.orig Tue Jul 19 10:58:48 2005 ++++ php.c Tue Jul 19 10:59:01 2005 +@@ -149,27 +149,9 @@ + int cancel_state; + char *result_string; + +- /* variable to set/get environment limitations */ +- struct rlimit ResourceLimits; +- struct rusage Usage; +- + /* initialize the php process id */ + set.php_sspid = 0; + +- if (getrlimit(RLIMIT_STACK,&ResourceLimits) == 0) { +- if (set.verbose == POLLER_VERBOSITY_DEBUG) { +- printf("DEBUG: Current Max Memory Allocation is '%i' bytes\n", ResourceLimits.rlim_cur); +- printf("DEBUG: Maximum Max Memory Allocation is '%i' bytes\n", ResourceLimits.rlim_max); +- } +- } +- +- if (getrlimit(RLIMIT_AS,&ResourceLimits) == 0) { +- if (set.verbose == POLLER_VERBOSITY_DEBUG) { +- printf("DEBUG: Current Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_cur); +- printf("DEBUG: Maximum Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_max); +- } +- } +- + if (set.verbose == POLLER_VERBOSITY_DEBUG) { + snprintf(logmessage, LOGSIZE-1, "DEBUG: PHP Script Server Routine Starting\n"); + cacti_log(logmessage); --- cactid.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050719140309.D0D015603>