gitweb PERL5LIB needs to include Perl version subdirectory

OpenSubmitted by Ricardo Wurmus.
Details
2 participants
  • Sarah Morgensen
  • Ricardo Wurmus
Owner
unassigned
Severity
normal
R
R
Ricardo Wurmus wrote on 11 Jun 2018 00:13
(address . bug-guix@gnu.org)
87k1r6z3wp.fsf@elephly.net
The “git” package provides “gitweb”, which is wrapped in PERL5LIB.
Gitweb has broken some time ago and now fails with an error about CGI.pm
not being found.

The reason seems to be that the Perl version sub-directory is not
searched for CGI.pm. The directory that gitweb.cgi is wrapped with
stops at “site_perl”, but it really should be “site_perl/5.26.1”.

--
Ricardo
S
S
Sarah Morgensen wrote on 25 Sep 2021 02:16
(name . Ricardo Wurmus)(address . rekado@elephly.net)(address . 31779@debbugs.gnu.org)
86y27lwltw.fsf@mgsn.dev
Hello Ricardo,

I found this old bug...

Ricardo Wurmus <rekado@elephly.net> writes:

Toggle quote (11 lines)
> The “git” package provides “gitweb”, which is wrapped in PERL5LIB.
> Gitweb has broken some time ago and now fails with an error about CGI.pm
> not being found.
>
> The reason seems to be that the Perl version sub-directory is not
> searched for CGI.pm. The directory that gitweb.cgi is wrapped with
> stops at “site_perl”, but it really should be “site_perl/5.26.1”.
>
> --
> Ricardo

While the value of PERL5LIB hasn't changed, I am able to run

git instaweb --httpd=lighttpd

and access the gitweb interface from there. Can you still reproduce
this?

--
Sarah
?