python3: fix build on Ubuntu/Debian multi-arch
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 4 Nov 2019 12:05:09 +0000 (14:05 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 4 Nov 2019 12:10:36 +0000 (14:10 +0200)
commit0c8b0b0bf727a57b0138a1425d2f32786dddd146
treeb30b1b289cbae66101684c75dfaa4096d82fb1bb
parent97bada594b6aa212c9fe04e155021ec3080cd988
python3: fix build on Ubuntu/Debian multi-arch

This issue was introduced after upgrading to 3.8.
Patch `006-remove-multi-arch-and-local-paths.patch` was dropped. It was
tested on x86, but when using the x86_64 compiler in OpenWrt, the issue is
present.

The issue seems to be about Ubuntu/Debian's multi-arch support in
Python/Python3 setup [which I forgot about]. The code runs it regardless of
whether it cross-compiles or not, and for OpenWrt, this causes issues, as
it introduces absolute include paths from the host system.

Fixes https://github.com/openwrt/packages/issues/10452

Fixes: 48277ec915815 ("python3: bump to version 3.8")
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/python3/Makefile
lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch [new file with mode: 0644]