Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953369 - dev-python/unittest-or-fail-2-r1 - [llvm] ERROR: dev-python/unittest-or-fail-2-r1::gentoo failed (compile phase):
Summary: dev-python/unittest-or-fail-2-r1 - [llvm] ERROR: dev-python/unittest-or-fail-...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2025-04-07 18:32 UTC by Toralf Förster
Modified: 2025-04-22 11:32 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.57 KB, text/plain)
2025-04-07 18:32 UTC, Toralf Förster
Details
dev-python:unittest-or-fail-2-r1:20250407-081053.log (dev-python:unittest-or-fail-2-r1:20250407-081053.log,2.89 KB, text/plain)
2025-04-07 18:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,222.48 KB, text/plain)
2025-04-07 18:32 UTC, Toralf Förster
Details
environment (environment,152.86 KB, text/plain)
2025-04-07 18:32 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.61 KB, application/x-xz)
2025-04-07 18:32 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.48 KB, application/x-xz)
2025-04-07 18:32 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,59.01 KB, application/x-xz)
2025-04-07 18:32 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,32.50 KB, application/x-xz)
2025-04-07 18:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-04-07 18:32:49 UTC
 *   dev-python/flit-core          : 3.12.0
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/unittest-or-fail-2-r1/work/unittest-or-fail-2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/unittest-or-fail-2-r1/work/unittest-or-fail-2 ...
 * python3_12: running distutils-r1_run_phase python_compile
 * ERROR: dev-python/unittest-or-fail-2-r1::gentoo failed (compile phase):
 *   No wheel installed in python_compile(), did you call distutils-r1_python_compile?
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20250403-002508

  Block bug #351559 if this looks like a parallel build issue.

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 20.1.2+libcxx
llvm-config: 20.1.2+libcxx
Python 3.12.9
go version go1.24.1 linux/amd64
  [1]   php8.2
  [2]   php8.4 *
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.1
  [2]   rust-1.85.1
  [3]   rust-bin-1.86
  [4]   rust-1.86 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 5322ff64c2e465234de7725e0bc1ec862ca6a29c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Apr 7 07:05:26 2025 +0000

    2025-04-07 07:05:26 UTC

emerge -qpvO =dev-python/unittest-or-fail-2-r1
[ebuild  N    ] dev-python/unittest-or-fail-2-r1  PYTHON_TARGETS="python3_12 -pypy3 -pypy3_11 -python3_10 -python3_11 -python3_13"
Comment 1 Toralf Förster gentoo-dev 2025-04-07 18:32:50 UTC
Created attachment 923808 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-04-07 18:32:51 UTC
Created attachment 923809 [details]
dev-python:unittest-or-fail-2-r1:20250407-081053.log
Comment 3 Toralf Förster gentoo-dev 2025-04-07 18:32:52 UTC
Created attachment 923810 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-04-07 18:32:54 UTC
Created attachment 923811 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-04-07 18:32:55 UTC
Created attachment 923812 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-04-07 18:32:56 UTC
Created attachment 923813 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-04-07 18:32:57 UTC
Created attachment 923814 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2025-04-07 18:32:58 UTC
Created attachment 923815 [details]
temp.tar.xz
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-04-07 18:38:22 UTC
Was it pulled as a dependency or directly?
Comment 10 Toralf Förster gentoo-dev 2025-04-07 19:57:59 UTC
(In reply to Michał Górny from comment #9)
> Was it pulled as a dependency or directly?

Mon Apr  7 08:10:40 -00 2025
dev-python/unittest-or-fail

These are the packages that would be merged, in reverse order:

Calculating dependencies  . .... done!
Dependency resolution took 11.74 s (backtrack: 0/20).

[ebuild  N     ] dev-python/unittest-or-fail-2-r1::gentoo  PYTHON_TARGETS="python3_12 -pypy3 -pypy3_11 -python3_10 -python3_11 -python3_13" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB
>>> Verifying ebuild manifests




Side note: It is a good question. Maybe I should attach the task log of the emerge process too to a bug report?
Comment 11 Toralf Förster gentoo-dev 2025-04-07 20:08:07 UTC
OT: I do not understand, why the current task is not in the attached emerge history, but it should be there: https://github.com/toralf/tinderbox/blob/main/bin/job.sh#L1200
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-09 06:37:38 UTC
This broke with:

commit 67f008f6acc086e0a58dfebd1b019bcdad73620a
Author: Michał Górny <mgorny@gentoo.org>
Date:   Wed Mar 26 12:32:32 2025 +0100

    distutils-r1.eclass: Add a safety check for wheel install done

    Add a safety check to verify that distutils_wheel_install is being
    (usually indirectly) called in python_compile(), when using PEP517
    build.  If it weren't, this usually indicates that
    distutils-r1_python_compile (or distutils_pep517_install) was not
    called.

    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/41222
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

because in unittest-or-fail, we do:

python_compile() {
        if has "${EPYTHON/./_}" "${PYTHON_USED[@]}"; then
                distutils-r1_python_compile
        fi
}
[...]
python_install() {
        if has "${EPYTHON/./_}" "${PYTHON_USED[@]}"; then
                distutils-r1_python_install
        fi
}
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-04-09 07:01:11 UTC
And we're only doing that to workaround pkgcheck limitations (otherwise it would consider packages depending on unittest-or-fail unsuitable for PythonCompatUpdate).

Maybe I'll just add a REQUIRED_USE in there.  It's not like there's any point in having this installed for py3.12+ only.
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-04-09 07:02:08 UTC
Or maybe we can last rite it entirely.  In the end, the purpose was to catch packages with wrong unittest calls — but given that py3.12+ doesn't need it, and py3.12+ testing will catch wrong unittest calls, I suppose we don't really need it anymore.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-09 07:11:17 UTC
I think it makes sense to kill it, yeah.