Re: Deprecated Perl support from Maxmind

Bill Cole <[email protected]>
Newsgroups gmane.mail.spam.spamassassin.general
Message-ID <[email protected]>
On 2025-03-12 at 07:47:34 UTC-0400 (Wed, 12 Mar 2025 12:47:34 +0100)
 <[email protected]>
is rumored to have said:

> On 3/11/25 2:51 PM, Andreas Vögele wrote:
>> Philip Prindeville wrote:
>>> What are other people doing now that MaxMind has deprecated Perl support for their databases?
>>
>> I'm the author of IP:Geolocation::MMDB, which is an API-compatible replacement for MaxMind::DB::Reader. Packages are in Fedora, in SUSE's devel:languages:perl repository and hopefully soon in Debian.
>>
>> I created the file MaxMind/DB/Reader.pm in my @INC path, which creates a subclass named MaxMind::DB::Reader. I've been using this work around for months with SpamAssassin:
>>
>>      use IP::Geolocation::MMDB;
>>      @MaxMind::DB::Reader::ISA = qw(IP::Geolocation::MMDB);
>>      1;
>>
>> Patching GeoDB.pm is also trivial:
>>
>>      --- a/lib/Mail/SpamAssassin/GeoDB.pm
>>      +++ b/lib/Mail/SpamAssassin/GeoDB.pm
>>      @@ -218,4 +218,7 @@ sub load_geoip2 {
>>         eval {
>>           require MaxMind::DB::Reader;
>>      +  } or eval {
>>      +    require IP::Geolocation::MMDB;
>>      +    @MaxMind::DB::Reader::ISA = qw(IP::Geolocation::MMDB);
>>        } or do {
>>           my $err = $@;
>>
> I think it would be better to add proper support for IP:Geolocation::MMDB and later deprecate MaxMind::DB::Reader instead.

+1

Screwing with the namespace to make it look like an abandoned module is available and in use when it is not isn't a precedent we want to set. That way lies madness.


-- 
 Bill Cole
 [email protected] or [email protected]
 (AKA @[email protected] and many *@billmail.scconsult.com addresses)
 Not Currently Available For Hire
signature.asc (application/pgp-signature, 285 B)
-----BEGIN PGP SIGNATURE-----

iJ4EAREKAEYWIQSD6xgpiXWgu9hXilLazUImdqvDjAUCZ9F9FCgcc2F1c2Vycy0y
MDE1MDIwNUBiaWxsbWFpbC5zY2NvbnN1bHQuY29tAAoJENrNQiZ2q8OMBt8A/ilo
6fsmzfqoQ/G1EhCkrvHEGWewELh2OMb9/GsE8A2jAP49j7007L5uzD3tbfkkrWLx
MiTWe6f5CkDagttgZhVoSA==
=5VNC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.