Parcourir la source

python: add patch to remove Debian/Ubuntu multiarch support

Seems when cross compiling on x86_64 Debian (most likely Ubuntu too)
the host's paths will be added too causing build failures for some extensions.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Alexandru Ardelean il y a 10 ans
Parent
révision
903432c91e
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12
    0
      lang/python/patches/160-remove-debian-multiarch-support.patch

+ 12
- 0
lang/python/patches/160-remove-debian-multiarch-support.patch Voir le fichier

@@ -0,0 +1,12 @@
1
+diff --git a/setup.py b/setup.py
2
+index 7868b7b..9ae0ef2 100644
3
+--- a/setup.py
4
++++ b/setup.py
5
+@@ -444,7 +444,6 @@ class PyBuildExt(build_ext):
6
+             add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
7
+         if cross_compiling:
8
+             self.add_gcc_paths()
9
+-        self.add_multiarch_paths()
10
+ 
11
+         # Add paths specified in the environment variables LDFLAGS and
12
+         # CPPFLAGS for header and library files.