ports/83723: Update port: net/cactid fix build on 4.x

Marcus Grando marcus at corp.grupos.com.br
Tue Jul 19 14:10:15 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list