[Bug 848997] New: Missing requirement on perl(Email::Date::Format)

bugzilla at redhat.com bugzilla at redhat.com
Fri Aug 17 03:14:00 UTC 2012


https://bugzilla.redhat.com/show_bug.cgi?id=848997

            Bug ID: 848997
        QA Contact: extras-qa at fedoraproject.org
          Severity: unspecified
           Version: 18
          Priority: unspecified
                CC: perl-devel at lists.fedoraproject.org,
                    tcallawa at redhat.com
          Assignee: tcallawa at redhat.com
           Summary: Missing requirement on perl(Email::Date::Format)
        Regression: ---
      Story Points: ---
    Classification: Fedora
                OS: Unspecified
          Reporter: bochecha at fedoraproject.org
              Type: Bug
     Documentation: ---
          Hardware: Unspecified
        Mount Type: ---
            Status: NEW
         Component: perl-Email-Simple
           Product: Fedora

Description of problem:
At line 11 of /usr/share/perl5/vendor_perl/Email/Simple/Creator.pm, one can
see:

  sub _date_header {
    require Email::Date::Format;
    Email::Date::Format::email_date();
  }

Perhaps it's because the requirement is declared inside a function that
rpmbuild doesn't pick it up automatically?

However, it is required for proper operation of the package.

==== Example script ====
[mathieu at localhost ~]$ cat testmail.pl 
use strict;
use Email::Sender::Simple qw(sendmail);
use Email::Simple;
use Email::Simple::Creator;
use Email::Sender::Transport::SMTP;

# -- Change to appropriate values ------------------------
my $from = 'foo at example.com';
my $to   = 'foo at example.com';
my $smtp = '10.0.0.1';
# --------------------------------------------------------

open(my $fh, $0);
my $body = join("", <$fh>);
close($fh);

my $email = Email::Simple->create(
   header => [
     To      => $to,
     From    => $from,
     Subject => "Perl module to send emails",
   ],
   body => $body,
);

my $transport = Email::Sender::Transport::SMTP->new({
   host => $smtp,
   port => 25,
});

sendmail($email, { transport => $transport });
========================

==== Script output ====
[mathieu at localhost ~]$ perl testmail.pl
Can't locate Email/Date/Format.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/usr/share/perl5/vendor_perl/Email/Simple/Creator.pm line 12.
=======================

Once I manually install perl-Email-Date-Format, the above script sends the
email properly.

Running repoquery with the --releasever parameter, I can see that the package
is missing the requirement in all versions of Fedora (from 16 to 18) and EPEL
(5 and 6).

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the perl-devel mailing list