Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697842 - dev-lang/python-3.8.0 version bump
Summary: dev-lang/python-3.8.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-16 08:42 UTC by MaxKarlErnstPlanck
Modified: 2019-11-11 21:03 UTC (History)
3 users (show)

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


Attachments
python-3.8.0 ebuild (python-3.8.0.ebuild,9.54 KB, text/plain)
2019-10-18 14:30 UTC, Alex
Details
First patch (0001-Install-libpythonX.Y.a-in-usr-lib-instead-of-usr-lib.patch,2.64 KB, patch)
2019-10-18 14:32 UTC, Alex
Details | Diff
Second patch (0002-Disable-modules-and-SSL.patch,2.29 KB, patch)
2019-10-18 14:32 UTC, Alex
Details | Diff
Third patch (0003-Override-libdir.patch,4.22 KB, patch)
2019-10-18 14:33 UTC, Alex
Details | Diff
Fourth patch (0004-setup.py-exit-with-non-zero-status-on-failure.patch,1.52 KB, patch)
2019-10-18 14:33 UTC, Alex
Details | Diff
Fifth patch (0005-Improve-distutils-C-support.patch,15.51 KB, patch)
2019-10-18 14:34 UTC, Alex
Details | Diff
Sixth patch (0006-h2py-use-binary-I-O-to-avoid-encoding-issues.patch,6.96 KB, patch)
2019-10-18 14:34 UTC, Alex
Details | Diff
Eighth patch (0008-distutils-make-OO-enable-both-opt-1-and-opt-2-optimi.patch,3.60 KB, patch)
2019-10-18 14:36 UTC, Alex
Details | Diff
Ninth patch (0009-Install-shared-libs-in-LIBDEST.patch,1.33 KB, patch)
2019-10-18 14:36 UTC, Alex
Details | Diff
Seventh patch (0007-Disable-nis.patch,600 bytes, patch)
2019-10-18 14:49 UTC, Alex
Details | Diff
all patches combined (python-gentoo-patches-3.8.0.tar.xz,9.64 KB, application/x-xz)
2019-10-19 06:43 UTC, MaxKarlErnstPlanck
Details
htop (htop.png,62.27 KB, image/png)
2019-10-20 12:09 UTC, MaxKarlErnstPlanck
Details
Python hashlib patch (python-3.8.0-hashlib.patch,805 bytes, patch)
2019-10-20 19:32 UTC, Alex
Details | Diff
Updated ebuild to include hashlib patch (python-3.8.0.ebuild,9.59 KB, text/plain)
2019-10-20 19:33 UTC, Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MaxKarlErnstPlanck 2019-10-16 08:42:54 UTC
Monday, October 14, 2019
Python 3.8.0 is now available


Reproducible: Always




Python 3.8.0 is the newest feature release of the Python language
Comment 1 Alex 2019-10-18 14:30:25 UTC
Created attachment 593130 [details]
python-3.8.0 ebuild

Just changed slot and patchset numbers from 3.7.5. Patchset follows.
Comment 2 Alex 2019-10-18 14:32:12 UTC
Created attachment 593132 [details, diff]
First patch
Comment 3 Alex 2019-10-18 14:32:37 UTC
Created attachment 593134 [details, diff]
Second patch
Comment 4 Alex 2019-10-18 14:33:06 UTC
Created attachment 593136 [details, diff]
Third patch
Comment 5 Alex 2019-10-18 14:33:36 UTC
Created attachment 593138 [details, diff]
Fourth patch
Comment 6 Alex 2019-10-18 14:34:03 UTC
Created attachment 593140 [details, diff]
Fifth patch
Comment 7 Alex 2019-10-18 14:34:52 UTC
Created attachment 593142 [details, diff]
Sixth patch
Comment 8 Alex 2019-10-18 14:36:05 UTC
Created attachment 593144 [details, diff]
Eighth patch
Comment 9 Alex 2019-10-18 14:36:35 UTC
Created attachment 593146 [details, diff]
Ninth patch
Comment 10 Alex 2019-10-18 14:49:31 UTC
Created attachment 593148 [details, diff]
Seventh patch
Comment 11 Alex 2019-10-18 14:52:35 UTC
All the patches were ported from the 3.7.4-1 patchset and require review by someone knowledgeable.
Comment 12 Alex 2019-10-18 15:01:10 UTC
Especially second and seventh, because were not straightforward and I might've missed something there.
Comment 13 MaxKarlErnstPlanck 2019-10-19 06:43:05 UTC
Created attachment 593278 [details]
all patches combined
Comment 14 MaxKarlErnstPlanck 2019-10-19 12:59:37 UTC
✓ Python 3.8.0
✓ IPython 7.8.0
✓ Jupyter QtConsole 4.5.5

Thank you, it works!
Comment 15 MaxKarlErnstPlanck 2019-10-19 15:41:10 UTC
✓ portage
✓ layman
Comment 16 Helmut Jarausch 2019-10-19 18:41:41 UTC
Thanks!

What has to be changed that emerge accepts 
PYTHON_COMPAT=( python3_8 )
Comment 17 MaxKarlErnstPlanck 2019-10-20 06:58:12 UTC
emerge accepts
PYTHON_COMPAT=( python3_7 python3_8 )
PYTHON_TARGETS="python3_7 python3_8"
when you change /usr/portage/eclass/python-utils-r1.eclass:

* _PYTHON_ALL_IMPLS= ... python3_8
* _python_impl_supported() { ... case "${impl}" in python3_[5678]

also:
$ grep python3_8 /etc/portage/profile/use.stable.mask
-python_targets_python3_8
-python_single_target_python3_8
Comment 18 MaxKarlErnstPlanck 2019-10-20 12:09:46 UTC
Created attachment 593388 [details]
htop

to vaunt of my success
Comment 19 Alex 2019-10-20 19:32:19 UTC
Created attachment 593460 [details, diff]
Python hashlib patch

I missed another patch from 3.7.5-r1. Ported that.
Comment 20 Alex 2019-10-20 19:33:41 UTC
Created attachment 593462 [details]
Updated ebuild to include hashlib patch

Updated ebuild
Comment 21 Helmut Jarausch 2019-10-23 15:50:22 UTC
(In reply to MaxKarlErnstPlanck from comment #17)
> emerge accepts
> PYTHON_COMPAT=( python3_7 python3_8 )
> PYTHON_TARGETS="python3_7 python3_8"
> when you change /usr/portage/eclass/python-utils-r1.eclass:
> 
> * _PYTHON_ALL_IMPLS= ... python3_8
> * _python_impl_supported() { ... case "${impl}" in python3_[5678]
> 
> also:
> $ grep python3_8 /etc/portage/profile/use.stable.mask
> -python_targets_python3_8
> -python_single_target_python3_8

Thanks!

My changes get lost after every eix-sync. How can this be disabled?
Helmut
Comment 22 MaxKarlErnstPlanck 2019-10-24 10:12:52 UTC
> My changes get lost after every eix-sync. How can this be disabled?
Well, I guess we have to wait until gentoo devs make that permanent.

So, Gentoo Devs, please, add python3.8 support to /usr/portage/eclass/python-utils-r1.eclass
Comment 23 Alex 2019-10-31 20:31:56 UTC
(In reply to Helmut Jarausch from comment #21)

> My changes get lost after every eix-sync. How can this be disabled?
> Helmut

You could create your local overlay, copy eclass there along with ebuild and patches, rename it to something like python-utils-r99.eclass and modify ebuild in local overlay so it uses your custom eclass instead of default one.

Gentoo Devs seems to be ignoring this Python release for quite a while; I know that they are underhanded, but that's still very strange.
Comment 24 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-11-11 18:34:15 UTC
Bad news is that we can't use your patches because you didn't read the disclaimer above attachment form.  Good news is that a few of them are wrong anyway, so the effort in detecting that and fixing them would exceed the effort from rebasing old patches from scratch.

I've pushed a fresh patchset to git.g.o:fork/cpython, gentoo-3.8.0 tag.  I have a new ebuild on the way, and will commit it as soon as I finish initial testing.
Comment 25 Larry the Git Cow gentoo-dev 2019-11-11 21:03:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0966d2ffd1195cfd55e8e9b598d5720b6cc4f47d

commit 0966d2ffd1195cfd55e8e9b598d5720b6cc4f47d
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-11-11 20:51:52 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-11-11 21:03:18 +0000

    dev-lang/python: Bump to 3.8.0
    
    Closes: https://bugs.gentoo.org/697842
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-lang/python/Manifest            |   2 +
 dev-lang/python/python-3.8.0.ebuild | 331 ++++++++++++++++++++++++++++++++++++
 2 files changed, 333 insertions(+)