summaryrefslogtreecommitdiffhomepage
path: root/vars/python2_host.vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-12-10 17:35:35 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-12-10 17:35:35 +0000
commitcff33edcaf5274f5f1abc9c48b3b0a79a3740827 (patch)
treea5c7586705f3a48f8500d3dd122f441cdfc69ecb /vars/python2_host.vars
parent4542f3eb927ba7973c20e75bc6f26a15d3e9dae6 (diff)
downloadmidipix_build-cff33edcaf5274f5f1abc9c48b3b0a79a3740827.tar.bz2
midipix_build-cff33edcaf5274f5f1abc9c48b3b0a79a3740827.tar.xz
Revert "python2_host: use sbpython2 to build an --all-static python2."
This reverts commit 4397349ecf7f970ace089238c42e45cfca7c952d.
Diffstat (limited to 'vars/python2_host.vars')
-rw-r--r--vars/python2_host.vars17
1 files changed, 13 insertions, 4 deletions
diff --git a/vars/python2_host.vars b/vars/python2_host.vars
index 99f79636..6bdfa9e1 100644
--- a/vars/python2_host.vars
+++ b/vars/python2_host.vars
@@ -2,10 +2,19 @@
# set -o errexit -o noglob are assumed.
#
-pkg_python2_host_fetch_git() {
- ex_rtl_fileop rm "${PKG_BASE_DIR}/sbpython2";
- ex_rtl_fetch_urls_git "${PKG_BASE_DIR}/build" "sbpython2=${DEFAULT_GITROOT}/python/sbpython2@main";
- ex_pkg_state_set "${PKG_NAME}" fetch -extract;
+pkg_python2_host_clean() {
+ return 0;
+};
+
+pkg_python2_host_install_make_post() {
+ if ex_rtl_fileop test "${PKG_DESTDIR}/bin/python2.7.wrapper"; then
+ ex_rtl_fileop rm "${PKG_DESTDIR}/bin/python2.7.wrapper";
+ fi;
+ cat > "${PKG_DESTDIR}/bin/python2.7.wrapper" <<EOF
+#!/bin/sh
+env LD_LIBRARY_PATH="${PREFIX}/lib" "${PREFIX}/bin/python2.7" "\${@}";
+EOF
+ chmod +x "${PKG_DESTDIR}/bin/python2.7.wrapper";
};
# vim:filetype=sh