pseudo: fix build for python3 based distros
authorGaël PORTAY <gael.portay@savoirfairelinux.com>
Sat, 5 Nov 2016 03:55:49 +0000 (23:55 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 5 Nov 2016 12:41:58 +0000 (13:41 +0100)
commit998d44e0881e8bcf7ecea7a606c389986f175c67
tree52006d508a08c57e9545694c9c8cfc98e2df7ec3
parentd2362fc9c4d6add63c0a5c077d2729c0a67f239f
pseudo: fix build for python3 based distros

Pseudo is not python3 friendly. It causes build failure on distros using
python3 as default python interpretor.

./maketables enums/*.in
  File "./makewrappers", line 327
    return """/* This function is not called if pseudo is configured --enable-force-async */
                                                                                           ^
TabError: inconsistent use of tabs and spaces in indentation
  File "./maketables", line 76
    print "Flags: set for %s" % self.name
                            ^
SyntaxError: Missing parentheses in call to 'print'
make[2]: *** [Makefile:150: wrappers] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:147: tables] Error 1

Those patches make pseudo works with python2 and python3.

Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pseudo/0001-Fix-mixed-tab-space-indentation.patch [new file with mode: 0644]
package/pseudo/0002-Fix-missing-parentheses-at-print.patch [new file with mode: 0644]
package/pseudo/0003-Make-it-compatible-with-python3.patch [new file with mode: 0644]