From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jun 1 06:00:13 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFBC916A46D for ; Fri, 1 Jun 2007 06:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A118E13C465 for ; Fri, 1 Jun 2007 06:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5160Dnc069879 for ; Fri, 1 Jun 2007 06:00:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5160DB0069878; Fri, 1 Jun 2007 06:00:13 GMT (envelope-from gnats) Resent-Date: Fri, 1 Jun 2007 06:00:13 GMT Resent-Message-Id: <200706010600.l5160DB0069878@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tetsuya Uemura Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 18B4016A41F for ; Fri, 1 Jun 2007 05:52:47 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 09D2513C48A for ; Fri, 1 Jun 2007 05:52:47 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l515qkQJ019552 for ; Fri, 1 Jun 2007 05:52:46 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l515qkHP019551; Fri, 1 Jun 2007 05:52:46 GMT (envelope-from nobody) Message-Id: <200706010552.l515qkHP019551@www.freebsd.org> Date: Fri, 1 Jun 2007 05:52:46 GMT From: Tetsuya Uemura To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/113212: www/jesred: Fix incompatibility with Squid 2.6 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 06:00:13 -0000 >Number: 113212 >Category: ports >Synopsis: www/jesred: Fix incompatibility with Squid 2.6 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 01 06:00:12 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Tetsuya Uemura >Release: 6.2-STABLE >Organization: MACOME Corp. >Environment: FreeBSD s2882g3nr.macome.co.jp 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon May 21 10:45:49 JST 2007 uemura@s2882g3nr.macome.co.jp:/usr/obj/usr/src/sys/S2882G3NR amd64 >Description: >From Squid 2.6, it's url_rewrite_program (redirector) interface have been changed, and www/jesred can't handle new format. >How-To-Repeat: Install www/jesred and www/squid, then configure Squid to use jesred as its url_rewrite_program. >Fix: Apply attached patch to www/jesred so that it can handle both old and new format. Patch attached with submission follows: diff -u3rN www/jesred.orig/Makefile www/jesred/Makefile --- www/jesred.orig/Makefile Fri Jan 20 16:50:06 2006 +++ www/jesred/Makefile Fri Jun 1 14:21:55 2007 @@ -7,6 +7,7 @@ PORTNAME= jesred PORTVERSION= 1.2.1 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.linofee.org/~jel/webtools/src/ \ http://www.acad.bg/ftp/pub/src/misc/ diff -u3rN www/jesred.orig/files/patch-rewrite.c www/jesred/files/patch-rewrite.c --- www/jesred.orig/files/patch-rewrite.c Thu Jan 1 09:00:00 1970 +++ www/jesred/files/patch-rewrite.c Fri Jun 1 14:19:13 2007 @@ -0,0 +1,30 @@ +--- rewrite.c.orig Sat Aug 15 09:01:15 1998 ++++ rewrite.c Fri Jun 1 14:01:19 2007 +@@ -60,7 +60,7 @@ + int c, i; + struct in_addr address; + char *token, *new_token; +- char *end[4]; ++ char *end[5]; + + c = 0; + token = strchr(buff,' '); +@@ -87,11 +87,17 @@ + *new_token = '\0'; + end[3] = new_token; + *method = token; ++ new_token = strchr(token,' '); ++ if (new_token) { ++ c++; ++ *new_token = '\0'; ++ end[4] = new_token; ++ } + } + } + } + } +- if(c != 4) { ++ if(c < 4) { + for(i = 0; i < c; i++) { + if ( end[i] ) + *end[i] = ' '; >Release-Note: >Audit-Trail: >Unformatted: