Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849563 - dev-python/kiwisolver-1.4.2: python3_11 target build failure
Summary: dev-python/kiwisolver-1.4.2: python3_11 target build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL: https://github.com/nucleic/kiwi/issue...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-03 20:10 UTC by James Beddek
Modified: 2022-06-03 21:30 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.log,8.40 KB, text/x-log)
2022-06-03 20:10 UTC, James Beddek
Details
build.log (build.log,32.13 KB, text/x-log)
2022-06-03 20:11 UTC, James Beddek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Beddek 2022-06-03 20:10:47 UTC
Created attachment 782600 [details]
emerge --info

Building for the python3_11 target fails with the following:

/usr/include/python3.11/pyport.h:47:24: error: invalid ‘static_cast’ from type ‘int’ to type ‘_object*’
   47 |                 return static_cast<type>(const_cast<expr_type &>(expr));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1

Candidate patch available here:

https://github.com/nucleic/kiwi/commit/f14059f532d6b5c6b505d9803b36a77b75546b18
https://github.com/nucleic/kiwi/pull/142
Comment 1 James Beddek 2022-06-03 20:11:30 UTC
Created attachment 782603 [details]
build.log
Comment 2 Larry the Git Cow gentoo-dev 2022-06-03 21:30:09 UTC
The bug has been closed via the following commit(s):

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

commit a4beea7769ceee4da95127da60dfbae27a127617
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-03 21:29:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-03 21:29:36 +0000

    dev-python/kiwisolver: add Python 3.11 patch
    
    Closes: https://bugs.gentoo.org/849563
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/kiwisolver-1.4.2-python311.patch         | 31 ++++++++++++++++++++++
 dev-python/kiwisolver/kiwisolver-1.4.2.ebuild      |  4 +++
 2 files changed, 35 insertions(+)