python: fix patch removing multiarch support for host python
authorJan Čermák <redacted>
Thu, 2 Jul 2015 15:57:13 +0000 (17:57 +0200)
committerJan Čermák <redacted>
Thu, 2 Jul 2015 16:19:09 +0000 (18:19 +0200)
Patch removing multiarch paths from build should be applied only when
Python is built for target, but not for host. When the paths are removed
during host build, host python throws some ugly errors when importing
some hashlib modules. Also it reports that modules crypt and nis failed
to build (tested on Ubuntu 14.04 host).

Signed-off-by: Jan Čermák <redacted>
lang/python/Makefile
lang/python/patches/006-remove-debian-multiarch-support.patch

index 133bab0d9e5311c9a116a84c5f018d132103e5a7..0caa92ba255864d7ebe9c52b91dab71bde7e16dc 100644 (file)
@@ -12,7 +12,7 @@ include ./files/python-package.mk
 
 PKG_NAME:=python
 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://www.python.org/ftp/python/$(PKG_VERSION)
index 52d52b94e88b1175d40f30211c1244d7ec4e70d7..01aa924ab76f3c0e451e27b4f91b0d4e86ae4421 100644 (file)
@@ -1,12 +1,14 @@
 diff --git a/setup.py b/setup.py
-index 7868b7b..9ae0ef2 100644
+index 1d1ae72..511aed5 100644
 --- a/setup.py
 +++ b/setup.py
-@@ -444,7 +444,6 @@ class PyBuildExt(build_ext):
+@@ -444,7 +444,8 @@ class PyBuildExt(build_ext):
              add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
          if cross_compiling:
              self.add_gcc_paths()
 -        self.add_multiarch_paths()
++        else:
++            self.add_multiarch_paths()
  
          # Add paths specified in the environment variables LDFLAGS and
          # CPPFLAGS for header and library files.
git clone https://git.99rst.org/PROJECT