From andrew@areilly.bpa.nu  Thu Sep  6 05:48:00 2007
Return-Path: <andrew@areilly.bpa.nu>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6C02C16A4A0
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Sep 2007 05:48:00 +0000 (UTC)
	(envelope-from andrew@areilly.bpa.nu)
Received: from qsrv03ps.mx.bigpond.com (qsrv03ps.mx.bigpond.com [144.140.82.183])
	by mx1.freebsd.org (Postfix) with ESMTP id 838E713C46A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Sep 2007 05:47:55 +0000 (UTC)
	(envelope-from andrew@areilly.bpa.nu)
Received: from oaamta08ps.mx.bigpond.com ([124.188.162.95])
          by omta05ps.mx.bigpond.com with ESMTP
          id <20070906014620.TIBI16593.omta05ps.mx.bigpond.com@oaamta08ps.mx.bigpond.com>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 6 Sep 2007 01:46:20 +0000
Received: from areilly.bpa.nu ([124.188.162.95])
          by oaamta08ps.mx.bigpond.com with ESMTP
          id <20070906014619.IOQE20695.oaamta08ps.mx.bigpond.com@areilly.bpa.nu>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 6 Sep 2007 01:46:19 +0000
Received: (qmail 55854 invoked by uid 501); 6 Sep 2007 01:45:53 -0000
Message-Id: <20070906014553.55853.qmail@areilly.bpa.nu>
Date: 6 Sep 2007 01:45:53 -0000
From: Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>
Reply-To: Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/cvsweb3 coloured side-by-side stopped working when moved to amd64?
X-Send-Pr-Version: 3.113
X-GNATS-Notify: noackjr@alumni.rice.edu

>Number:         116142
>Category:       ports
>Synopsis:       devel/cvsweb3 coloured side-by-side stopped working when moved to amd64?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 06 05:50:01 GMT 2007
>Closed-Date:    Thu Mar 13 12:32:09 UTC 2008
>Last-Modified:  Thu Mar 13 12:32:09 UTC 2008
>Originator:     Andrew Reilly
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD corvus.dolby.net 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Sep 1 13:37:37 EST 2007 root@corvus-mk2.dolbynet.net:/usr/obj/usr/src/sys/CORVUS amd64


	machine id a new Dell PowerEdge 840 with a Core2 Duo running at about 3GHz.
>Description:
	Asking CVSWeb for a colored side-by-side diff results in
	no page output at all: surmise crash.  Can't figure out how
	to debug something running in the web server cgi context,
	sorry.  Same configuration used to work fine on the old
	server, which was running FreeBSD-6.2-STABLE i386.  Possibility
	still exists that I've stuffed up the configuration, because
	I have also migrated from apache-1.x to apache22.

>How-To-Repeat:
	Install cvsweb3, point it at cvs repository, point browser
	at web server, choose a log file, select one of the "colored"
	diff links and see a white page with no contents.

>Fix:

	I have worked-around the problem by switching from devel/cvsweb3
	(which uses enscript+states for colouring) to devel/cvsweb,
	which seems to do all the work in perl, and works.  I suspect
	that the real problem is in the enscript installation,
	rather than cvsweb3 itself, although enscript does seem to
	run OK when run from the command line.  I can't figure out
	exactly what arguments and inputs the cgi-script cvsweb is
	using, though, so this test can't be considered conclusive.



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Sep 6 05:50:09 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116142 

From: "Jonathan Noack" <noackjr@alumni.rice.edu>
To: bug-followup@FreeBSD.org,
 andrew-freebsd@areilly.bpc-users.org
Cc:  
Subject: Re: ports/116142: devel/cvsweb3 coloured side-by-side stopped 
     working when moved to amd64?
Date: Fri, 12 Oct 2007 18:16:50 -0400 (EDT)

 On Thu, September 6, 2007 01:50, Edwin Groothuis wrote:
 > Maintainer of devel/cvsweb3,
 >
 > Please note that PR ports/116142 has just been submitted.
 >
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 >
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/116142
 
 Do the non-enscript diff versions work?  Set "$allow_enscript = 0;" in
 cvsweb.conf to completely disable enscript support.
 
 Try to uncomment the "$DEBUG = 1;" option in cvsweb.conf and check your
 web server error log.  Perhaps that will illuminate the cause of the
 problem.
 
 Unfortunately I don't have access to an amd64 machine so I have no way to
 try to reproduce.  The patch below coupled with "$DEBUG = 1;" will allow
 you to see what parameters are being passed to enscript by printing them
 to the web server error log.
 
 Final thought:
 We use devel/p5-IPC-Run to kick off the background enscript process.  I
 know devel/p5-IPC-Run in turn depends on devel/p5-IO-Tty.  Perhaps all the
 TTY changes in 7.x are causing problems?
 
 $ cvs -R diff -u cvsweb.cgi
 Index: cvsweb.cgi
 ===================================================================
 RCS file: /home/ncvs/projects/cvsweb/cvsweb.cgi,v
 retrieving revision 1.297
 diff -u -r1.297 cvsweb.cgi
 --- cvsweb.cgi  3 Dec 2005 18:39:45 -0000       1.297
 +++ cvsweb.cgi  12 Oct 2007 21:59:51 -0000
 @@ -3813,6 +3813,7 @@
    my @cmd = ($CMD{enscript},
               @enscript_options,
               '-q', "--language=$lang", '-o', '-', "--highlight=$highlight");
 +  print STDERR join(' ', @cmd), "\n";
 
    local *ENSCRIPT_OUT;
    my ($h, $err) =
 ************************************************************
 
 -Jonathan
 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Mon Mar 3 06:55:29 UTC 2008 
State-Changed-Why:  
Note that feedback was received some time ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116142 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Thu Mar 13 12:31:05 UTC 2008 
State-Changed-Why:  
Timeout on submitter. 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Thu Mar 13 12:31:05 UTC 2008 
Responsible-Changed-Why:  
Take possible followups 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116142 
>Unformatted:
