[Buildroot] [PATCH] openpgm: needs host python2
Baruch Siach
baruch at tkos.co.il
Tue Apr 8 07:13:26 UTC 2014
When BR2_PACKAGE_PYTHON3=y host python symlinks to python3. This breaks the
version_generator.py script. Make sure we have the right host python version.
Fixes:
http://autobuild.buildroot.net/results/01f/01f886a073439c0639ed93e596b68bcadf1a5824/
Cc: Samuel Martin <s.martin49 at gmail.com>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
package/openpgm/openpgm.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/openpgm/openpgm.mk b/package/openpgm/openpgm.mk
index 3ec5c77e28c4..ccfa5909fb00 100644
--- a/package/openpgm/openpgm.mk
+++ b/package/openpgm/openpgm.mk
@@ -15,4 +15,10 @@ OPENPGM_SUBDIR = openpgm/pgm/
OPENPGM_CONF_ENV = ac_cv_file__proc_cpuinfo=yes ac_cv_file__dev_rtc=no \
ac_cv_file__dev_hpet=no
+# version_generator.py needs python2
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
+OPENPGM_DEPENDENCIES += host-python
+OPENPGM_CONF_ENV += ac_cv_path_PYTHON=$(HOST_DIR)/usr/bin/python2
+endif
+
$(eval $(autotools-package))
--
1.9.1
More information about the buildroot
mailing list