Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708564 - dev-db/mongodb: invalid use of python_gen_any_dep
Summary: dev-db/mongodb: invalid use of python_gen_any_dep
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-02-07 07:29 UTC by Michał Górny
Modified: 2020-03-22 12:31 UTC (History)
1 user (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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-02-07 07:29:42 UTC
The ebuild is missing python_check_deps() function entirely.  Furthermore, it is using two incompatible python_gen_any_dep() calls.  python_gen_any_dep must be called exactly once for a given USE flag combination.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-02-26 06:05:40 UTC
Plus, it's also implicitly depending on SCons which makes it even a greater horror of a package.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-02-26 07:35:51 UTC
Here's how to fix it:

https://dev.gentoo.org/~mgorny/python-guide/buildsys.html#build-time-use-with-extra-dependencies

Note that I've stripped stuff irrelevant to the example, so you can't copy-paste it all.
Comment 3 Larry the Git Cow gentoo-dev 2020-03-22 10:57:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69d122bf7831a2fb0918eb0dba968012962f524d

commit 69d122bf7831a2fb0918eb0dba968012962f524d
Author:     Tomáš Mózes <hydrapolic@gmail.com>
AuthorDate: 2020-03-21 21:09:48 +0000
Commit:     Alexys Jacob <ultrabug@gentoo.org>
CommitDate: 2020-03-22 10:56:39 +0000

    dev-db/mongodb: improve python dependency checks
    
    Closes: https://bugs.gentoo.org/708564
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/15046
    Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>

 dev-db/mongodb/mongodb-4.0.16-r1.ebuild | 173 +++++++++++++++++++++++++++++++
 dev-db/mongodb/mongodb-4.2.3-r1.ebuild  | 176 ++++++++++++++++++++++++++++++++
 2 files changed, 349 insertions(+)
Comment 4 Tomáš Mózes 2020-03-22 12:31:14 UTC
Thanks @mgorny for improving mongodb in Gentoo.