[Buildroot] [PATCH] evemu: fix make-event-names.py for python3 syntax

Peter Korsgaard jacmet at uclibc.org
Sun Apr 27 20:28:07 UTC 2014


>>>>> "Peter" == Peter Seiderer <ps.report at gmx.net> writes:

 > Signed-off-by: Peter Seiderer <ps.report at gmx.net>
 > ---
 >  ...-event-names-fix-for-python3-print-syntax.patch | 162 +++++++++++++++++++++
 >  1 file changed, 162 insertions(+)
 >  create mode 100644 package/evemu/evemu-0004-make-event-names-fix-for-python3-print-syntax.patch

Committed, thanks - But as I mentioned, this only fixes part of the
problem.

evemu also comes with python support code, and that code:

- Gets unconditionally built/installed even if you don't have python on
  the target

- Is incompatible with python3:

Byte-compiling python modules...
evemu/base.py  File "/usr/lib/python3.4/site-packages/evemu/base.py", line 22
    raise exception.ExecutionError, "%s: %s" % (
                                  ^
SyntaxError: invalid syntax

evemu/const.pyevemu/exception.pyevemu/__init__.py
Byte-compiling python modules (optimized versions) ...
evemu/base.pyevemu/const.pyevemu/exception.pyevemu/__init__.py
make[4]: Leaving directory `/home/peko/source/buildroot/output/build/evemu-1.2.0/python'



It would be good you could patch the package to add a configure argument
to enable/disable the python stuff and then change it to only enable it
if BR2_PACKAGE_PYTHON is enabled.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list