summaryrefslogtreecommitdiff
path: root/lang/python/python3-package.mk
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2019-03-31 19:11:15 +0800
committerJeffery To <jeffery.to@gmail.com>2019-04-03 21:05:14 +0800
commit0280c67103f525937569528c8ba88fa3e144a903 (patch)
tree83c3078c8f7cd023ee7ebac2c54baa706098f72c /lang/python/python3-package.mk
parentabfd6d81ed0e14e6742fcbc09a7c8d79ad5fd655 (diff)
python,python3: Fix overridden usr/bin symlinks
Currently, all files in usr/bin (presumably all Python scripts) are run through sed to replace the shebang; sed will overwrite the file whether or not a match is found. This causes symlinks to be overridden and made into copies of their targets. python[3]-base and python[3]-dev are affected by this. This adds the --follow-symlinks flag to sed, in addition to using $(SED), so that symlinks are not overridden. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3-package.mk')
-rw-r--r--lang/python/python3-package.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/python/python3-package.mk b/lang/python/python3-package.mk
index e52a15233..40feef420 100644
--- a/lang/python/python3-package.mk
+++ b/lang/python/python3-package.mk
@@ -68,6 +68,7 @@ define Py3Package
define Package/$(1)/install
$$(call Py3Package/$(1)/install,$$(1))
+ SED="$(SED)" \
$(SHELL) $(python3_mk_path)python-package-install.sh "3" \
"$(PKG_INSTALL_DIR)" "$$(1)" \
"$(HOST_PYTHON3_BIN)" "$$(2)" \