[PATCH 0/3] Source Builder: Fixes for Python 3.8

Anders Montonen Anders.Montonen at iki.fi
Mon Apr 27 19:15:25 UTC 2020


These patches fix some issues with Python 3.8 compatibility, which I
encountered when trying out the new Ubuntu 20.04 release. There's also
fixes for a number of syntax warnings which are flagged even with older
Python versions.

The patches should not break compatibility with older Python versions,
but I have not actually tested.

I'm not sure if the Linux distro check fix is the most elegant, but I
think the whole thing should be changed to check if the required
executables are found in the runtime path, instead of assuming some
hard-coded locations.

Anders Montonen (3):
  sb: Fix Python literal comparison warnings
  sb/linux.py: Workaround for Python >= 3.8
  source-builder/config/gdb-common-1.cfg: Fix building with Python 3.8

 source-builder/config/gdb-common-1.cfg |  7 +++-
 source-builder/sb/config.py            |  2 +-
 source-builder/sb/linux.py             | 18 ++++----
 source-builder/sb/macros.py            | 58 +++++++++++++-------------
 4 files changed, 47 insertions(+), 38 deletions(-)

-- 
2.25.1



More information about the devel mailing list