From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#29485: perl-geo-ip has /usr/share/ within the code Date: Tue, 28 Nov 2017 15:53:37 +0000 Message-ID: <20171128155337.44rmfg4xirapagvq@abyayala> References: <20171128154158.p3k4jyn3izfimfu5@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k3667ktj7dvvuxrw" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJiCz-0002oZ-T8 for bug-guix@gnu.org; Tue, 28 Nov 2017 10:54:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJiCw-0002Ft-1e for bug-guix@gnu.org; Tue, 28 Nov 2017 10:54:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:54342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJiCv-0002Fn-TK for bug-guix@gnu.org; Tue, 28 Nov 2017 10:54:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJiCv-0008Qx-JI for bug-guix@gnu.org; Tue, 28 Nov 2017 10:54:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <20171128154158.p3k4jyn3izfimfu5@abyayala> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 29485@debbugs.gnu.org --k3667ktj7dvvuxrw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ng0 transcribed 2.5K bytes: > I'm searching for a good solution to analyze some logs. Geo::IP > is good enough. Now the problem is this: >=20 > user@abyayala /gnu/store/5mhrli41qbcpns3gg0yf1vv07lvpg8hm-perl-geo-ip-1.5= 1$ egrep -nr "/usr/" lib/perl5/site_perl/5.26.0/ > lib/perl5/site_perl/5.26.0/Geo/IP/Record.pod:9: my $gi =3D Geo::IP->open= ("/usr/local/share/GeoIP/GeoIPCity.dat", GEOIP_STANDARD); > lib/perl5/site_perl/5.26.0/Geo/IP.pm:5075:# default path /usr/local/share= /GeoIP > lib/perl5/site_perl/5.26.0/Geo/IP.pm:5159: my $def_db_file =3D '/usr/l= ocal/share/GeoIP/GeoIP.dat'; > lib/perl5/site_perl/5.26.0/Geo/IP.pm:5962: my $gi =3D Geo::IP->open("/us= r/local/share/GeoIP/GeoIPCity.dat", GEOIP_STANDARD); > lib/perl5/site_perl/5.26.0/Geo/IP.pm:5984: my $g =3D Geo::IP->open('/usr= /local/share/GeoIP/GeoIPv6.dat') or die; > lib/perl5/site_perl/5.26.0/Geo/IP.pm:6046:I, typically I. > lib/perl5/site_perl/5.26.0/Geo/IP.pm:6078:typically I. > lib/perl5/site_perl/5.26.0/Geo/IP.pm:6226: my $g =3D Geo::IP->open('/usr= /local/share/GeoIP/GeoIPv6.dat') or die; >=20 > However this is not really a problem unless you are on GuixSD. > As we do not package the DB of MaxDB (yet) you'll need for this, it's > not a problem. I'm filing this bug to remind myself to fix Geo::IP once > I have revisited the discussion we had about the DB a while back. > --=20 > GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 > GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys > WWW: https://n0.is They comment this in the file: # --- unfortunately we do not know the path so we assume the # default path /usr/local/share/GeoIP # if thats not true, you can set $Geo::IP::PP_OPEN_TYPE_PATH But I think we should fix it once we have the data set. WDYT? --=20 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys WWW: https://n0.is --k3667ktj7dvvuxrw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlodhoEACgkQ4i+bv+40 hYhJbw//dC8uFlkWtCUt30dyG7tapwFEw66mpU59+YKxixeC0cc0WEwPXceR+I/h fWLvdY4p/Ec2aqgGbzRLIyBGskVvuPjiWWzdd1tUuE+NYbvzSAwbhJuWgj2AAnQY PknlfjYZRukTJv7gtyvIj4rKXuApL3LYK0wV9hS3OR/IDnqp9DUSwekfKiXno8NJ 7ctHAKzfKLKBLLJIV7mzUMqQ1mZRyH+Ya778HGxf50VmCHYZARRqosneto/XmSBc c5NLWrC7x3veR/U8ICmPeXx3DdxUAoMazR58O8xFj0Hb7mGO4ccyOzg28WqkoViH j5VMm/d0O4e4ZkwKu9uxLZkqVVxDnGKJ3NJ1rJUuMDtNfkmS7kv4AwPVD+qWlrKH GZYByBY99FhH9JDDuv7ro1kW4zwT0LfA3ff+xuVvl6NVxs4nv53qfO/Db3cT5HH2 fL0LHXo8weyiBZYvCs2QUx/KKvW6NlFyXcymJaty+j232AEhJmMRnekcxPgHJl9k EVVjREW0W2UasUCFYDr+GaD4Yz2MSh86KelvCTMeoaS3dLBsLE+exeX+5X1T9wyP eM4x5Eoj37l2D+UInYQ6thv6fee8iQBsBU/sgcu8Fxw5ELYzxq6/yCndGL+AufQL Eqr6JO827uiVjQ2XIPdmURnVDE96Qzkovwgh3eVos73IpsgSVYE= =RPnx -----END PGP SIGNATURE----- --k3667ktj7dvvuxrw--