Bug 1677790 - ipcalc: missing libmaxminddb dependency
Summary: ipcalc: missing libmaxminddb dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ipcalc
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-15 21:55 UTC by Carl George
Modified: 2019-02-23 02:07 UTC (History)
2 users (show)

Fixed In Version: ipcalc-0.2.4-4.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-23 02:07:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Carl George 2019-02-15 21:55:49 UTC
Description of problem:
ipcalc doesn't require or recommend libmaxminddb, which is needed to make the `--geoinfo` flag work.

Version-Release number of selected component (if applicable):
ipcalc-0.2.4-2.fc29.x86_64

How reproducible:
always

Steps to Reproduce:
1. ipcalc -g 8.8.8.8


Actual results:
ipcalc: could not open /usr/lib64/libmaxminddb.so.0

Expected results:
COUNTRYCODE=US
COUNTRY="United States"
COORDINATES="37.751000,-97.822000"

Additional info:
I can see in the spec file that libmaxminddb-devel is a build requirement, so I'm surprised that a dependency on libmaxminddb.so.0 wasn't added automatically.

Comment 1 Nikos Mavrogiannopoulos 2019-02-18 08:27:40 UTC
The dependency is not added automatically because it is dlopened (intentionally so ipcalc can work in smaller installations too). I've added libmaxmind recommends to the spec and sent a new build.

Comment 2 Fedora Update System 2019-02-18 08:29:45 UTC
ipcalc-0.2.4-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8f99cf75e8

Comment 3 Fedora Update System 2019-02-19 06:27:17 UTC
ipcalc-0.2.4-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8f99cf75e8

Comment 4 Carl George 2019-02-19 14:05:00 UTC
The update adds the recommends for libmaxminddb, but it removes the existing recommends for geolite2-city and geolite2-country.  Upgrading users will get libmaxminddb, geolite2-city, and geolite2-country installed, but fresh installs will only get libmaxminddb.  This doesn't work.

With libmaxminddb, geolite2-city, and geolite2-country:
$ ipcalc -g 8.8.8.8
COUNTRYCODE=US
COUNTRY="United States"
COORDINATES="37.751000,-97.822000"

With just libmaxminddb:
$ ipcalc -g 8.8.8.8
(no output)

Please set the recommends to libmaxminddb, geolite2-city, and geolite2-country.

Comment 5 Nikos Mavrogiannopoulos 2019-02-19 15:53:25 UTC
I'd have expected libmaxminddb to recommend these, but since that's not the case, I'll add it here.

Comment 6 Fedora Update System 2019-02-20 07:58:00 UTC
ipcalc-0.2.4-4.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-0747e604d2

Comment 7 Fedora Update System 2019-02-21 03:47:17 UTC
ipcalc-0.2.4-4.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-0747e604d2

Comment 8 Fedora Update System 2019-02-23 02:07:15 UTC
ipcalc-0.2.4-4.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.