Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744079 - metadata/install-qa-check.d/60distutils-use-setuptools: net-analyzer/net-snmp-5.9-r2 USE=-python - install_qa_check(): EPYTHON unset, python-single-r1_pkg_setup not called?!
Summary: metadata/install-qa-check.d/60distutils-use-setuptools: net-analyzer/net-snmp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 744100 744280 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-09-22 10:15 UTC by Alarig Le Lay
Modified: 2020-09-23 11:56 UTC (History)
4 users (show)

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


Attachments
emerge --info '=net-analyzer/net-snmp-5.9-r2::gentoo' (file_744079.txt,5.70 KB, text/plain)
2020-09-22 10:15 UTC, Alarig Le Lay
Details
emerge -pqv '=net-analyzer/net-snmp-5.9-r2::gentoo' (file_744079.txt,271 bytes, text/plain)
2020-09-22 10:15 UTC, Alarig Le Lay
Details
build.log (file_744079.txt,569.75 KB, text/plain)
2020-09-22 10:16 UTC, Alarig Le Lay
Details
environment (file_744079.txt,153.72 KB, text/plain)
2020-09-22 10:18 UTC, Alarig Le Lay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alarig Le Lay 2020-09-22 10:15:21 UTC
Created attachment 661870 [details]
emerge --info '=net-analyzer/net-snmp-5.9-r2::gentoo'

net-analyzer/net-snmp-5.9-r2 works until src_install but fails after because EPYTHON isn’t defined.

 * ERROR: net-analyzer/net-snmp-5.9-r2::gentoo failed:
 *   EPYTHON unset, python-single-r1_pkg_setup not called?!
 * 
 * Call stack:
 *            misc-functions.sh, line 596:  Called install_qa_check
 *            misc-functions.sh, line 132:  Called source 'install_symlink_html_docs'
 *   60distutils-use-setuptools, line  56:  Called distutils_use_setuptools_check
 *   60distutils-use-setuptools, line  39:  Called _distutils-r1_run_foreach_impl 'install_hooks'
 *                  environment, line 679:  Called die
 * The specific snippet of code:
 *               die "EPYTHON unset, python-single-r1_pkg_setup not called?!";
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/net-snmp-5.9-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/net-snmp-5.9-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/net-snmp-5.9-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/net-snmp-5.9-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/net-snmp-5.9-r2/image'
 * S: '/var/tmp/portage/net-analyzer/net-snmp-5.9-r2/work/net-snmp-5.9'
!!! post install failed; exiting.
Comment 1 Alarig Le Lay 2020-09-22 10:15:51 UTC
Created attachment 661873 [details]
emerge -pqv '=net-analyzer/net-snmp-5.9-r2::gentoo'
Comment 2 Alarig Le Lay 2020-09-22 10:16:57 UTC
Created attachment 661876 [details]
build.log
Comment 3 Alarig Le Lay 2020-09-22 10:18:05 UTC
Created attachment 661879 [details]
environment
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-22 10:38:43 UTC
pkg_setup() {
    use python && python-single-r1_pkg_setup
}

Yes, it was not called?!!!1eleven
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-22 10:42:05 UTC
What phase is failing? Something after src_install() apparently.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-22 10:44:26 UTC
metadata/install-qa-check.d/60distutils-use-setuptools: python@gentoo.org
Comment 7 Alarig Le Lay 2020-09-22 10:51:11 UTC
Yes, I was just digging a bit more and distutils_use_setuptools_check() doesn’t check if the pyhton use flag is enabled or not. I don’t know if it’s a bug on portage or on the ebuild.

As a quick fix, on my own overlay, I changed pkg_setup to python-single-r1_pkg_setup without any condition.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-09-22 10:58:28 UTC
DISTUTILS_OPTIONAL complicates this.  I'll probably rewrite it not to rely on distutils-r1 being called, and instead check if any eggs were installed.
Comment 9 Larry the Git Cow gentoo-dev 2020-09-22 11:12:52 UTC
The bug has been closed via the following commit(s):

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

commit 4b0b254144141866ac51f66ad27cadf477f43da3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-09-22 11:10:48 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-09-22 11:12:49 +0000

    install-qa-check.d: Fix DUS check for DISTUTILS_OPTIONAL
    
    Fix DISTUTILS_USE_SETUPTOOLS check to process all Python implementations
    with egg-infos present in site-packages (possibly none).  This fixes
    eclass errors when trying to call distutils-r1 functions when it is
    actually disabled in DISTUTILS_OPTIONAL ebuilds.  It also reduces noise
    while processing.
    
    Closes: https://bugs.gentoo.org/744079
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../install-qa-check.d/60distutils-use-setuptools  | 63 +++++++++++-----------
 1 file changed, 33 insertions(+), 30 deletions(-)
Comment 10 Craig Andrews gentoo-dev 2020-09-22 15:29:34 UTC
*** Bug 744100 has been marked as a duplicate of this bug. ***
Comment 11 Scott Furry 2020-09-22 17:34:12 UTC
Add app-editors/qhexedit2 to list of affected.

Applied workaround commit.
Affected packages installed successfully.
Comment 12 Marco Genasci 2020-09-23 11:56:53 UTC
*** Bug 744280 has been marked as a duplicate of this bug. ***