Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686522 - bootstrap-prefix.sh fails glibc-2.29 reports python 2.7 as bad
Summary: bootstrap-prefix.sh fails glibc-2.29 reports python 2.7 as bad
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-22 05:02 UTC by Ooblick
Modified: 2019-05-27 09:42 UTC (History)
0 users

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 Ooblick 2019-05-22 05:02:44 UTC
During bootstrap-prefix.sh on a Centos-6 machine, glibc-2.29 fails to build due to python-2.7 not being sufficient. 

Reproducible: Always

Steps to Reproduce:
1. On Centos-6 run 'bootstrap-prefix.sh'

Actual Results:  
glibc-2.29 fails during ./configure due to python-2.7 being "bad"

Expected Results:  
bootstrap completes

According to the INSTALL file in glibc-2.29, it now requires at least "Python 3.4 or later" to compile. There is no python3 on this machine to fall back on.

Could bootstrap-prefix.sh be updated to also include python3?
Comment 1 Michael Haubenwallner (RETIRED) gentoo-dev 2019-05-22 07:34:10 UTC
Can confirm this per the Azure pipelines for openSUSE and Ubuntu:
https://dev.azure.com/gentoo-prefix/ci-builds/_build
Comment 2 Benda Xu gentoo-dev 2019-05-22 13:28:41 UTC
I have been informed by our user Chaojian Li offline about this bug.

Python-2.7.3 has been patched by redlizard more than 5 years.  Time for an update to Python-3.

Alternatively, we could consider pkgcore.
Comment 3 Fabian Groffen gentoo-dev 2019-05-22 13:48:27 UTC
I was thinking the same, to try and see if we can use a vanilla (or else patched) Python-3 tarball in the bootstrap.  It's just trying it out I guess.  We can disable Python-2 in our profiles as a follow-up step.
Comment 4 Larry the Git Cow gentoo-dev 2019-05-22 17:33:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=52ae87352bd7dfa3058db673626de071202457d7

commit 52ae87352bd7dfa3058db673626de071202457d7
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-05-22 17:30:29 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-05-22 17:30:29 +0000

    scripts/bootstrap-prefix: use python-3.6 to bootstrap stage1
    
    Use vanilla Python-3.6.8 to bootstrap stage1, dropped Cygwin bits for
    they no longer applied.  We should consider using the cygwin release for
    that.
    
    Bug: https://bugs.gentoo.org/686522
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 75 ++++++---------------------------------------
 1 file changed, 10 insertions(+), 65 deletions(-)
Comment 5 Fabian Groffen gentoo-dev 2019-05-22 17:50:13 UTC
@haubi: I couldn't accomodate for Cygwin, you'll have to do it.  Perhaps using cygwin's patched python archive is an option?
Comment 6 Fabian Groffen gentoo-dev 2019-05-23 11:39:37 UTC
x86_64-apple-darwin17	20190522
i386-pc-solaris2.11	20190522

confirm python-3.6.8 in stage1 doesn't royally break
Comment 7 Ooblick 2019-05-24 14:48:09 UTC
This is now working for me. Thanks.
Comment 8 Fabian Groffen gentoo-dev 2019-05-25 08:11:29 UTC
ok, cool, thanks for the feedback
Comment 9 Larry the Git Cow gentoo-dev 2019-05-27 09:42:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=263c4d2298d7a6c0d1cc778a4933a47088ceaadb

commit 263c4d2298d7a6c0d1cc778a4933a47088ceaadb
Author:     Michael Haubenwallner <haubi@gentoo.org>
AuthorDate: 2019-05-27 09:39:02 +0000
Commit:     Michael Haubenwallner <haubi@gentoo.org>
CommitDate: 2019-05-27 09:42:01 +0000

    bootstrap-prefix.sh (stage1 python-3.6.8): apply cygwin patches
    
    Using cygwinports patches for stage1 python much like the ebuild does.
    Bug: https://bugs.gentoo.org/686522
    Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>

 scripts/bootstrap-prefix.sh | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)