Package: po-debconf
Version: 1.0.15
Severity: important
Tags: patch

This script fails to compile due without Mail::Box::Manager installed:

Can't locate Mail/Box/Manager.pm in @INC (@INC contains: /etc/perl 
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 
/usr/local/lib/site_perl .) at /usr/bin/podebconf-report-po line 1144.

The intention of the code in question is to test for the existence of
the module and then exit gracefully if it is not found, but this does
not take account of the fact that the 'use' line is interpreted at compile
time, unconditionally.

Removing the 'use' line fixes the problem:

--- /usr/bin/podebconf-report-po        2008-06-13 00:46:37.000000000 +0100
+++ /tmp/podebconf-report-po    2009-03-15 19:25:09.000000000 +0000
@@ -1141,7 +1141,6 @@
 sub Postpone {
        my $mail = shift;
        if (eval { require Mail::Box::Manager }) {
-               use Mail::Box::Manager;
                my $mgr = new Mail::Box::Manager;
 
                my $folder = $mgr->open(folder => $MBOX, access => 'a');


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable'), (10, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages po-debconf depends on:
ii  gettext                0.17-4            GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  perl                   5.10.0-19         Larry Wall's Practical Extraction 

Versions of packages po-debconf recommends:
ii  libcompress-zlib-perl         2.012-1    Perl module for creation and manip
pn  libmail-box-perl              <none>     (no description available)
ii  libmail-sendmail-perl         0.79-5     Send email from a perl script

po-debconf suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to