python3: Fix uuid module not compiled for host Python
authorJeffery To <jeffery.to@gmail.com>
Tue, 23 May 2023 11:12:27 +0000 (19:12 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 24 May 2023 05:59:49 +0000 (13:59 +0800)
This adds $(STAGING_DIR_HOST)/include/e2fsprogs to HOST_CFLAGS and
HOST_CPPFLAGS so that configure can find uuid/uuid.h.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 44fb4927f11add18baa11617e67c8a697a3f528d,
adjusted PKG_RELEASE)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python3/Makefile

index 42a1d4f8dd5243f808978443f95bca2815b5d61e..93ae4df2e61ffd4c57444ee90720605d02034869 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 include ../python3-version.mk
 
 PKG_NAME:=python3
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
@@ -312,6 +312,13 @@ define Py3Package/python3/filespec
 -|$(PYTHON3_PKG_DIR)
 endef
 
+# libuuid is provided by e2fsprogs and uuid/uuid.h is moved into
+# $(STAGING_DIR_HOST)/include/e2fsprogs
+HOST_CFLAGS += \
+       -I$(STAGING_DIR_HOST)/include/e2fsprogs
+HOST_CPPFLAGS += \
+       -I$(STAGING_DIR_HOST)/include/e2fsprogs
+
 HOST_LDFLAGS += \
        -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib