Package: gitweb
Version: 1:2.11.0-1
Severity: serious
Justification: Policy 3.5

After running full-upgrade today I noticed that my gitweb server started
returning internal server errors.  Apache's error.log contained many
repeats of this error:

[Mon Dec 12 17:03:04.782271 2016] [cgi:error] [pid 20116] [client 
163.172.66.30:41120] AH01215: Can't locate CGI.pm in @INC (you may need to 
install the CGI module) (@INC contains: /etc/perl 
/usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 
/usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 
/usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 
/usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at 
/usr/share/gitweb/index.cgi line 13.: /usr/share/gitweb/index.cgi
[Mon Dec 12 17:03:04.782303 2016] [cgi:error] [pid 20116] [client 
163.172.66.30:41120] AH01215: BEGIN failed--compilation aborted at 
/usr/share/gitweb/index.cgi line 13.: /usr/share/gitweb/index.cgi
[Mon Dec 12 17:03:04.782368 2016] [cgi:error] [pid 20116] [client 
163.172.66.30:41120] End of script output before headers: index.cgi

A search for CGI.pm revealed it to live in libcgi-pm-perl and installing
that package fixed the issue.  dpkg.log reveals that the package was
installed prior to today's upgrade.  I don't know why it got removed, and
the relevant output has already disappeared from my terminal scrollback.

The gitweb package suggests libcgi-fast-perl, which in turn depends on
libcgi-pm-perl.  However that won't be installed by default.  As gitweb's
index.cgi explicitly and unconditionally references the CGI module, it
seems that a direct dependency should be added to the gitweb package.

Mikko

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.1-core2 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages gitweb depends on:
ii  git   1:2.11.0-1
ii  perl  5.24.1~rc4-1

Versions of packages gitweb recommends:
ii  apache2 [httpd]    2.4.23-8
ii  libhttp-date-perl  6.02-1

Versions of packages gitweb suggests:
ii  apache2 [httpd-cgi]  2.4.23-8
pn  git-doc              <none>

-- Configuration Files:
/etc/gitweb.conf changed:
$projectroot = "/home/git";
$git_temp = "/tmp";
@diff_opts = ();


-- no debconf information

Reply via email to