Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939463 - dev-lang/python-3.13.0_rc2: ERROR: test_makedev (test.test_posix.PosixTester.test_makedev) on musl
Summary: dev-lang/python-3.13.0_rc2: ERROR: test_makedev (test.test_posix.PosixTester....
Status: RESOLVED DUPLICATE of bug 936048
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting 931888
  Show dependency tree
 
Reported: 2024-09-11 10:15 UTC by Piotr Kubaj
Modified: 2024-10-28 14:26 UTC (History)
3 users (show)

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


Attachments
emerge --info (file_939463.txt,15.41 KB, text/plain)
2024-09-11 10:15 UTC, Piotr Kubaj
Details
build.log (dev-lang:python-3.13.0_rc2:20240911-100620.log,271.53 KB, text/x-log)
2024-09-11 10:16 UTC, Piotr Kubaj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj 2024-09-11 10:15:01 UTC
ERROR: test_makedev (test.test_posix.PosixTester.test_makedev)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-3.13.0_rc2/work/Python-3.13.0rc2/Lib/test/test_posix.py", line 730, in test_makedev
    self.assertEqual(posix.major(NODEV), NODEV)
                     ~~~~~~~~~~~^^^^^^^
OverflowError: can't convert negative int to unsigned

Reproducible: Always

Steps to Reproduce:
USE="pgo" emerge python:3.13
Comment 1 Piotr Kubaj 2024-09-11 10:15:53 UTC
Created attachment 902645 [details]
emerge --info
Comment 2 Piotr Kubaj 2024-09-11 10:16:42 UTC
Created attachment 902646 [details]
build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-11 22:06:10 UTC
What is NODEV for you?
Comment 4 Piotr Kubaj 2024-09-12 11:49:21 UTC
Looking at this test file, it's -1:
        if sys.platform == 'linux':
            NODEV = -1
            self.assertEqual(posix.major(NODEV), NODEV)
            self.assertEqual(posix.minor(NODEV), NODEV)
            self.assertEqual(posix.makedev(NODEV, NODEV), NODEV)
Comment 5 matoro archtester 2024-09-12 18:18:47 UTC
This looks musl-specific and arch-independent, was able to repro on arm64 musl as well.
Comment 6 matoro archtester 2024-10-28 14:26:43 UTC

*** This bug has been marked as a duplicate of bug 936048 ***