Bug 1948457 - liborcus fails to build with Python 3.10: test failure
Summary: liborcus fails to build with Python 3.10: test failure
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: liborcus
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Tardon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-04-12 08:40 UTC by Tomáš Hrnčiar
Modified: 2021-05-02 19:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-02 19:31:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-04-12 08:40:09 UTC
liborcus fails to build with Python 3.10.0a7.

============================================================================
Testsuite summary for liborcus 0.16.1
============================================================================
# TOTAL: 8
# PASS:  7
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See src/python/test-suite.log
============================================================================
make[4]: Leaving directory '/builddir/build/BUILD/liborcus-0.16.1/src/python'
make[4]: *** [Makefile:1087: test-suite.log] Error 1
make[3]: *** [Makefile:1195: check-TESTS] Error 2
make[3]: Leaving directory '/builddir/build/BUILD/liborcus-0.16.1/src/python'
make[2]: *** [Makefile:1317: check-am] Error 2
make[2]: Leaving directory '/builddir/build/BUILD/liborcus-0.16.1/src/python'
make[1]: *** [Makefile:2154: check-recursive] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/liborcus-0.16.1/src'
make: *** [Makefile:1261: check-recursive] Error 1

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02124606-liborcus/

For all our attempts to build liborcus with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/liborcus/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 David Tardon 2021-05-02 17:28:23 UTC
This fails because the code expects that the string representation of an Enum contains the enum name, which is no longer true in 3.10:

# python3.9
Python 3.9.4 (default, Apr  6 2021, 00:00:00) 
[GCC 11.0.1 20210405 (Red Hat 11.0.1-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import enum
>>> Foo = enum.Enum('Foo', (('BAR', 1), ('BAZ', 2)))
>>> str(Foo.BAR)
'Foo.BAR'

# python3.10
Python 3.10.0a7 (default, Apr  6 2021, 00:00:00) [GCC 11.0.1 20210418 (Red Hat 11.0.1-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import enum
>>> Foo = enum.Enum('Foo', (('BAR', 1), ('BAZ', 2)))
>>> str(Foo.BAR)
'BAR'

Is this change expected?

Comment 2 David Tardon 2021-05-02 17:48:40 UTC
Never mind, found it: https://docs.python.org/3.10/whatsnew/3.10.html#enum ...


Note You need to log in before you can comment on or make changes to this bug.