Discussion:
[devinfo] Package importing
John Crisp
2018-10-30 13:44:31 UTC
Permalink
OK,

As you know I have been wrestling with perl GeoIP2.

https://bugs.contribs.org/show_bug.cgi?id=9033

The old version is going EOL and the DBs will be pulled on the 2nd Jan
2019 so I need to get it working. So far it seems OK but we have to use
the Openfusion repo for a number of packages which is a private repo.

The suggestion was to pull in there SRPMs to smeserver. I am happy to
have a go at doing this <gulp>

Here are the initial RPMs required.

perl(Data::Validate::IP) >= 0.19
perl(JSON)
perl(List::MoreUtils)
perl(MaxMind::DB::Reader)
perl(Moo)
perl(Moo::Role)
perl(Params::Validate)
perl(Path::Class)
perl(Sub::Quote)
perl(Test::Fatal)
perl(Throwable::Error)
perl(Try::Tiny)

At the same time the updated GeoIP packages also break the mailstats
script as per this:

https://bugs.contribs.org/show_bug.cgi?id=10523

I have built an updated RPM it requires perl-IO-Socket-INET6

At the same time (haha) there is also this:

https://bugs.contribs.org/show_bug.cgi?id=8532

Some of those modules are already in smeserver but are too old eg we have:
perl-IO-Socket-SSL-2.022

But to fix 8532 we really need this as a minimum so it needs updating:

perl-IO-Socket-SSL-2.023

Here is the list:

perl-HTTP-Tiny-0.056-1.rhel6.noarch.rpm (not in repo)
perl-IO-Socket-INET6-2.72-4.rhel6.noarch.rpm (not in repo)
perl-IO-Socket-SSL-2.023-1.rhel6.noarch.rpm (2.022 in repo)
perl-Net-IDN-Encode-2.300-1.rhel6.x86_64.rpm (not in repo)
perl-Net-SSLeay-1.72-2.0.cf.rhel6.x86_64.rpm (1.72 in repo)

I'm quite happy at trying to have a go at pulling all these in and maybe
killing a few birds with one stone.

Any comments??
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
michelandre
2018-10-30 14:07:47 UTC
Permalink
Hi John,

I had the same problem with WooCommerce in WordPress.

WooCommerce fixed the problem by intégrating GeoLite2 in their version-3.4.
https://woocommerce.com/posts/whats-new-woocommerce-3-4-gdpr-features-geolite2-integration/

* "The GeoLite2 integration requires a minimum PHP version of 5.4"

Maybe have a look at how they dit it. They are at version-3.5 now. You
can download it at:
https://fr.wordpress.org/plugins/woocommerce/

Michel-André

*************************************************************************
Post by John Crisp
OK,
As you know I have been wrestling with perl GeoIP2.
https://bugs.contribs.org/show_bug.cgi?id=9033
The old version is going EOL and the DBs will be pulled on the 2nd Jan
2019 so I need to get it working. So far it seems OK but we have to use
the Openfusion repo for a number of packages which is a private repo.
The suggestion was to pull in there SRPMs to smeserver. I am happy to
have a go at doing this <gulp>
Here are the initial RPMs required.
perl(Data::Validate::IP) >= 0.19
perl(JSON)
perl(List::MoreUtils)
perl(MaxMind::DB::Reader)
perl(Moo)
perl(Moo::Role)
perl(Params::Validate)
perl(Path::Class)
perl(Sub::Quote)
perl(Test::Fatal)
perl(Throwable::Error)
perl(Try::Tiny)
At the same time the updated GeoIP packages also break the mailstats
https://bugs.contribs.org/show_bug.cgi?id=10523
I have built an updated RPM it requires perl-IO-Socket-INET6
https://bugs.contribs.org/show_bug.cgi?id=8532
perl-IO-Socket-SSL-2.022
perl-IO-Socket-SSL-2.023
perl-HTTP-Tiny-0.056-1.rhel6.noarch.rpm (not in repo)
perl-IO-Socket-INET6-2.72-4.rhel6.noarch.rpm (not in repo)
perl-IO-Socket-SSL-2.023-1.rhel6.noarch.rpm (2.022 in repo)
perl-Net-IDN-Encode-2.300-1.rhel6.x86_64.rpm (not in repo)
perl-Net-SSLeay-1.72-2.0.cf.rhel6.x86_64.rpm (1.72 in repo)
I'm quite happy at trying to have a go at pulling all these in and maybe
killing a few birds with one stone.
Any comments??
_______________________________________________
Server Development Discussion
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
John Crisp
2018-10-30 14:38:44 UTC
Permalink
Post by michelandre
Hi John,
I had the same problem with WooCommerce in WordPress.
WooCommerce fixed the problem by intégrating GeoLite2 in their version-3.4.
https://woocommerce.com/posts/whats-new-woocommerce-3-4-gdpr-features-geolite2-integration/
* "The GeoLite2 integration requires a minimum PHP version of 5.4"
Thanks - I've got it running OK on SME at the minute thanks. It doesn't
require PHP for the server itself (though potentially PHP applications
can utilise the new DBs)

I'm just trying to simplify installation so we don't have to pull from a
lots of different repos.

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://
John Crisp
2018-10-30 23:26:35 UTC
Permalink
Unfortunately I can't see a way to avoid it at the minute.

Maxmind deprecated their v1 GeoLite databases, which are what perl-Geoip
depends on, as of March 2018. As of 2nd Jan 2019 they will remove them
entirely.

https://dev.maxmind.com/geoip/legacy/geolite/

Unless someone comes up with a different module to read the v2 GeoLite
databases then perl-GeoIP2 is all we have (I don't disagree it is a
cumbersome beast, but we have no alternatives currently)

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Loading...