From: Peter Korsgaard Date: Sun, 27 Apr 2014 22:28:07 +0200 Subject: [Buildroot] [PATCH] evemu: fix make-event-names.py for python3 syntax In-Reply-To: <1398548615-18088-1-git-send-email-ps.report@gmx.net> (Peter Seiderer's message of "Sat, 26 Apr 2014 23:43:35 +0200") References: <1398548615-18088-1-git-send-email-ps.report@gmx.net> Message-ID: <87fvkyy0tk.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Peter" == Peter Seiderer writes: > Signed-off-by: Peter Seiderer > --- > ...-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