Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 10:27:16 +0100 (CET)
From:      Sven Berkvens-Matthijsse <sven@ilse.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/93271: [PATCH] Port devel/gamin does not compile with GCC 2.x
Message-ID:  <200602130927.k1D9RGbX020380@serv7.ilse.net>
Resent-Message-ID: <200602130930.k1D9U4VY056925@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602130927.k1D9RGbX020380>