package/qpid-proton: needs host-python2
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 14 Jul 2015 14:03:39 +0000 (16:03 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 14 Jul 2015 14:10:03 +0000 (16:10 +0200)
qpid-proton is using constructs that are not valid in python3, so we
must use a host python2 interpreter. To make this happen this commit
adds a dependency on host-python and explicitly tells CMake to use
$(HOST_DIR)/usr/bin/python2.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qpid-proton/qpid-proton.mk

index eae4589bf5385b4243ab256fdec868323366d9b4..12fddb42e96f57f8d74129d94bd41fd92f377a84 100644 (file)
@@ -11,12 +11,15 @@ QPID_PROTON_LICENSE = Apache-2.0
 QPID_PROTON_LICENSE_FILES = LICENSE
 QPID_PROTON_INSTALL_STAGING = YES
 QPID_PROTON_DEPENDENCIES = \
+       host-python \
        util-linux \
        $(if $(BR2_PACKAGE_OPENSSL),openssl)
+
 QPID_PROTON_CONF_OPTS = \
        -DBUILD_JAVA=OFF \
        -DENABLE_VALGRIND=OFF \
-       -DENABLE_WARNING_ERROR=OFF
+       -DENABLE_WARNING_ERROR=OFF \
+       -DPYTHON_EXECUTABLE=$(HOST_DIR)/usr/bin/python2
 
 define QPID_PROTON_REMOVE_USELESS_FILES
        rm -fr $(TARGET_DIR)/usr/share/proton-*/