python: fixed _python_sysroot paths 2209/head
authorJeffery To <jeffery.to@gmail.com>
Wed, 30 Dec 2015 14:20:22 +0000 (22:20 +0800)
committerJeffery To <jeffery.to@gmail.com>
Thu, 31 Dec 2015 03:55:12 +0000 (11:55 +0800)
AFAIK sysroot is combined with prefix/exec_prefix, so sysroot shouldn't
include "/usr". (cf. the HostPython function in older versions of
python-package.mk)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/Makefile
lang/python/files/python-host.mk

index f10c5cc9944141af0aa85a29a181bde60aa9e018..c8936d2262f3e619bb2529a0b86d827b999893ce 100644 (file)
@@ -12,7 +12,7 @@ include ./files/python-package.mk
 
 PKG_NAME:=python
 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
index 17038d14d6065cc0bc26ccab6759f85983009645..b2ed33683503081d17d5a16ef31ee0f6d4061a43 100644 (file)
@@ -13,10 +13,10 @@ HOST_PYTHONPATH:=$(HOST_PYTHON_LIB_DIR):$(STAGING_DIR_HOST)/$(HOST_PYTHON_PKG_DI
 define HostPython
        if [ "$(strip $(3))" == "HOST" ]; then \
                export PYTHONPATH="$(HOST_PYTHONPATH)"; \
-               export _python_sysroot="$(STAGING_DIR_HOST)/usr"; \
+               export _python_sysroot="$(STAGING_DIR_HOST)"; \
        else \
                export PYTHONPATH="$(PYTHONPATH)"; \
-               export _python_sysroot="$(STAGING_DIR)/usr"; \
+               export _python_sysroot="$(STAGING_DIR)"; \
        fi; \
        export PYTHONOPTIMIZE=""; \
        export PYTHONDONTWRITEBYTECODE=1; \
@@ -29,7 +29,7 @@ endef
 # These configure args are needed in detection of path to Python header files
 # using autotools.
 HOST_CONFIGURE_ARGS += \
-       _python_sysroot="$(STAGING_DIR_HOST)/usr" \
+       _python_sysroot="$(STAGING_DIR_HOST)" \
        _python_prefix="/usr" \
        _python_exec_prefix="/usr"