Bug#585796: local-debbugs: Cannot search
Package: debbugs-local
Version: 2.4.2~exp0
Following the advice in http://bugs.debian.org/542249, I _almost_
have debbugs-local working. I admit I am not very familiar with
how debbugs is supposed to work.
1. libnet-server-perl is needed for the Net::Server::Fork module used
by ‘local-debbugs --daemon’:
# cupt install nginx debbugs-local libhttp-server-simple-perl libnet-server-perl
# echo '1;' >/etc/debbugs/config
$ local-debbugs --mirror
2. $ENV is set here locally, which led to taint errors.
$ local-debbugs --daemon --no-detach &
$ local-debbugs --search severity:serious
[...]
Insecure $ENV{ENV} while running with -T switch at /usr/share/perl5/Debbugs/Config.pm line 292.
Compilation failed in require at /var/lib/debbugs/www/cgi/pkgreport.cgi line 18.
BEGIN failed--compilation aborted at /var/lib/debbugs/www/cgi/pkgreport.cgi line 18.
Adding “delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};” in
Debbugs/Config.pm right above “my $temp_hostname = qx(hostname --fqdn);”
fixes this. It would be possible to restore $ENV{ENV} afterwards, but
I don’t see much point.
3. Searches seem to require a /etc/debbugs/indices/sources file:
$ local-debbugs --search severity:serious
Unable to open /etc/debbugs/indices/sources for reading: No such file or directory at /usr/share/perl5/Debbugs/Packages.pm line 80.
Where can one acquire such a thing? I tried something crazy just to
make it work.
# cupt install debbugs
# debbugsconfig
created /etc/debbugs/text from template.
created /etc/debbugs/Maintainers from template.
created /etc/debbugs/Maintainers.override from template.
created /etc/debbugs/pseudo-packages.description from template.
cp: cannot create regular file `/etc/debbugs/indices/sources': No such file or directory
No such file or directory at /usr/sbin/debbugsconfig line 82.
# mkdir /etc/debbugs/indices
# debbugsconfig
[...]
index.html Access.html unable to write text versions of the HTMLs!if [...]
$ cat /etc/debbugs/indices/sources
extra main extra
sample main sample
sample-doc main sample
test main test
4. Searches seem to require a /var/lib/debbugs/spool/index.db:
$ local-debbugs --daemon --no-detach &
$ local-debbugs --search severity:serious
[...]
MLDBM error: Second level tie failed, "No such file or directory" at /usr/share/perl5/Debbugs/Bugs.pm line 461
Unable to open /var/lib/debbugs/spool/index.db for reading: No such file or directory at /usr/share/perl5/Debbugs/Bugs.pm line 563.
... and I’m beat.
Ideas?
Jonathan
Reply to: