From rea-fbsd@codelabs.ru  Mon Aug 25 07:02:12 2008
Return-Path: <rea-fbsd@codelabs.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 75C8E1065673
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Aug 2008 07:02:12 +0000 (UTC)
	(envelope-from rea-fbsd@codelabs.ru)
Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45])
	by mx1.freebsd.org (Postfix) with ESMTP id 327EC8FC16
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Aug 2008 07:02:11 +0000 (UTC)
	(envelope-from rea-fbsd@codelabs.ru)
Received: from phoenix.codelabs.ru ([91.78.251.88])
	by 0.mx.codelabs.ru with esmtps (TLSv1:CAMELLIA256-SHA:256)
	id 1KXW5a-00036L-2J for FreeBSD-gnats-submit@freebsd.org; Mon, 25 Aug 2008 11:02:10 +0400
Message-Id: <20080825070213.DDBF7F181D@phoenix.codelabs.ru>
Date: Mon, 25 Aug 2008 11:02:13 +0400 (MSD)
From: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Reply-To: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/viewvc
X-Send-Pr-Version: 3.113
X-GNATS-Notify: araujo@FreeBSD.org, gabor@FreeBSD.org, pgollucci@freebsd.org

>Number:         126815
>Category:       ports
>Synopsis:       devel/viewvc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 25 07:10:01 UTC 2008
>Closed-Date:    Mon Aug 25 09:22:08 UTC 2008
>Last-Modified:  Mon Aug 25 09:22:08 UTC 2008
>Originator:     Eygene Ryabinkin
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
Code Labs
>Environment:

System: FreeBSD XXX 7.0-STABLE FreeBSD 7.0-STABLE #1: Wed Aug 20 14:32:07 MSD 2008 root@XXX:/usr/obj/usr/src/sys/XXX i386

>Description:

There was a bug in the viewvc scripts that are used by mod_python,
script naming lead to the curcular module import problem,
  http://viewvc.tigris.org/issues/show_bug.cgi?id=369

Upstream had already received patch both for the development trunk and
for 1.0.x series.  For 1.0.x it was the new patch, for the trunk the
patch was re-merged, since it was semi-fixed by renaming the modules,
but it was felt that programmatical patch will be better.

>How-To-Repeat:

The simplest configuration is the following:
-----
Alias /viewvc /usr/local/viewvc/bin/mod_python/viewvc.py
<Directory /usr/local/viewvc/bin/mod_python/>
    AllowOverride None
    Options None

    AddHandler python-program .py
    PythonHandler handler

    Order deny,allow
    Allow from all
    Deny from all
</Directory>
-----

To narrow down and catch the essence of the problem, one can use
the following handler.py:
-----
import handler
-----

Was tested for the following software bundle: mod_python 3.3.1,
Apache 2.2.9, ViewVC 1.0.5, Python 2.5.2.

Moreover, there are reports from the other people and RPM packagers:
- http://osdir.com/ml/version-control.viewvc.user/2007-02/msg00030.html
- http://rpm.pbone.net/index.php3/stat/22/idpl/7375509/com/changelog.html
  (entry from Fri Aug 3 14:00:00 2007)
- http://article.gmane.org/gmane.comp.version-control.viewvc.user/1419
- http://article.gmane.org/gmane.comp.version-control.viewvc.user/1321

>Fix:

The following diffs are for 1.0.x:

  http://viewvc.tigris.org/source/browse/viewvc/branches/1.0.x/bin/mod_python/query.py?rev=1993&r1=1993&r2=1327&diff_format=u
  http://viewvc.tigris.org/source/browse/viewvc/branches/1.0.x/bin/mod_python/viewvc.py?rev=1993&r1=1327&r2=1993&diff_format=u
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pgollucci 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Aug 25 07:10:11 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To: bug-followup@FreeBSD.org
Cc: pgollucci@freebsd.org
Subject: Re: ports/126815: devel/viewvc
Date: Mon, 25 Aug 2008 13:17:01 +0400

 --oFbHfjnMgUMsrGjO
 Content-Type: text/plain; charset=koi8-r
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 This problem was fixed at Friday, 22 August 2008:
   ports/devel/viewvc/Makefile, r. 1.33=20
   ports/devel/viewvc/files/patch-svn-r1993, r. 1.1
 
 Works for me.  PR can be closed.
 
 Philip, thanks for hanling this!
 --=20
 Eygene
  _                ___       _.--.   #
  \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
  /  ' `         ,       __.--'      #  to read the on-line manual  =20
  )/' _/     \   `-_,   /            #  while single-stepping the kernel.
  `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
      _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook=20
     {_.-``-'         {_/            #
 
 --oFbHfjnMgUMsrGjO
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.9 (FreeBSD)
 
 iEYEARECAAYFAkiyeI0ACgkQthUKNsbL7Yiw9ACeMCoghMN3/PAZP6uKFPTD6biA
 zaUAnA3ZU/qjoyqV2ASTLeQAUa1+tmdr
 =y1rH
 -----END PGP SIGNATURE-----
 
 --oFbHfjnMgUMsrGjO--
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Mon Aug 25 09:22:07 UTC 2008 
State-Changed-Why:  
Previously comitted via e-mail 

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