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.
Created attachment 661873 [details] emerge -pqv '=net-analyzer/net-snmp-5.9-r2::gentoo'
Created attachment 661876 [details] build.log
Created attachment 661879 [details] environment
pkg_setup() { use python && python-single-r1_pkg_setup } Yes, it was not called?!!!1eleven
What phase is failing? Something after src_install() apparently.
metadata/install-qa-check.d/60distutils-use-setuptools: python@gentoo.org
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.
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.
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(-)
*** Bug 744100 has been marked as a duplicate of this bug. ***
Add app-editors/qhexedit2 to list of affected. Applied workaround commit. Affected packages installed successfully.
*** Bug 744280 has been marked as a duplicate of this bug. ***