Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836836

Summary: sys-block/bmap-tools-3.6 fails test - ImportError: cannot import name tempfile from backports (/usr/lib/python3.9/site-packages/ba
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest, TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/30423
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt.bz2
environment
etc.portage.tar.bz2
sys-block:bmap-tools-3.6:20220405-054957.log
temp.tar.bz2
tests.tar.bz2

Description Toralf Förster gentoo-dev 2022-04-05 13:30:01 UTC
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/var/tmp/portage/sys-block/bmap-tools-3.6/work/bmap-tools-3.6/tests/test_bmap_helpers.py", line 25, in <module>
    from backports import tempfile as btempfile
ImportError: cannot import name 'tempfile' from 'backports' (/usr/lib/python3.9/site-packages/backports/__init__.py)

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

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4_test-20220330-230006

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
clang version 14.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.0
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.59.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0 *
  [3]   php8.1

  HEAD of ::gentoo
commit a91102cf6f41ccdc2ee62d36fcfaaa393fded6b3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Apr 5 04:51:55 2022 +0000

    2022-04-05 04:51:53 UTC

emerge -qpvO sys-block/bmap-tools
[ebuild  N    ] sys-block/bmap-tools-3.6  USE="test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-04-05 13:30:14 UTC
Created attachment 768873 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-05 13:30:16 UTC
Created attachment 768874 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-04-05 13:30:28 UTC
Created attachment 768875 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-04-05 13:30:29 UTC
Created attachment 768876 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-04-05 13:30:30 UTC
Created attachment 768877 [details]
sys-block:bmap-tools-3.6:20220405-054957.log
Comment 6 Toralf Förster gentoo-dev 2022-04-05 13:30:45 UTC
Created attachment 768878 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-04-05 13:30:46 UTC
Created attachment 768879 [details]
tests.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2023-03-31 19:48:48 UTC
The bug has been closed via the following commit(s):

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

commit a23e4642a774a77a03630807498f26b76403321a
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2023-03-31 17:24:48 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2023-03-31 19:48:07 +0000

    sys-block/bmap-tools: enable py3.11
    
    Enable py3.11.
    Update EAPI 7 -> 8.
    Use PEP517 mode.
    Drop dev-python/nose, run tests with pytest.
    Add upstream patch to remove dev-python/mock.
    
    Closes: https://bugs.gentoo.org/833258
    Closes: https://bugs.gentoo.org/836836
    Closes: https://bugs.gentoo.org/878729
    Closes: https://bugs.gentoo.org/897276
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 ...p-tools-3.6.ebuild => bmap-tools-3.6-r1.ebuild} | 27 ++++---
 .../files/bmap-tools-3.6-mock-import-pattern.patch | 94 ++++++++++++++++++++++
 .../files/bmap-tools-3.6-unittest-mock.patch       | 44 ++++++++++
 3 files changed, 154 insertions(+), 11 deletions(-)