Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210994 - www-apps/viewvc-1.0.4-r1 wrong LIBRARY_DIR in viewvc.cgi
Summary: www-apps/viewvc-1.0.4-r1 wrong LIBRARY_DIR in viewvc.cgi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-21 16:14 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2008-02-22 08:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2008-02-21 16:14:37 UTC
One needs to change /usr/share/webapps/viewvc/1.0.4-r1/hostroot/cgi-bin/viewvc.cgi

from
LIBRARY_DIR = "/usr/lib/python2.5/site-packages/viewvc"
to
LIBRARY_DIR = "/usr/lib/python2.5/site-packages/viewvc/lib"


I still get a python error, but that might because of my config file.

Reproducible: Always
Comment 1 Christoph Brill (egore) (RESIGNED) 2008-02-21 16:39:23 UTC
And I also get and I just can't find a reason why viewvc picks that directory as my template path.

An Exception Has Occurred
Python Traceback

Traceback (most recent call last):
  File "//usr/lib/python2.5/site-packages/viewvc/lib/viewvc.py", line 3665, in main
    request.run_viewvc()
  File "//usr/lib/python2.5/site-packages/viewvc/lib/viewvc.py", line 388, in run_viewvc
    self.view_func(self)
  File "//usr/lib/python2.5/site-packages/viewvc/lib/viewvc.py", line 1762, in view_directory
    generate_page(request, "directory", data)
  File "//usr/lib/python2.5/site-packages/viewvc/lib/viewvc.py", line 839, in generate_page
    template = get_view_template(request.cfg, view_name, request.language)
  File "//usr/lib/python2.5/site-packages/viewvc/lib/viewvc.py", line 833, in get_view_template
    template = ezt.Template(tname)
  File "//usr/lib/python2.5/site-packages/viewvc/lib/ezt.py", line 293, in __init__
    self.parse_file(fname, base_format)
  File "//usr/lib/python2.5/site-packages/viewvc/lib/ezt.py", line 298, in parse_file
    self.parse(_FileReader(fname), base_format)
  File "//usr/lib/python2.5/site-packages/viewvc/lib/ezt.py", line 686, in __init__
    self.text = open(fname, 'rb').read()
IOError: [Errno 2] No such file or directory: '/usr/share/webapps/viewvc/templates/directory.ezt'
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-22 08:56:12 UTC
should be fixed now ... 

LIBRARY_DIR is still /usr/lib/python2.5/site-packages/viewvc, the ebuild just installed it in the wrong place ... i also fixed the location of templates and some helper utilities