Bug 1575291

Summary: Switch lldb to Python 3
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: lldbAssignee: Dave Airlie <airlied>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, davejohansen, jan.kratochvil, pmuldoon, shcherbina.iryna, siddharth.kde, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-05 19:22:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miro Hrončok 2018-05-05 18:26:49 UTC
I have the impression the lldb can run with Python 3.

I couldn't find anything in the docs, but the build system seems prepared fort hat and it also uses six (a comaptibility layer to support both Python major versions).

Can we switch it in Fedora? Does anything block us?

Comment 1 Miro Hrončok 2018-05-05 19:22:09 UTC
Mea culpa. It seems it is not:

When i switch the build to python 3, it fails during bytecompilation, there is at least one Legacy Python print.

+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
Bytecompiling .py files below /builddir/build/BUILDROOT/lldb-6.0.0-4.fc29.x86_64/usr/lib64/python3.6 using /usr/bin/python3.6
*** Error compiling '/builddir/build/BUILDROOT/lldb-6.0.0-4.fc29.x86_64/usr/lib64/python3.6/site-packages/lldb/utils/symbolication.py'...
  File "/usr/lib64/python3.6/symbolication.py", line 206
    print 'error: invalid section info string "%s"' % s
                                                  ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('error: invalid section info string "%s"' % s)?