wireless-regdb: fix build when python2 from package feeds exists
authorPetr Štetiar <ynezz@true.cz>
Wed, 31 Jul 2019 16:11:01 +0000 (18:11 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sun, 4 Aug 2019 20:09:20 +0000 (22:09 +0200)
wireless-regdb fails to build if there is python2 installed from package
feeds, as staging_dir/hostpkg/bin/python is python2 and
staging_dir/hostpkg/bin takes precedence over staging_dir/host/bin
(proper place with python -> python3 symlink) which leads to the build
failure of wireless-regdb, so this patch makes it explicit which python
should be used.

Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Russell Senior <russell@personaltelco.net>
Tested-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/firmware/wireless-regdb/Makefile

index 88a8d0bd9c3b26bbe7475faf9b6e0f6514aa6fb4..26f470af44c4b8efdddf38f99cf0f3b411b9432d 100644 (file)
@@ -20,7 +20,7 @@ define Package/wireless-regdb
 endef
 
 define Build/Compile
-       $(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
+       $(STAGING_DIR_HOST)/bin/$(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
 endef
 
 define Package/wireless-regdb/install