python: fix two build depend issues
authorJo-Philipp Wich <redacted>
Fri, 23 Oct 2015 12:19:45 +0000 (14:19 +0200)
committerJo-Philipp Wich <redacted>
Fri, 23 Oct 2015 12:29:41 +0000 (14:29 +0200)
Build depends must refer to the source package name, not the binary one,
therefore we need to use `bzip2` in order to enforce a build of libbz2.so.

Also make the host python build depend on the bzip2 host build in order to
ensure that host python is built with bzip2 support. We don't need a build
dependency for the target python as this already depends on +libbz2 through
python-light. That package dependency in turn implies a build dependency.

Signed-off-by: Jo-Philipp Wich <redacted>
lang/python/Makefile

index 8cd41af02e905910a2bd9f33e8b848d5233cfd01..698f4bee6d5736aa22f417db7c4879f26e1f2b3e 100644 (file)
@@ -28,7 +28,8 @@ HOST_BUILD_PARALLEL:=1
 PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION)
 
-PKG_BUILD_DEPENDS:=libbz2/host python/host
+PKG_BUILD_DEPENDS:=python/host
+HOST_BUILD_DEPENDS:=bzip2/host
 
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
git clone https://git.99rst.org/PROJECT