Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 726332

Summary: Prefix fails stage1 on cygwin because of python
Product: Gentoo/Alt Reporter: Alexey <alexey+gentoo>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal CC: alexey+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: stage1.log

Description Alexey 2020-05-30 23:09:05 UTC
!!! failed to apply python36-71f2ac2444946c97d892be3892e47d2a509e0e96/00189-use-rpm-wheels.patch

I see python-3.7.7 in var/tmp instead of 3.6
Comment 1 Alexey 2020-05-30 23:12:52 UTC
Created attachment 642798 [details]
stage1.log
Comment 2 Benda Xu gentoo-dev 2020-05-31 02:04:20 UTC
Python 3.6 will be removed from Gentoo soon.  We need to migrate to Python 3.7.
Comment 3 Fabian Groffen gentoo-dev 2020-05-31 08:05:11 UTC
yes, but cygwin patches are a pita.

Alexey you could try changing the following bit in bootstrap-prefix.sh:

PYTHONMAJMIN=3.7   # keep this number in line with PV below for stage1,2
bootstrap_python() {
    PV=3.7.7
    A=Python-${PV}.tar.xz
    patch=true

to

PYTHONMAJMIN=3.6   # keep this number in line with PV below for stage1,2
bootstrap_python() {
    PV=3.6.8
    A=Python-${PV}.tar.xz
    patch=true

Should you need the Python-3.6.8.tar.xz file, you can find a copy here:
https://bootstrap.prefix.bitzolder.nl/distfiles/python-3.6.8.tar.xz@ee55acedef049268307633cbc9c7ff0610d1244f
ensure to rename it to the aforementioned name in your distfiles directory.

We should try to upgrade the cygwin bits to 3.7, but this might get you through stage1.
Comment 4 Alexey 2020-05-31 08:15:44 UTC
Seems to work (so far) with 3.6.10, as that's the version available on distfiles.g.o
Comment 5 Fabian Groffen gentoo-dev 2020-05-31 08:25:35 UTC
that's fine too, of course
Comment 6 Fabian Groffen gentoo-dev 2021-01-21 16:49:42 UTC
this is likely not the only problem, cygwin is heavily under supported