Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645254 - dev-python/pyusb-1.0.2 : [TEST] /.../environment:line <snip>: <snip> Segmentation fault ${PYTHON} testall.py
Summary: dev-python/pyusb-1.0.2 : [TEST] /.../environment:line <snip>: <snip> Segmenta...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-01-21 15:23 UTC by Toralf Förster
Modified: 2020-12-01 23:08 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.77 KB, text/plain)
2018-01-21 15:23 UTC, Toralf Förster
Details
dev-python:pyusb-1.0.2:20180121-123919.log (dev-python:pyusb-1.0.2:20180121-123919.log,6.25 KB, text/plain)
2018-01-21 15:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,147.33 KB, text/plain)
2018-01-21 15:23 UTC, Toralf Förster
Details
environment (environment,103.89 KB, text/plain)
2018-01-21 15:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.26 KB, application/x-bzip)
2018-01-21 15:23 UTC, Toralf Förster
Details
pyusb-1.1.0.ebuild (pyusb-1.1.0.ebuild,691 bytes, text/plain)
2020-11-28 10:53 UTC, Marek Szuba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-01-21 15:23:21 UTC
>>> Test phase: dev-python/pyusb-1.0.2
 * python2_7: running distutils-r1_run_phase python_test
/var/tmp/portage/dev-python/pyusb-1.0.2/temp/environment: line 2485:  7409 Segmentation fault      "${PYTHON}" testall.py
 * ERROR: dev-python/pyusb-1.0.2::gentoo failed (test phase):
 *   Tests failed with python2.7
 * 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_test_20180117-212411

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-python/pyusb
[ebuild  N    ] dev-python/pyusb-1.0.2  PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Comment 1 Toralf Förster gentoo-dev 2018-01-21 15:23:24 UTC
Created attachment 515670 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-01-21 15:23:27 UTC
Created attachment 515672 [details]
dev-python:pyusb-1.0.2:20180121-123919.log
Comment 3 Toralf Förster gentoo-dev 2018-01-21 15:23:30 UTC
Created attachment 515674 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-01-21 15:23:33 UTC
Created attachment 515676 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-01-21 15:23:36 UTC
Created attachment 515678 [details]
etc.portage.tbz2
Comment 6 Marek Szuba archtester gentoo-dev 2020-11-28 10:53:32 UTC
Created attachment 675556 [details]
pyusb-1.1.0.ebuild

Seems to be fixed in 1.1.0, attaching a working ebuild. Note that building this version against GitHub tarballs would require bypassing setuptools_scm, fortunately PyPI ones now include tests.

This also appears to take care of python3_9 support, that said I am not 100% sure of it - at the moment the only system I have got with full python_targets_python3_9 set-up is a container and over there one of the pyusb tests fails (on ALL Python versions) due to limited access to USB. All other tests pass on 3.9, though.
Comment 7 Larry the Git Cow gentoo-dev 2020-12-01 23:08:30 UTC
The bug has been closed via the following commit(s):

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

commit 75eec14cda77354d357710efacf66a8d4839e00c
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-12-01 23:08:02 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-12-01 23:08:21 +0000

    dev-python/pyusb: bump to 1.1.0
    
    Tests no longer segfault python, supports python3_9, some cosmetics.
    
    Pushed with permission from mgorny on behalf of the Python project.
    
    Closes: https://bugs.gentoo.org/645254
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 dev-python/pyusb/Manifest           |  1 +
 dev-python/pyusb/pyusb-1.1.0.ebuild | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)