#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)

Change History (2)

comment:1 Changed on Jan 14, 2016 at 8:14:42 PM 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.