Gregor Herrmann wrote:
On Tue, 25 Feb 2025 13:25:50 +0200, Faidon Liambotis wrote:* Package name : libip-geolocation-mmdb-perl Version : 1.012 Upstream Author : Andreas Vögele <voegelas@cpan.org> * URL : https://metacpan.org/release/IP-Geolocation-MMDBDo you know what the difference is between this module and MaxMind's official Perl library, MaxMind::DB::Reader, packaged in Debian as libmaxmind-db-reader-perl and libmaxmind-db-reader-xs-perl?Andreas (cc'd) is the expert but quoting from his mail to the debian-perl list: | Once the modules are available as packages, I'd like to get support | for IP::Geolocation::MMDB into SpamAssassin as an alternative to the | deprecated MaxMind::DB::Reader module. https://lists.debian.org/debian-perl/2025/02/msg00013.html
IP::Geolocation::MMDB is an API-compatible replacement for the deprecated MaxMind::DB::Reader module. Its runtime dependencies are libmaxminddb and modules that ship with Perl.
On the other hand, IP::Geolocation::MMDB requires Alien::Build and its dependencies if the module is built by CPAN smokers or with commands like "cpanm". If Debian provided IP::Geolocation::MMDB, the module could be used with minimal dependencies and replace MaxMind::DB::Reader in the long run. Fedora packages are already available.
I've also written Geo::Location::IP, which is a replacement for the deprecated GeoIP2 distribution. MaxMind does no longer update GeoIP2-perl. Geo::Location::IP and IP::Geolocation::MMDB, on the other hand, provide new methods that MaxMind added to libraries such as GeoIP2-python and MaxMind-DB-Reader-python. Currently, Geo::Location::IP depends on Object::Pad. The plan is to package Geo::Location::IP once Perl supports roles natively.
SpamAssassin can easily be modified to use IP::Geolocation::MMDB. The test suite is another beast. Some tests need to be run twice, once with MaxMind::DB::Reader and once with IP::Geolocation::MMDB.
Kind regards, Andreas