#2525 closed defect (invalid)

RSB Python scripts may refer to Python3

Reported by: Darshit Owned by:
Priority: normal Milestone: 4.11.1
Component: tool/rsb Version: 4.10
Severity: minor Keywords: RSB, python, build
Cc: Blocked By:
Blocking:

Description

The RSB python scripts all have the same shebang line:

#!/usr/bin/env python

However, on certain systems, most notably Arch Linux, the default python environment is Python3. This causes all the RSB scripts to fail. Instead, a simple approach would be to explicitly invoke the Python2 environment. All systems that ship only Python2 also have the python2 symlink.

I've attached patch I made by changing all the shebang lines to python2. With these changes, I am still unable to completely build the SPARC tools on my machine. Some more Python related issues it seems. I shall debug those and either ask for further help later, or provide a patch
Do let me know if anything else is required.

Attachments (1)

0001-Explicitly-invoke-python2-for-all-Python-scripts.patch (3.5 KB) - added by Darshit on 01/14/16 at 19:41:12.

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 01/14/16 at 20:14:42 by Darshit

Resolution: invalid
Status: newclosed

Just saw the section on the RSB page that advises the usage of a virtualenv in Arch Linux. That worked out of the box for me. So please feel free to close this ticket.

However, I think that the distro / platform specific instructions available on: https://devel.rtems.org/wiki/Developer/Tools/RSB
should also be replicated on https://docs.rtems.org/rsb/ which contains a full set of instructions for building RSB.

Note: See TracTickets for help on using tickets.