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
Description: OpenPGP digital signature
