This is an archive of the discontinued LLVM Phabricator instance.

Update shebang for clang-format-diff script to python3.
ClosedPublic

Authored by PaulkaToast on Apr 21 2021, 9:41 AM.

Details

Summary

Different distributions have different strategies migrating the python symlink. Debian and its derivatives provide python-is-python2 and python-is-python3. If neither is installed, the user gets no /usr/bin/python. The clang-format-diff script and consequently arc diff can thus fail with a python not found error. Since we require python greater than 3.6 as part of llvm prerequisites (https://llvm.org/docs/GettingStarted.html#software), let's go ahead and update this shebang.

Diff Detail

Event Timeline

PaulkaToast requested review of this revision.Apr 21 2021, 9:41 AM
PaulkaToast created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2021, 9:41 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay accepted this revision.Apr 21 2021, 9:44 AM

On newer Linux distributions

Different distributions have different strategies migrating the /usr/bin/python symlink. Debian and its derivatives provide python-is-python2 and python-is-python3. If neither is installed, the user gets no /usr/bin/python.

LG with this clarified.

This revision is now accepted and ready to land.Apr 21 2021, 9:44 AM
PaulkaToast edited the summary of this revision. (Show Details)Apr 21 2021, 9:49 AM

On newer Linux distributions

Different distributions have different strategies migrating the /usr/bin/python symlink. Debian and its derivatives provide python-is-python2 and python-is-python3. If neither is installed, the user gets no /usr/bin/python.

LG with this clarified.

Thank you, added to the change description for more context. (:

This revision was landed with ongoing or failed builds.Apr 22 2021, 6:48 AM
This revision was automatically updated to reflect the committed changes.