Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850457 - www-client/chromium: add python 3.11 with patch after Python fix
Summary: www-client/chromium: add python 3.11 with patch after Python fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL: https://github.com/python/cpython/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-07 15:04 UTC by Alex Xu (Hello71)
Modified: 2022-08-21 13:04 UTC (History)
2 users (show)

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 Alex Xu (Hello71) 2022-06-07 15:04:07 UTC
one patch required:

--- a/tools/grit/grit/util.py
+++ b/tools/grit/grit/util.py
@@ -209,7 +209,7 @@
     mode = 'rb'
     encoding = None
   else:
-    mode = 'rU'
+    mode = 'r'

   with io.open(filename, mode, encoding=encoding) as f:
     return f.read()

probably this is suitable for upstreaming, but I'm not sure how and don't really want to clone whole chromium and install gerrit etc just to submit one-line patch. I wrote this patch and hereby release it under CC0 for anyone to use without restriction. you may submit it upstream with or without attribution.

also, https://github.com/python/cpython/issues/91404#issuecomment-1147876699 causes build to hang. I fixed this by manually running doas -u portage sh -c 'cd /tmp/portage/www-client/chromium-103.0.5060.33/work/chromium-103.0.5060.33/out/Release && python3.10 ../../third_party/catapult/tracing/bin/generate_about_tracing_contents --outdir gen/content/browser/tracing && gdb -ex "p (void)exit(0)" $(pgrep -f generate_about_tracing_contents)'. I think a proper fix is coming upstream though; I am filing this bug for tracking purposes.
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2022-07-06 14:24:48 UTC
@python: When is the next beta release planned? Can we apply the revert in ${URL} meanwhile?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-07-06 15:47:12 UTC
Python's release schedule is not really clear at the moment because 3.11 branch turned out very unstable and people are reporting release blockers faster than they are being fixed.  I have something else to backport, so I'll grab this one today as well.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-07-06 16:32:09 UTC
3.11.0_beta4_p1 is in.
Comment 4 Larry the Git Cow gentoo-dev 2022-08-21 13:04:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60b1fdbbf66574ea6c415f7495ef9ebf086e7a08

commit 60b1fdbbf66574ea6c415f7495ef9ebf086e7a08
Author:     Stephan Hartmann <sultan@gentoo.org>
AuthorDate: 2022-08-21 13:03:26 +0000
Commit:     Stephan Hartmann <sultan@gentoo.org>
CommitDate: 2022-08-21 13:04:01 +0000

    www-client/chromium: dev channel bump to 106.0.5245.0
    
    Closes: https://bugs.gentoo.org/850457
    Signed-off-by: Stephan Hartmann <sultan@gentoo.org>

 www-client/chromium/Manifest                       |    2 +
 www-client/chromium/chromium-106.0.5245.0.ebuild   | 1188 ++++++++++++++++++++
 .../chromium/files/chromium-106-python3_11.patch   |   11 +
 3 files changed, 1201 insertions(+)