Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 616174 Details for
Bug 698974
www-client/chromium should support Python 3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
migrate to python3
gcc_solink_wrapper__bytes_to_str.patch (text/plain), 1.24 KB, created by
bitMan
on 2020-02-26 23:32:10 UTC
(
hide
)
Description:
migrate to python3
Filename:
MIME Type:
Creator:
bitMan
Created:
2020-02-26 23:32:10 UTC
Size:
1.24 KB
patch
obsolete
># Python3+ instead of python2.7 ># by Pavel Kabikov aka bitMan > >--- chromium-81.0.4044.26/build/toolchain/gcc_solink_wrapper.py 2020-02-20 03:32:08.000000000 +0300 >+++ /tmp/gcc_solink_wrapper.py 2020-02-27 01:33:05.218881468 +0300 >@@ -11,6 +11,7 @@ > """ > > import argparse >+import io > import os > import subprocess > import sys >@@ -18,12 +19,18 @@ > import wrapper_utils > > >+def read_as_utf8(fileno): >+ fp = io.open(fileno, mode="r", encoding="utf-8", closefd=False) >+ content = fp.read() >+ fp.close() >+ return content >+ > def CollectSONAME(args): > """Replaces: readelf -d $sofile | grep SONAME""" > toc = '' > readelf = subprocess.Popen(wrapper_utils.CommandToRun( > [args.readelf, '-d', args.sofile]), stdout=subprocess.PIPE, bufsize=-1) >- for line in readelf.stdout: >+ for line in read_as_utf8(readelf.stdout.fileno()): > if 'SONAME' in line: > toc += line > return readelf.wait(), toc >@@ -35,7 +42,7 @@ > nm = subprocess.Popen(wrapper_utils.CommandToRun([ > args.nm, '--format=posix', '-g', '-D', args.sofile]), > stdout=subprocess.PIPE, bufsize=-1) >- for line in nm.stdout: >+ for line in read_as_utf8(nm.stdout.fileno()): > toc += ' '.join(line.split(' ', 2)[:2]) + '\n' > return nm.wait(), toc >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 698974
: 616174