Skip to contentSkip to conversation

qpid-proton: needs host python 2

PATCH New Baruch Siach 2 participants 2 messages Jul 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qpid-proton: needs host python 2

qpid-proton uses Python as part of its build system. Only Python 2 is currently supported.

Fixes:
http://autobuild.buildroot.net/results/bdf/bdf94981b52dc3a04fd21ff770a0a20d883bb1c3/
http://autobuild.buildroot.net/results/669/66964a00e44502ae00d5348a5ca2b632c729a417/
http://autobuild.buildroot.net/results/30d/30d2fed1149857b11375f2801f522a84f441fc1e/

and more.

---
 package/qpid-proton/qpid-proton.mk | 1 +
 1 file changed, 1 insertion(+)
package/qpid-proton/qpid-proton.mk +1 -0
index eae4589bf538..d21609d29776 100644
@@ -12,6 +12,7 @@ QPID_PROTON_LICENSE_FILES = LICENSE
 QPID_PROTON_INSTALL_STAGING = YES
 QPID_PROTON_DEPENDENCIES = \
 	util-linux \
+	host-python \
 	$(if $(BR2_PACKAGE_OPENSSL),openssl)
 QPID_PROTON_CONF_OPTS = \
 	-DBUILD_JAVA=OFF \
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 qpid-proton: needs host python 2

Baruch, All,

On 2015-07-14 14:13 +0300, Baruch Siach spake thusly:

Quoted 20 lines

qpid-proton uses Python as part of its build system. Only Python 2 is currently supported.

Fixes:
http://autobuild.buildroot.net/results/bdf/bdf94981b52dc3a04fd21ff770a0a20d883bb1c3/
http://autobuild.buildroot.net/results/669/66964a00e44502ae00d5348a5ca2b632c729a417/
http://autobuild.buildroot.net/results/30d/30d2fed1149857b11375f2801f522a84f441fc1e/

and more.

---
 package/qpid-proton/qpid-proton.mk | 1 +
 1 file changed, 1 insertion(+)
package/qpid-proton/qpid-proton.mk +0 -0
index eae4589bf538..d21609d29776 100644

package/qpid-proton/qpid-proton.mk QPID_PROTON_LICENSE_FILES = LICENSE · line 15

Quoted 4 lines
package/qpid-proton/qpid-proton.mk +1 -0
@@ -12,6 +12,7 @@ QPID_PROTON_LICENSE_FILES = LICENSE
 QPID_PROTON_INSTALL_STAGING = YES
 QPID_PROTON_DEPENDENCIES = \
 	util-linux \
+	host-python \

This simply can't work, because the offending .py scripts are using a hard-coded sha-bang:

    #!/usr/bin/python

So, even though we'd now have $(HOST_DIR)/usr/bin/python that is a python2, the scripts would still be calling the host's python, not ours.

I'm already working on fixing all of those...

Regards,
Yann E. MORIN.

Quoted 10 lines
package/qpid-proton/qpid-proton.mk +0 -0
 	$(if $(BR2_PACKAGE_OPENSSL),openssl)
 QPID_PROTON_CONF_OPTS = \
 	-DBUILD_JAVA=OFF \
Signature · 6 lines
2.1.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'