Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580796 - =dev-db/mongodb-3.0.11 - needs mongo-tools 3.2+ as no mongo-tools >=3.0.11 exists
Summary: =dev-db/mongodb-3.0.11 - needs mongo-tools 3.2+ as no mongo-tools >=3.0.11 ex...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL: https://jira.mongodb.org/browse/TOOLS...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-22 06:29 UTC by Tomáš Mózes
Modified: 2016-05-18 04:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2016-04-22 06:29:02 UTC
We have a dep on mongo-tools:
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"

This works just fine. But in case of MongoDB 3.0.11, we have no tools 3.0.11 (no release on github).

What if we grab the major mongodb version:
MONGODB_MAJOR=$(get_version_component_range 1-2)

And then use this as the dep for mongo-tools?
PDEPEND="tools? ( >=app-admin/mongo-tools-${MONGODB_MAJOR} )"

I don't know if the tools are backwards compatible and can be mixed.
Comment 1 Ultrabug gentoo-dev 2016-04-29 07:11:42 UTC
Yeah I dunno how I missed that one tbh... but no I don't think we should mix them together, they're binded for a reason.

I've opened an issue on github mongo-tools as per $URL
Comment 2 Tomáš Mózes 2016-04-29 09:49:52 UTC
Thanks
Comment 3 Ultrabug gentoo-dev 2016-05-17 15:45:18 UTC
fixed upstream, fixed in tree ;)
Comment 4 Tomáš Mózes 2016-05-18 04:22:10 UTC
Thanks!