packages: add thread safety workaround

Avoids trashing $TOOLCHAIN/lib/python2.7/site-packages/easy-install.pth
when installing Python host packages (distutilscross:host, setuptools:host,
MarkupSafe:host etc.).
This commit is contained in:
MilhouseVH 2019-02-08 17:17:43 +00:00
parent 2ea31506a5
commit b130a31822
7 changed files with 9 additions and 8 deletions

View File

@ -13,5 +13,5 @@ PKG_LONGDESC="Mako is a super-fast templating language that borrows the best ide
PKG_TOOLCHAIN="manual" PKG_TOOLCHAIN="manual"
makeinstall_host() { makeinstall_host() {
python3 setup.py install --prefix=$TOOLCHAIN exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
} }

View File

@ -13,5 +13,5 @@ PKG_LONGDESC="MarkupSafe implements a XML/HTML/XHTML Markup safe string for Pyth
PKG_TOOLCHAIN="manual" PKG_TOOLCHAIN="manual"
makeinstall_host() { makeinstall_host() {
python3 setup.py install --prefix=$TOOLCHAIN exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
} }

View File

@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="distutilscross" PKG_NAME="distutilscross"
PKG_VERSION="0.1" PKG_VERSION="0.1"
@ -12,5 +13,5 @@ PKG_LONGDESC="distutilscross enhances distutils to support Cross Compile of Pyth
PKG_TOOLCHAIN="manual" PKG_TOOLCHAIN="manual"
makeinstall_host() { makeinstall_host() {
python setup.py install --prefix=$TOOLCHAIN exec_thread_safe python setup.py install --prefix=$TOOLCHAIN
} }

View File

@ -16,7 +16,7 @@ make_host() {
} }
makeinstall_host() { makeinstall_host() {
python3 setup.py install --prefix=$TOOLCHAIN --skip-build exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN --skip-build
# Avoid using full path to python3 that may exceed 128 byte limit. # Avoid using full path to python3 that may exceed 128 byte limit.
# Instead use PATH as we know our toolchain is first. # Instead use PATH as we know our toolchain is first.

View File

@ -12,5 +12,5 @@ PKG_LONGDESC="This module offers a set of classes featuring all the common opera
PKG_TOOLCHAIN="manual" PKG_TOOLCHAIN="manual"
makeinstall_host() { makeinstall_host() {
python3 setup.py install --prefix=$TOOLCHAIN exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
} }

View File

@ -18,6 +18,6 @@ make_host() {
} }
makeinstall_host() { makeinstall_host() {
python2 setup.py install --prefix=$TOOLCHAIN exec_thread_safe python2 setup.py install --prefix=$TOOLCHAIN
python3 setup.py install --prefix=$TOOLCHAIN exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
} }

View File

@ -22,7 +22,7 @@ makeinstall_host() {
post_makeinstall_host() { post_makeinstall_host() {
python ./pylibfdt/setup.py build_ext --inplace python ./pylibfdt/setup.py build_ext --inplace
python ./pylibfdt/setup.py install --prefix=$TOOLCHAIN exec_thread_safe python ./pylibfdt/setup.py install --prefix=$TOOLCHAIN
touch $TOOLCHAIN/lib/$PKG_PYTHON_VERSION/site-packages/pylibfdt/__init__.py touch $TOOLCHAIN/lib/$PKG_PYTHON_VERSION/site-packages/pylibfdt/__init__.py
} }