ports/93271: [PATCH] Port devel/gamin does not compile with GCC 2.x

Sven Berkvens-Matthijsse sven at ilse.net
Mon Feb 13 09:30:05 UTC 2006


>Number:         93271
>Category:       ports
>Synopsis:       [PATCH] Port devel/gamin does not compile with GCC 2.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 13 09:30:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sven Berkvens-Matthijsse
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
ilse media BV
>Environment:
System: FreeBSD serv7.ilse.net 4.10-STABLE FreeBSD 4.10-STABLE #23: Wed Aug 4 15:18:52 CEST 2004 root at tango.ilse.net:/usr/obj/usr/src/sys/BAROQUE i386


	
>Description:
	The port devel/gamin does not compile on FreeBSD 4.x with the default
	GCC 2.x compiler because it uses a C99 feature that GCC 2.x does not
	support.
>How-To-Repeat:
	Try to compile on FreeBSD 4.x.
>Fix:
	Here is a replacement for the files/patch-tests_testing.c file:


--- tests/testing.c.orig	Mon Feb 13 10:20:21 2006
+++ tests/testing.c	Mon Feb 13 10:20:34 2006
@@ -380,6 +380,7 @@
             fprintf(stderr, "chown line %d: lacks path and owner\n", no);
             return (-1);
         }
+	{
 		struct stat sb;
 		if (!lstat (arg, &sb)) {
 			ret = (S_ISLNK (sb.st_mode)) ?
@@ -387,6 +388,7 @@
 				chown(arg, strtol(arg2, NULL, 10), -1);
 		} else
 			ret=-1;
+	}
         if (ret < 0) {
             fprintf(stderr, "chown line %d: failed to chown %s to %s\n", no,
                     arg, arg2);
@@ -486,9 +488,9 @@
             return (-1);
         }
         /*
-         * wait at most 3 secs before declaring failure
+         * wait at most 7 secs before declaring failure
          */
-        while ((delay < 30) && (testState.nb_events < nb_events + count)) {
+        while ((delay < 70) && (testState.nb_events < nb_events + count)) {
             debugLoop(100);
 
 /*	    printf("+"); fflush(stdout); */
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list