python3: Fix multiarch/local paths added when building host Python
authorJeffery To <jeffery.to@gmail.com>
Tue, 23 May 2023 09:49:43 +0000 (17:49 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 24 May 2023 05:59:48 +0000 (13:59 +0800)
commit43bd87954c027ab86fd99214e1885b38ffa7fd2f
treea7c62829574d04480a9c5d5cf9cd3309eaedea48
parent9c5eb22fde6ec8173949c5bc147f61361d0a5d82
python3: Fix multiarch/local paths added when building host Python

By default, the Python build process will add /usr/local/{lib,include},
and multiarch paths (e.g. /usr/{lib,include}/x86_64-linux-gnu) if
building on Debian/Ubuntu, to its library and includes paths.

006-remove-multi-arch-and-local-paths.patch was added in
84202f17e1aac6faf66b8d186f7c5c62b6f72ffb to stop the Python build
process from adding these paths.

006-remove-multi-arch-and-local-paths.patch was removed in
48277ec9158151763239461c6f60808e38a99c2f.

006-do-not-add-multiarch-paths-when-cross-compiling.patch was added in
0c8b0b0bf727a57b0138a1425d2f32786dddd146 to stop the Python build
process from adding these paths for target Python.

These paths are still added by the Python build process when building
host Python.

This replaces the cross-compiling-only patch with the original patch,
renamed slightly and adapted for Python 3.10.

Fixes: 48277ec91581 ("python3: bump to version 3.8")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit f006d0ea23f76a1846c93d0ec3b1ea60ba36d093,
adjusted PKG_RELEASE)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python3/Makefile
lang/python/python3/patches/006-do-not-add-multiarch-local-paths.patch [new file with mode: 0644]
lang/python/python3/patches/006-do-not-add-multiarch-paths-when-cross-compiling.patch [deleted file]