PHP GeoIP is missing the IPv6 support; it seems upstream does not have it ready yet, but there is working patch available: https://bugs.php.net/bug.php?id=59124 Reproducible: Always Steps to Reproduce: 1. Install dev-php/pecl-geoip-1.0.8-r1 2. Have php-page with GeoIP call with IPv6 address: <?php header('content-type: text/plain'); var_dump(geoip_country_name_by_name('2001:14b8:1ed::')); ?> Actual Results: Notice: geoip_country_name_by_name(): Host 2a00:1450:4001:c02::71 not found in geo.php on line 4 bool(false) Expected Results: string(7) "Ireland" As workaround, I wrote ebuild that just patches the source with the patch file from https://bugs.php.net/bug.php?id=59124
Created attachment 344648 [details] Ebuild file Ebuild file that applies pecl-geoip-1.0.8-further-ipv6.patch to pecl-geoip 1.0.8
Created attachment 344650 [details, diff] patch itself pecl-geoip-1.0.8-further-ipv6.patch from https://bugs.php.net/bug.php?id=59124 just in case
It is better to push upstream to make a release with the patch. We do not have the manpower to maintain patches adding features upstream is not supporting.