Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  8 Nov 2007 15:22:03 +0100 (CET)
From:      Philippe Audeoud <jadawin@tuxaco.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/117925: [patch] www/cgichk - unbreak gcc42
Message-ID:  <20071108142203.D74C0F1E8@huppa.tuxaco.net>
Resent-Message-ID: <200711081430.lA8EU1Yd023834@freefall.freebsd.org>

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

>Number:         117925
>Category:       ports
>Synopsis:       [patch] www/cgichk - unbreak gcc42
>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:   Thu Nov 08 14:30:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Philippe Audeoud
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD huppa.tuxaco.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Tue Mar 20 16:05:42 CET 2007 root@:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	- unbreak gcc42
	- update MASTER_SITES with SF macro
	- Bump PORTREVISION	
>How-To-Repeat:
	
>Fix:

	

--- patch-cgichk.1 begins here ---
diff -ruN www/cgichk.orig/Makefile www/cgichk/Makefile
--- www/cgichk.orig/Makefile	2007-11-08 12:51:21.000000000 +0000
+++ www/cgichk/Makefile	2007-11-08 13:59:02.000000000 +0000
@@ -7,9 +7,9 @@
 
 PORTNAME=	cgichk
 PORTVERSION=	2.60
+PORTREVISION=	1
 CATEGORIES=	www
-MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=	${PORTNAME}
+MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
@@ -18,12 +18,6 @@
 WRKSRC=		${WRKDIR}/${PORTNAME}
 ALL_TARGET=	cgichk
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN=		Broken with gcc 4.2
-.endif
-
 post-patch:
 	${REINPLACE_CMD} -e "s/^(CC|CFLAGS).+//g" ${WRKSRC}/Makefile
 	${REINPLACE_CMD} -e \
@@ -37,4 +31,4 @@
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN www/cgichk.orig/files/patch-cgichk.h www/cgichk/files/patch-cgichk.h
--- www/cgichk.orig/files/patch-cgichk.h	2007-11-08 12:51:21.000000000 +0000
+++ www/cgichk/files/patch-cgichk.h	2007-11-08 12:58:51.000000000 +0000
@@ -1,9 +1,10 @@
---- cgichk.h.orig	Wed Feb  5 00:36:57 2003
-+++ cgichk.h	Wed Feb  5 00:37:05 2003
-@@ -19,6 +19,7 @@
+--- cgichk.h.orig	2007-11-08 12:58:24.000000000 +0000
++++ cgichk.h	2007-11-08 12:58:46.000000000 +0000
+@@ -19,6 +19,8 @@
  
  #include <stdio.h>
  #include <stdlib.h>
++#include <string.h>
 +#include <sys/types.h>
  #include <sys/socket.h>
  #include <netinet/in.h>
diff -ruN www/cgichk.orig/files/patch-misc.c www/cgichk/files/patch-misc.c
--- www/cgichk.orig/files/patch-misc.c	1970-01-01 00:00:00.000000000 +0000
+++ www/cgichk/files/patch-misc.c	2007-11-08 13:43:26.000000000 +0000
@@ -0,0 +1,20 @@
+--- misc.c.orig	2007-11-08 13:41:34.000000000 +0000
++++ misc.c	2007-11-08 13:43:22.000000000 +0000
+@@ -92,7 +92,7 @@
+ 		hasport = 1;
+ 	
+ 	if (t = (char *)index(u, '/'))						// does host have path?
+-		(char *)haspath = 1;
++		haspath = 1;
+ 
+ 	if (hasport)
+ 		t = (char *)index(u, ':');
+@@ -209,7 +209,7 @@
+ 	return str;
+ }
+ /*----------------------------------------------------------------*/
+-char *strnstr(const char *HAYSTACK, const char *NEEDLE)
++char *cgichk_strnstr(const char *HAYSTACK, const char *NEEDLE)
+ {
+   char	*h, *n, *res;
+ 
diff -ruN www/cgichk.orig/files/patch-net.c www/cgichk/files/patch-net.c
--- www/cgichk.orig/files/patch-net.c	1970-01-01 00:00:00.000000000 +0000
+++ www/cgichk/files/patch-net.c	2007-11-08 13:29:58.000000000 +0000
@@ -0,0 +1,26 @@
+--- net.c.orig	2007-11-08 13:24:24.000000000 +0000
++++ net.c	2007-11-08 13:27:30.000000000 +0000
+@@ -150,10 +150,10 @@
+     {
+ 		if (parms.no_false_200_search == FALSE)
+ 		{
+-			if (strnstr(httpbuff, "file not found") ||
+-				strnstr(httpbuff, "error 404") ||
+-				strnstr(httpbuff, "document has moved") ||
+-				strnstr(httpbuff, "page you have requested") ) // Wise?
++			if (cgichk_strnstr(httpbuff, "file not found") ||
++				cgichk_strnstr(httpbuff, "error 404") ||
++				cgichk_strnstr(httpbuff, "document has moved") ||
++				cgichk_strnstr(httpbuff, "page you have requested") ) // Wise?
+ 			{
+ 				err = HTTP_NOEXIST;
+ 			}
+@@ -161,7 +161,7 @@
+ 			// If user spcified an additional string to search for, check for that too.
+ 			if (parms.alt_fake_404_string)
+ 			{
+-				if (strnstr(httpbuff, parms.alt_fake_404_string))
++				if (cgichk_strnstr(httpbuff, parms.alt_fake_404_string))
+ 				{
+ 					err = HTTP_NOEXIST;
+ 				}
--- patch-cgichk.1 ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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