Package Details: lxr 2.0.2-1

Package Base: lxr
Description: general purpose source code indexer and cross-referencer
Upstream URL: http://sourceforge.net/projects/lxr/
Category: devel
Licenses: GPL2
Conflicts: lxr-cvs
Provides: lxr
Submitter: None
Maintainer: isaky
Last Packager: TrialnError
Votes: 0
First Submitted: 2011-01-30 18:44
Last Updated: 2014-09-11 11:43

Dependencies (13)

Required by (0)

Sources

Latest Comments

Anonymous comment

2012-02-03 08:21

I added experimental support for lighttpd in 0.11-beta with scripts for semi automatic configuration/installation.

If someone volunteers for testing, send me a e-mail using my SourceForge @ddress (available on the LXR site: lxr.sf.net or sf.net/projects/lxr) for tarball transmission. Anyway it won't be bad to upgrade to current version.

ajlittoz, LXR administrator

Anonymous comment

2011-12-31 20:45

> I tried to assign perl -T from withing lighttpd configuration, but did not succeed.

I investigated a bit and it looks like it's currently not possible to do assign a cgi command with arguments in lighttpd.
I tried to not assign a handler, and therefore, make lxr scripts execute by themselves, but it appears that execv a script whose shebang is
#!perl -W does not work. I managed to have a simpler lighttpd conf (ie: without an perlTaint script) by putting the full path to perl interpreter in lxr scripts:

#!/usr/bin/perl -W

then my lighttpd conf for cgi.assign was:

cgi.assign = ( "search" => "/usr/bin/perlTaint",
"diff" => "/usr/bin/perlTaint",
"ident" => "/usr/bin/perlTaint",
"source" => "/usr/bin/perlTaint" )
}

I don't known if this shebang limitation is specific to linux.

Anonymous comment

2011-12-24 09:51

@ajlittoz: I put the DBM modules into optdepends. These dependencies are not installed automatically. So it's up to the user to install the package he needs.

Anonymous comment

2011-12-23 09:50

Here is my lighttpd configuration

alias.url += ( "/lxr/" => "/usr/lib/lxr/cgi-bin/" )
$HTTP["url"] =~ "^/lxr/" {
cgi.assign = ( "search" => "/usr/bin/perlTaint",
"diff" => "/usr/bin/perlTaint",
"ident" => "/usr/bin/perlTaint",
"source" => "/usr/bin/perlTaint" )
}

perlTaint contains:
$ cat /usr/bin/perlTaint
#!/bin/sh
perl -T "${@}"

I tried to assign perl -T from withing lighttpd configuration, but did not succeed.

Note, that mod_cgi is enabled in my main lighttpd.conf file, I don't remember if that's the default on archlinux.

Anonymous comment

2011-12-23 09:18

The behaviour mentioned below results from the fact you must use "HTML-context" paths for 'stylesheet' and some other parameters in lxr.conf (see http://lxr.sf.net/LxrConf/lxrconffilepaths.shtml). The solution given is the right one.

By the way, I'm interesting in packaging LXR but my skills in this area are rather limited. What puzzles me is the various dependencies on Perl's DBI and DBM modules. How do you solve that?

@arenevier: Have you a working configuration for lighttpd I could add to the installation guide?

ajlittoz
LXR administrator

Anonymous comment

2011-12-11 08:59

@arenevier: Thank you for your hints. I moved some of the dependencies to optdepends and fixed the stylesheet issue.

Anonymous comment

2011-12-06 20:06

Thanks for the package.
I have a few suggestions about it:
First, I use lighttpd and postgresql, so I could not install the package with the given dependencies.

Then, the stylesheet configuration did not work for me.
Whith,
, 'stylesheet' => '/usr/share/lxr/templates/lxr.css'
I got
<link href="/usr/share/lxr/templates/lxr.css" rel="STYLESHEET" type="text/css">

To fix it, I used , 'stylesheet' => 'lxr.css' in my conf file, and put (actually, symlinked) lxr.css in /usr/lib/lxr/cgi-bin/

Regards,
arno