Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729442 - dev-libs/libxml2-2.9.10 stable request (was: dev-libs/libxml2 - add python3_9 support)
Summary: dev-libs/libxml2-2.9.10 stable request (was: dev-libs/libxml2 - add python3_9...
Status: RESOLVED DUPLICATE of bug 710748
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: py39, python3.9-compat
  Show dependency tree
 
Reported: 2020-06-24 13:45 UTC by charles17
Modified: 2020-07-30 09:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description charles17 2020-06-24 13:45:26 UTC
dev-libs/libxml2 should support python3_9
needed by @system
Comment 1 Helmut Jarausch 2020-07-29 14:48:33 UTC
One has to add the following lines to src_prepare in the ebuild file

	sed -i -e's/PyLong_Check(obj)/(PyLong_Check(obj))/g' \
        -e's/PyBool_Check (obj)/(PyBool_Check (obj))/g' \
        -e's/PyBytes_Check (obj)/(PyBytes_Check (obj))/g' \
        -e's/PyUnicode_Check (obj)/(PyUnicode_Check (obj))/g' \
        -e's/PyList_Check (obj)/(PyList_Check (obj))/g'  \
        -e's/PyFloat_Check (obj)/(PyFloat_Check (obj))/g' python/types.c
	sed -i -e's/PyUnicode_Check (ret)/(PyUnicode_Check (ret))/g' python/libxml.c
Comment 2 Matt Turner gentoo-dev 2020-07-29 21:00:34 UTC
I added (untested by me) python3_9 support in 53ccf8fa1b30f2a7baebd9617de599e3109963b4. Could you test and confirm that it's working as expected?
Comment 3 charles17 2020-07-30 06:49:55 UTC
(In reply to Matt Turner from comment #2)
[...]
> it's working as expected?

Just compiled on one computer  without any trouble
*/* PYTHON_TARGETS: python3_8 python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_8
Comment 4 charles17 2020-07-30 09:12:25 UTC
Use this bug for stabilization
Comment 5 charles17 2020-07-30 09:18:34 UTC

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