python,python3: Fix overridden usr/bin symlinks 9513/head
authorJeffery To <jeffery.to@gmail.com>
Sun, 31 Mar 2019 11:11:15 +0000 (19:11 +0800)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 8 Aug 2019 11:38:37 +0000 (13:38 +0200)
commitaf975f0f30b433054d593de2c76a892cc37ea7ad
tree328fdf7a11143bc29b3c3cf4d4cde2aca014c8ca
parent421c58a946043fe888903c17dd81d73bd5ff0cca
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>
lang/python/python-package-install.sh
lang/python/python-package.mk
lang/python/python3-package.mk