ports/126815: devel/viewvc

Eygene Ryabinkin rea-fbsd at codelabs.ru
Mon Aug 25 07:10:02 UTC 2008

>Number:         126815
>Category:       ports
>Synopsis:       devel/viewvc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 25 07:10:01 UTC 2008
>Originator:     Eygene Ryabinkin
>Release:        FreeBSD 7.0-STABLE i386
Code Labs

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


There was a bug in the viewvc scripts that are used by mod_python,
script naming lead to the curcular module import problem,

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.


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

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


The following diffs are for 1.0.x:


More information about the freebsd-ports-bugs mailing list