package/scons: remove python from SCONS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 31 Mar 2019 12:18:10 +0000 (14:18 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 1 Apr 2019 20:46:38 +0000 (22:46 +0200)
Remove $(HOST_DIR)/bin/python from SCONS variable to allow each scons
package to select their python interpreter. Indeed, most of the scons
packages (alljoyn, benejson, gpsd) only supports python2

Fixes:
 - http://autobuild.buildroot.org/results/b45f9fb69615b80758adeff4571e170c3bd9356b
 - http://autobuild.buildroot.org/results/13144a7ebd64ef7889312053f06a14047eea232d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/alljoyn-base/alljoyn-base.mk
package/alljoyn-tcl-base/alljoyn-tcl-base.mk
package/alljoyn-tcl/alljoyn-tcl.mk
package/alljoyn/alljoyn.mk
package/benejson/benejson.mk
package/gpsd/gpsd.mk
package/mongodb/mongodb.mk
package/scons/scons.mk

index ad19802823f890de29bc8412378a1a86e192526b..64ba647ab0add6e2aacd80e1219854f2c8340f63 100644 (file)
@@ -11,7 +11,7 @@ ALLJOYN_BASE_SITE = \
 # See https://allseenalliance.org/alliance/ip-policy
 ALLJOYN_BASE_LICENSE = ISC
 
-ALLJOYN_BASE_DEPENDENCIES = host-scons alljoyn openssl
+ALLJOYN_BASE_DEPENDENCIES = host-python host-scons alljoyn openssl
 ALLJOYN_BASE_INSTALL_STAGING = YES
 
 ALLJOYN_BASE_CRYPTO = openssl
@@ -68,7 +68,7 @@ endif
 
 define ALLJOYN_BASE_BUILD_CMDS
        $(foreach target,$(ALLJOYN_BASE_TARGETS),\
-               cd $(@D)/$(target); $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS)
+               cd $(@D)/$(target); $(HOST_DIR)/bin/python2 $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS)
        )
 endef
 
index 461cd097d67d067fab95b010d926db96fc2fdb09..f8ef5a3e109372073cad69b5475c133d5279d86f 100644 (file)
@@ -12,7 +12,7 @@ ALLJOYN_TCL_BASE_SITE = \
 # See https://allseenalliance.org/alliance/ip-policy
 ALLJOYN_TCL_BASE_LICENSE = ISC
 
-ALLJOYN_TCL_BASE_DEPENDENCIES = host-scons alljoyn-tcl
+ALLJOYN_TCL_BASE_DEPENDENCIES = host-python host-scons alljoyn-tcl
 ALLJOYN_TCL_BASE_INSTALL_STAGING = YES
 
 # AllJoyn Base Thin Core can be compiled in debug or release mode. By default,
@@ -29,7 +29,7 @@ ALLJOYN_TCL_BASE_SCONS_OPTS = \
        WS=off
 
 define ALLJOYN_TCL_BASE_BUILD_CMDS
-       cd $(@D); $(SCONS) $(ALLJOYN_TCL_BASE_SCONS_OPTS)
+       cd $(@D); $(HOST_DIR)/bin/python2 $(SCONS) $(ALLJOYN_TCL_BASE_SCONS_OPTS)
 endef
 
 define ALLJOYN_TCL_BASE_INSTALL_STAGING_CMDS
index cabdf8992a8fedddb3e4d6e8cbf16889740f6699..8981ead378216ef2a074f13c9d7963c285b1e108 100644 (file)
@@ -12,7 +12,7 @@ ALLJOYN_TCL_SITE = \
 # See https://allseenalliance.org/alliance/ip-policy
 ALLJOYN_TCL_LICENSE = ISC
 
-ALLJOYN_TCL_DEPENDENCIES = host-scons
+ALLJOYN_TCL_DEPENDENCIES = host-python host-scons
 ALLJOYN_TCL_INSTALL_STAGING = YES
 
 # AllJoyn Thin Core can be compiled in debug or release mode. By default,
@@ -27,7 +27,7 @@ ALLJOYN_TCL_SCONS_OPTS = \
        CXX="$(TARGET_CXX)"
 
 define ALLJOYN_TCL_BUILD_CMDS
-       cd $(@D); $(SCONS) $(ALLJOYN_TCL_SCONS_OPTS)
+       cd $(@D); $(HOST_DIR)/bin/python2 $(SCONS) $(ALLJOYN_TCL_SCONS_OPTS)
 endef
 
 define ALLJOYN_TCL_INSTALL_STAGING_CMDS
index 1281674e3805618c8c3d9daa384d5a79eca6d316..d05705c429e7d1fcb43e08dc7dc78dacbe54fb38 100644 (file)
@@ -11,7 +11,7 @@ ALLJOYN_SITE = https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_REV)
 # See https://allseenalliance.org/alliance/ip-policy
 ALLJOYN_LICENSE = ISC
 
-ALLJOYN_DEPENDENCIES = host-scons libcap
+ALLJOYN_DEPENDENCIES = host-python host-scons libcap
 ALLJOYN_INSTALL_STAGING = YES
 
 # AllJoyn can be compiled in debug or release mode. By default, AllJoyn is built
@@ -51,7 +51,7 @@ ALLJOYN_SCONS_OPTS = \
        TARGET_PATH="$(BR_PATH)"
 
 define ALLJOYN_BUILD_CMDS
-       cd $(@D); $(SCONS) $(ALLJOYN_SCONS_OPTS)
+       cd $(@D); $(HOST_DIR)/bin/python2 $(SCONS) $(ALLJOYN_SCONS_OPTS)
 endef
 
 define ALLJOYN_INSTALL_STAGING_CMDS
index 680e5b5bdad7b8971c345a72e665e4b5cbee81fe..0faf5f1cc424d4954efb470af699fd6a3e795d1c 100644 (file)
@@ -9,7 +9,7 @@ BENEJSON_SITE = $(call github,codehero,benejson,$(BENEJSON_VERSION))
 BENEJSON_LICENSE = MIT
 BENEJSON_LICENSE_FILES = LICENSE
 BENEJSON_INSTALL_STAGING = YES
-BENEJSON_DEPENDENCIES = host-scons
+BENEJSON_DEPENDENCIES = host-python host-scons
 
 # wchar support needs to be manually disabled
 ifeq ($(BR2_USE_WCHAR),)
@@ -41,7 +41,7 @@ endif # Shared enabled
 define BENEJSON_BUILD_CMDS
        (cd $(@D); \
                $(TARGET_CONFIGURE_OPTS) CROSS=$(TARGET_CROSS) \
-               $(SCONS) $(BENEJSON_SCONS_TARGETS))
+               $(HOST_DIR)/bin/python2 $(SCONS) $(BENEJSON_SCONS_TARGETS))
 endef
 
 define BENEJSON_INSTALL_STAGING_CMDS
index 48d21348b946afe6cb31014bb6eb30a2d52d1d57..0a17ddc93ef2e549ba64e7ccc2ca52a0e1c6caa8 100644 (file)
@@ -10,7 +10,7 @@ GPSD_LICENSE = BSD-3-Clause
 GPSD_LICENSE_FILES = COPYING
 GPSD_INSTALL_STAGING = YES
 
-GPSD_DEPENDENCIES = host-scons host-pkgconf
+GPSD_DEPENDENCIES = host-python host-scons host-pkgconf
 
 GPSD_LDFLAGS = $(TARGET_LDFLAGS)
 GPSD_CFLAGS = $(TARGET_CFLAGS)
@@ -206,7 +206,7 @@ GPSD_SCONS_ENV += LDFLAGS="$(GPSD_LDFLAGS)" CFLAGS="$(GPSD_CFLAGS)"
 define GPSD_BUILD_CMDS
        (cd $(@D); \
                $(GPSD_SCONS_ENV) \
-               $(SCONS) \
+               $(HOST_DIR)/bin/python2 $(SCONS) \
                $(GPSD_SCONS_OPTS))
 endef
 
@@ -214,7 +214,7 @@ define GPSD_INSTALL_TARGET_CMDS
        (cd $(@D); \
                $(GPSD_SCONS_ENV) \
                DESTDIR=$(TARGET_DIR) \
-               $(SCONS) \
+               $(HOST_DIR)/bin/python2 $(SCONS) \
                $(GPSD_SCONS_OPTS) \
                install)
 endef
@@ -228,7 +228,7 @@ define GPSD_INSTALL_STAGING_CMDS
        (cd $(@D); \
                $(GPSD_SCONS_ENV) \
                DESTDIR=$(STAGING_DIR) \
-               $(SCONS) \
+               $(HOST_DIR)/bin/python2 $(SCONS) \
                $(GPSD_SCONS_OPTS) \
                install)
 endef
@@ -240,7 +240,7 @@ define GPSD_INSTALL_UDEV_RULES
        (cd $(@D); \
                $(GPSD_SCONS_ENV) \
                DESTDIR=$(TARGET_DIR) \
-               $(SCONS) \
+               $(HOST_DIR)/bin/python2 $(SCONS) \
                $(GPSD_SCONS_OPTS) \
                udev-install)
        chmod u+w $(TARGET_DIR)/lib/udev/rules.d/25-gpsd.rules
index e420ecb41dff9631a0c7983bf346cb157dc7bf33..53e1ce9963e54ae945e76d8eb562ad314c6c62d1 100644 (file)
@@ -74,7 +74,7 @@ endif
 
 define MONGODB_BUILD_CMDS
        (cd $(@D); \
-               $(SCONS) \
+               $(HOST_DIR)/bin/python $(SCONS) \
                $(MONGODB_SCONS_ENV) \
                $(MONGODB_SCONS_OPTS) \
                $(MONGODB_SCONS_TARGETS))
@@ -82,7 +82,7 @@ endef
 
 define MONGODB_INSTALL_TARGET_CMDS
        (cd $(@D); \
-               $(SCONS) \
+               $(HOST_DIR)/bin/python $(SCONS) \
                $(MONGODB_SCONS_ENV) \
                $(MONGODB_SCONS_OPTS) \
                --prefix=$(TARGET_DIR)/usr \
index f146fde9042319f45e0174ebf4de0d1fa4067b40..6533811db700782393e218f6b59af5cc2b80a021 100644 (file)
@@ -16,4 +16,4 @@ HOST_SCONS_INSTALL_OPTS = \
 $(eval $(host-python-package))
 
 # variables used by other packages
-SCONS = $(HOST_DIR)/bin/python $(HOST_DIR)/bin/scons $(if $(QUIET),-s)
+SCONS = $(HOST_DIR)/bin/scons $(if $(QUIET),-s)