Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894078 - dev-python/pytables: rekeyword
Summary: dev-python/pytables: rekeyword
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard: cpuinfo needs explicit porting to som...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-12 19:15 UTC by Michał Górny
Modified: 2023-04-03 01:44 UTC (History)
3 users (show)

See Also:
Package list:
dev-python/pytables dev-python/py-cpuinfo
Runtime testing required: ---
nattka: sanity-check-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-12 19:15:32 UTC
Please restore keywords.
Comment 1 Jakov Smolić archtester gentoo-dev 2023-02-12 20:23:43 UTC
arm64 done
Comment 2 jinqiang zhang 2023-02-13 01:59:27 UTC
Looks good on riscv.

USE tests started on Mon Feb 13 00:38:29 -00 2023

FEATURES=' test' USE='' succeeded for =dev-python/pytables-3.8.0-r1

FEATURES=' test' USE='' succeeded for =dev-python/py-cpuinfo-9.0.0
Comment 3 Yixun Lan archtester gentoo-dev 2023-02-13 11:30:48 UTC
riscv done
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-02-20 21:29:13 UTC
ia64 done
Comment 5 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-02-20 21:58:24 UTC
x86 done
Comment 6 matoro archtester 2023-03-16 17:03:27 UTC
hppa is explicitly not supported:

======================================================================
ERROR: test_suite (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_suite
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/test_suite.py", line 39, in <module>
    from test_example import TestExample
  File "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/tests/test_example.py", line 4, in <module>
    from cpuinfo import *
  File "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/cpuinfo/__init__.py", line 3, in <module>
    from cpuinfo.cpuinfo import *
  File "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/cpuinfo/cpuinfo.py", line 2827, in <module>
    _check_arch()
  File "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/cpuinfo/cpuinfo.py", line 366, in _check_arch
    raise Exception("py-cpuinfo currently only works on X86 "
Exception: py-cpuinfo currently only works on X86 and some ARM/PPC/S390X/MIPS/RISCV CPUs.

What is this pulled in for and can we mask?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-28 20:04:18 UTC
(In reply to matoro from comment #6)
> hppa is explicitly not supported:
> 
> ======================================================================
> ERROR: test_suite (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_suite
> Traceback (most recent call last):
>   File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
>     module = self._get_module_from_name(name)
>   File "/usr/lib/python3.10/unittest/loader.py", line 377, in
> _get_module_from_name
>     __import__(name)
>   File
> "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/
> test_suite.py", line 39, in <module>
>     from test_example import TestExample
>   File
> "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/tests/
> test_example.py", line 4, in <module>
>     from cpuinfo import *
>   File
> "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/cpuinfo/
> __init__.py", line 3, in <module>
>     from cpuinfo.cpuinfo import *
>   File
> "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/cpuinfo/
> cpuinfo.py", line 2827, in <module>
>     _check_arch()
>   File
> "/var/tmp/portage/dev-python/py-cpuinfo-9.0.0/work/py-cpuinfo-9.0.0/cpuinfo/
> cpuinfo.py", line 366, in _check_arch
>     raise Exception("py-cpuinfo currently only works on X86 "
> Exception: py-cpuinfo currently only works on X86 and some
> ARM/PPC/S390X/MIPS/RISCV CPUs.
> 
> What is this pulled in for and can we mask?

pytables.
Comment 9 Larry the Git Cow gentoo-dev 2023-03-28 20:08:59 UTC
The bug has been referenced in the following commit(s):

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

commit e7322fc66f48be1cb4a1c8278474765ad835a807
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-28 20:08:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-28 20:08:49 +0000

    profiles/arch/hppa: mask dev-python/py-cpuinfo
    
    Bug: https://bugs.gentoo.org/894078
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/hppa/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 10 NATTkA bot gentoo-dev 2023-03-28 20:12:28 UTC
Unable to check for sanity:

> package masked: dev-python/py-cpuinfo-9.0.0, in all profiles for arch: hppa
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-03 01:27:01 UTC
(In reply to Sam James from comment #8)
> We may need to add a fallback at
> https://github.com/PyTables/PyTables/blob/
> fe8567f4cf6d7d83d379739f4d028ca5f6055d0b/tables/leaf.py#L338.

Done as https://github.com/PyTables/PyTables/pull/1013.
Comment 12 Larry the Git Cow gentoo-dev 2023-04-03 01:35:20 UTC
The bug has been closed via the following commit(s):

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

commit 17b7393607ac3b08735d76bce6287d31d4d5f27f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-03 01:27:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-03 01:30:33 +0000

    dev-python/pytables: make cpuinfo optional
    
    py-cpuinfo needs explicit porting to a platform and it's only lightly used
    in pytables. Apply a patch which I've sent upstream to make it optional and
    restore keywords accordingly.
    
    We add a USE=cpudetection for arches where pytables is known to work.
    
    Closes: https://bugs.gentoo.org/894078
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/pytables-3.8.0-optional-cpuinfo.patch    | 66 +++++++++++++++++
 dev-python/pytables/metadata.xml                   |  3 +
 dev-python/pytables/pytables-3.8.0-r2.ebuild       | 82 ++++++++++++++++++++++
 profiles/arch/amd64/package.use.mask               |  4 ++
 profiles/arch/base/package.use.mask                |  5 ++
 5 files changed, 160 insertions(+)