aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Avi Shukron <avraham.shukron@gmail.com>2019-11-11 23:31:45 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-11-12 21:55:57 +0100
commitf31cd33cefc0fd71f41459d39c42b049ade3605d (patch)
tree531a01138fffdf64545ebb90719330b16c13f43d
parent21783d8403f4f41bd97014768e08f9fc355adf87 (diff)
downloadbuildroot-f31cd33cefc0fd71f41459d39c42b049ade3605d.tar.gz
buildroot-f31cd33cefc0fd71f41459d39c42b049ade3605d.tar.bz2
package/ninja: invoke python3 explicitly to configure the package
ninja depends on python3 specifically, but the configure.py file simply uses "env python". Where no python is selected for the target you simply won't get a python symlink in $(HOST_DIR)/usr/bin, so the configure.py script fails to run since it can't find "python". Notice that in order to reproduce the issue, you must not have python2 installed on your host machine. Signed-off-by: Avi Shukron <avraham.shukron@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/ninja/ninja.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/ninja/ninja.mk b/package/ninja/ninja.mk
index 4897012150..281cd70412 100644
--- a/package/ninja/ninja.mk
+++ b/package/ninja/ninja.mk
@@ -17,7 +17,7 @@ NINJA_LICENSE_FILES = COPYING
HOST_NINJA_DEPENDENCIES = host-python3
define HOST_NINJA_BUILD_CMDS
- (cd $(@D); ./configure.py --bootstrap)
+ (cd $(@D); $(HOST_DIR)/bin/python3 configure.py --bootstrap)
endef
define HOST_NINJA_INSTALL_CMDS