FS#33371 - [telepathy-qt] need set explicit python2 path in pkgbuild. without this fail build

Attached to Project: Arch Linux
Opened by Gustavo Alvarez (sl1pkn07) - Saturday, 12 January 2013, 12:00 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 12 January 2013, 13:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

when build PKGBUILD without any change, if have install python(3) fail build with

-- Found Python executable: /usr/bin/python
-- Found Python version: 3.3.0
-- Python 3.3 found
.....
.....
Generating _gen/future-spec.xml
Traceback (most recent call last):
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 36, in <module>
xincludate(dom, argv[0])
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 14, in xincludate
for i in xrange(dom.documentElement.attributes.length):
NameError: global name 'xrange' is not defined
Traceback (most recent call last):
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 36, in <module>
xincludate(dom, argv[0])
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 14, in xincludate
for i in xrange(dom.documentElement.attributes.length):
NameError: global name 'xrange' is not defined
make[2]: *** [TelepathyQt/_gen/stable-spec.xml] Error 1
Traceback (most recent call last):
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 36, in <module>
Traceback (most recent call last):
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 36, in <module>
xincludate(dom, argv[0])
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 14, in xincludate
xincludate(dom, argv[0])
File "/home/sl1pkn07/aplicaciones/telepathy-qt/src/telepathy-qt-0.9.3/tools/xincludator.py", line 14, in xincludate
for i in xrange(dom.documentElement.attributes.length):
NameError: global name 'xrange' is not defined
for i in xrange(dom.documentElement.attributes.length):
NameError: global name 'xrange' is not defined
make[1]: *** [TelepathyQt/CMakeFiles/stable-ifaces-includator.dir/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
make[2]: *** [examples/extensions/_gen/all.xml] Error 1
make[1]: *** [examples/extensions/CMakeFiles/example-extensions-includator.dir/all] Error 2
make[2]: *** [TelepathyQt/_gen/future-spec.xml] Error 1
make[1]: *** [TelepathyQt/CMakeFiles/future-ifaces-includator.dir/all] Error 2
make[2]: *** [examples/extensions/_gen/connection.xml] Error 1
make[1]: *** [examples/extensions/CMakeFiles/example-extensions-connection-includator.dir/all] Error 2
make: *** [all] Error 2

need explicit set use python2 in pkgbuild with:

rm -rf "${srcdir}/python"
mkdir "${srcdir}/python"
ln -s /usr/bin/python2 "${srcdir}/python/python"
export PATH="${srcdir}/python":$PATH

Additional info:
* package version(s)

telepathy-qt x.x

Steps to reproduce:

- download from ABS or PKGBUIL
- have install python2 and python (ver3)
- start makepkg

greetings
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Saturday, 12 January 2013, 13:23 GMT
Reason for closing:  Fixed
Comment by Antonio Rojas (arojas) - Saturday, 12 January 2013, 12:05 GMT
or just add -DPYTHON_EXECUTABLE=/usr/bin/python2 to cmake, no need for hacks
Comment by Gustavo Alvarez (sl1pkn07) - Saturday, 12 January 2013, 12:20 GMT
you say XD

Loading...