On Sat, Nov 05, 2005 at 10:03:16PM -0800, Don Armstrong wrote: > On Sun, 06 Nov 2005, Duncan Findlay wrote: > > On Sat, Nov 05, 2005 at 07:18:16PM -0800, Don Armstrong wrote: > > > libnet-dns-perl is now required by M::SA::Dns > > > > If it's not installed, a warning message is issued, spamassassin > > still runs. (If it's not, something wierd is happening -- it should > > issue an error, but keep going.) > > Hrm; it probably should actually have a dependency. That whole slath > of code in M::SA::Dns is rather craptacular though... it wraps the > requires in eval{} and then never checks their return values at all, > then blindly assumes that they succeded later on in the codebase. [The > only reason why this doesn't cause everything to explode is because > those places are wrapped in eval{} as well which only throw warnings.]
Everything that calls something in ::Dns or ::DnsResolver calls the method is_dns_available first I believe -- so it does work. We don't rely on dns being available without checking it first. > > > I'll make an NMU into the delayed queue sometime tomorrow to fix > > > this problem unless someone has some corrections to make to it. > > > > Please don't. > > > > I'll admit I'm a little short on time, and so I haven't > > appropriately responded to these reports but these are not bugs, > > strictly speaking. > > Heh. That's why I talked about it before blindly NMUing; trying to > keep the RC bugs in perl related packages to sane levels if possible. Thanks, I appreciate it. > > The error messages even go away if you set "dns_available no" in > > /etc/spamassassin/local.cf and comment out "loadplugin > > Mail::SpamAssassin::Plugin::SPF" in /etc/spamassassin/init.pre > > This should probably be the default then, with commentary in the > configuration files that you need to install these modules if you > uncomment those sections. I'm not so sure. I especially disagree with the dns_available bit, since libnet-dns-perl is a Recommends:, so it should be on by default. (If libnet-dns-perl is not enabled, it issues a warning). By the same logic the loadplugin line could debatably be commented out, since libmail-spf-query-perl is a Suggests. -- Duncan Findlay
signature.asc
Description: Digital signature