Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634848 - app-arch/rpm should not run python_setup w/o USE="python" ( fails pkg_setup : No Python implementation selected for the build. )
Summary: app-arch/rpm should not run python_setup w/o USE="python" ( fails pkg_setup :...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-20 07:22 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2018-10-20 11:39 UTC (History)
0 users

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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-10-20 07:22:30 UTC
Given the required-use constraint suggests a python version is not required with USE=-python, this check is just doing the wrong thing.

Maybe it needs:

pkg_setup() {
   use python && python-single-r1_pkg_setup
}

Or something.

[ebuild  N     ]  app-arch/rpm-4.12.0.1::gentoo  USE="acl nls -caps -doc -lua -python (-selinux)" PYTHON_TARGETS="-python2_7" 4,033 KiB

>>> Emerging (5 of 6) app-arch/rpm-4.12.0.1::gentoo
 * rpm-4.12.0.1.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                              [ ok ]
 * No Python implementation selected for the build. Please set
 * the PYTHON_TARGETS variable in your make.conf to include one
 * of the following values:
 * 
 * python2_7

 * ERROR: app-arch/rpm-4.12.0.1::gentoo failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET/PYTHON_TARGETS.
 * 
 * Call stack:
 *                 ebuild.sh, line 124:  Called pkg_setup
 *                 ebuild.sh, line 357:  Called python-single-r1_pkg_setup
 *   python-single-r1.eclass, line 562:  Called python_setup
 *   python-single-r1.eclass, line 552:  Called die
 * The specific snippet of code:
 *   		die "No supported Python implementation in PYTHON_SINGLE_TARGET/PYTHON_TARGETS."
Comment 1 Larry the Git Cow gentoo-dev 2018-10-20 11:39:16 UTC
The bug has been closed via the following commit(s):

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

commit e9e4de31cb72614a7b767dec7f8462705928de67
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2018-10-20 11:08:36 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2018-10-20 11:39:00 +0000

    app-arch/rpm: Don't run python pkg_setup always (#634848 by kentnl)
    
    Closes: https://bugs.gentoo.org/634848
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 app-arch/rpm/rpm-4.14.1-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)