Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540968 - media-libs/mesa fails because of missing PYTHON_USEDEP
Summary: media-libs/mesa fails because of missing PYTHON_USEDEP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-22 04:14 UTC by Ben de Groot (RETIRED)
Modified: 2015-02-22 18:35 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 Ben de Groot (RETIRED) gentoo-dev 2015-02-22 04:14:14 UTC
checking if module mako in python is installed... No module named mako
configure: error: mako 0.3.4 or later is required.

Since mesa still requires mako for python-2.7 (WTF?) but doesn't specify so. Please add [${PYTHON_USEDEP}] to the dependency.
Comment 1 Matt Turner gentoo-dev 2015-02-22 07:00:22 UTC
Thanks for the report.

I must be doing something obviously wrong... but I'm not sure what:

> >=dev-python/mako-0.7.3[${PYTHON_USEDEP}]

yields:

> Error(s) in metadata for 'media-libs/mesa-10.5.0_rc1':
>  DEPEND: Invalid atom (Invalid use dep: ''), token 163

Looks like PYTHON_USEDEP is undefined, but we're inheriting python-any-r1 which seems to define it.

I see other packages like libxcb use python_gen_any_dep, but I don't understand why. In any case,

> $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")

seems to fix it. Is that what I should do?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-22 16:55:35 UTC
Global-scope won't work for python-any-r1 since it does not define any flags in IUSE. And yes, python_gen_any_dep is the correct solution.
Comment 3 Matt Turner gentoo-dev 2015-02-22 18:35:34 UTC
Thanks mgorny! And... fixed!