Summary: | [cygwin][prefix][patch] dev-lang/python-3.9.3 build failed | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Egor Y. Egorov <egorov_egor> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Other | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
python-3.9_libffi.patch build.log 2 python-3.9_pytype.patch build.log 3 python-3.9-soabi.patch python-3.9.3-do_not_remove_dll.patch (for ebuild) 03-python-3.9-eprefix.patch python-3.9.3-eprefix.patch (for ebuild) 04-python-3.9-cygwin-dll.a.patch |
Description
Egor Y. Egorov
2021-06-21 03:53:18 UTC
Created attachment 717267 [details]
build.log
This log without any my patches
Created attachment 717270 [details, diff]
python-3.9_libffi.patch
Fix finding of libffi
Created attachment 717273 [details]
build.log 2
build log with python-3.9_libffi.patch
In file included from ./Include/pytime.h:6,
from ./Include/Python.h:85,
from /home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Modules/_xxsubinterpretersmodule.c:5:
/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Modules/_xxsubinterpretersmodule.c:1764:27: error: initializer element is not constant
PyVarObject_HEAD_INIT(&PyType_Type, 0)
^
Created attachment 717276 [details, diff]
python-3.9_pytype.patch
Created attachment 717279 [details]
build.log 3
Traceback (most recent call last):
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/compileall.py", line 17, in <module>
import struct
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/struct.py", line 13, in <module>
from _struct import *
ModuleNotFoundError: No module named '_struct'
Traceback (most recent call last):
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/compileall.py", line 17, in <module>
import struct
File "/home/e_egorov/gentoo_new/var/tmp/portage/dev-lang/python-3.9.3/work/Python-3.9.3/Lib/struct.py", line 13, in <module>
from _struct import *
ModuleNotFoundError: No module named '_struct'
Created attachment 717282 [details, diff]
python-3.9-soabi.patch
Created attachment 717285 [details, diff]
python-3.9.3-do_not_remove_dll.patch (for ebuild)
This patch allow preserve file libpython3.9.dll.a needed for linking other packages
See also #797262 With this patches python built fine on my system Created attachment 722026 [details, diff]
03-python-3.9-eprefix.patch
Fix search libraries
Created attachment 722029 [details, diff]
python-3.9.3-eprefix.patch (for ebuild)
Created attachment 722032 [details, diff]
04-python-3.9-cygwin-dll.a.patch
Patches are also available at https://github.com/eegorov/cygwin-gentoo-etc-portage/tree/main/patches/dev-lang/python-3.9.3 Ebuild available at https://github.com/eegorov/cygwin-local-repo/tree/main/dev-lang/python support for Cygwin was dropped |