Browse Source

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>
Avi Shukron 5 years ago
parent
commit
f31cd33cef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/ninja/ninja.mk

+ 1 - 1
package/ninja/ninja.mk

@@ -17,7 +17,7 @@ NINJA_LICENSE_FILES = COPYING
 HOST_NINJA_DEPENDENCIES = host-python3
 HOST_NINJA_DEPENDENCIES = host-python3
 
 
 define HOST_NINJA_BUILD_CMDS
 define HOST_NINJA_BUILD_CMDS
-	(cd $(@D); ./configure.py --bootstrap)
+	(cd $(@D); $(HOST_DIR)/bin/python3 configure.py --bootstrap)
 endef
 endef
 
 
 define HOST_NINJA_INSTALL_CMDS
 define HOST_NINJA_INSTALL_CMDS