Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568080 - dev-python/autobahn: unquoted wildcard in call to python_gen_usedep
Summary: dev-python/autobahn: unquoted wildcard in call to python_gen_usedep
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-12 17:10 UTC by Jouni Kosonen
Modified: 2015-12-13 14:07 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.txt,7.27 KB, text/plain)
2015-12-12 17:12 UTC, Jouni Kosonen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Kosonen 2015-12-12 17:10:16 UTC
Both dev-python/autobahn ebuilds contain an unquoted wildcard in the call to python_gen_usedep:

dev-python/autobahn/autobahn-0.10.4.ebuild:30:     >=dev-python/twisted-core-11.1[$(python_gen_usedep python2*)]
dev-python/autobahn/autobahn-0.9.4.2.ebuild:26:    dev-python/twisted-core[$(python_gen_usedep python2*)]

The argument should be either quoted as 'python2*' or written out as python2_7


Reproducible: Always




The wildcard gets evaluated against files in site-packages.

This breaks cache regeneration when there is a file in site-packages that has a name starting with python2, as with e.g. dev-python/pythondialog:python-2

# egencache --repo=gentoo --update
 * ERROR: dev-python/autobahn-0.9.4.2::gentoo failed (depend phase):
 *   No supported implementations match python_gen_usedep patterns: python2_pythondialog-3.3.0-py2.7.egg-info
 * 
 * Call stack:
 *                 ebuild.sh, line 624:  Called source '/usr/portage/dev-python/autobahn/autobahn-0.9.4.2.ebuild'
 *   autobahn-0.9.4.2.ebuild, line  30:  Called python_gen_usedep 'python2_pythondialog-3.3.0-py2.7.egg-info'
 *          python-r1.eclass, line 307:  Called die
 * The specific snippet of code:
 *      [[ ${matches[@]} ]] || die "No supported implementations match python_gen_usedep patterns: ${@}"
 * 
 * If you need support, post the output of `emerge --info '=dev-python/autobahn-0.9.4.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/autobahn-0.9.4.2::gentoo'`.
 * Working directory: '/usr/lib64/python2.7/site-packages'
 * S: '/var/tmp/portage/dev-python/autobahn-0.9.4.2/work/autobahn-0.9.4.2'
Comment 1 Jouni Kosonen 2015-12-12 17:12:27 UTC
Created attachment 419044 [details]
emerge --info
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-12-13 09:54:25 UTC
commit 3b9d29adf4a1e4fc13ea81482976892c9bdf5e37
Author: Justin Lecher <jlec@gentoo.org>
Date:   Sun Dec 13 10:22:58 2015 +0100

    dev-python/autobahn: Quote correctly wildcards for python_gen_usedep

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=568080

    Package-Manager: portage-2.2.26
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b9d29adf4a1e4fc13ea81482976892c9bdf5e37
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-12-13 14:07:14 UTC
commit 3b9d29adf4a1e4fc13ea81482976892c9bdf5e37
Author: Justin Lecher <jlec@gentoo.org>
Date:   Sun Dec 13 10:22:58 2015 +0100

    dev-python/autobahn: Quote correctly wildcards for python_gen_usedep

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=568080

    Package-Manager: portage-2.2.26
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b9d29adf4a1e4fc13ea81482976892c9bdf5e37