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?
Can confirm this per the Azure pipelines for openSUSE and Ubuntu: https://dev.azure.com/gentoo-prefix/ci-builds/_build
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.
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.
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(-)
@haubi: I couldn't accomodate for Cygwin, you'll have to do it. Perhaps using cygwin's patched python archive is an option?
x86_64-apple-darwin17 20190522 i386-pc-solaris2.11 20190522 confirm python-3.6.8 in stage1 doesn't royally break
This is now working for me. Thanks.
ok, cool, thanks for the feedback
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(-)