Bug#465342: libmime-lite-perl: Unusable without mail-transport-agent
gregor herrmann
gregor+debian at comodo.priv.at
Tue Feb 12 15:57:49 UTC 2008
On Mon, 11 Feb 2008 23:30:27 +0000, Dominic Hargreaves wrote:
> > > libmime-lite-perl depends on nullmailer | mail-transport-agent.
> > > However, libmime-lite-perl does not actually need an MTA unless the
> You may believe this, but this doesn't make it true :)
And I believed it too, sorry.
> > After some discussion on IRC we've now moved the MTA from Depends
> > (as it's really not necessary) to Recommends (as 'sendmail' is the
> > default method for ->send() and therefore probably expected to work on
> > Linux systems).
> Sorry, no. Your change causes libmime-lite-perl to be entirely broken
> when no mail-transport-agent is available:
After reading the code again I agree; there's also an upstream bug
report:
http://rt.cpan.org/Public/Bug/Display.html?id=31245
> Please reinstate the dependency you removed, or patch upstream not to die
> under these conditions.
Ack, by this change the package (and its rdepends) are rather broken
:/
Actually I'd prefer a patch; the one at CPAN is not really elegant,
maybe we can come up with something more "elegant"?
First attempt:
Index: lib/MIME/Lite.pm
===================================================================
--- lib/MIME/Lite.pm (revision 14794)
+++ lib/MIME/Lite.pm (working copy)
@@ -401,7 +401,7 @@
}
}
unless (-x $SENDMAIL) {
- Carp::croak "can't find an executable sendmail"
+ Carp::carp "can't find an executable sendmail, you won't be able to use send_by_sendmail()"
}
}
Cheers,
gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : debian: the universal operating system - http://www.debian.org/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`- NP: Rod Stewart: Sweet Surrender
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080212/33a4334f/attachment-0001.pgp
More information about the pkg-perl-maintainers
mailing list