diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-05-24 09:52:59 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-05-26 08:15:08 +0200 |
commit | e24d7a79ae627400cda87dc62ddf06970ec5786b (patch) | |
tree | 0e15b7500ed064857e3b3fc2cd464379739563b8 /scripts | |
parent | b635ff5e245f673c28eba0c423b98c8b1abd7b02 (diff) | |
download | ptxdist-e24d7a79ae627400cda87dc62ddf06970ec5786b.tar.gz ptxdist-e24d7a79ae627400cda87dc62ddf06970ec5786b.tar.xz |
ptxd_make_world_install_python_cleanup: make sure shared libraries are not executable
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_world_install.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh index 6d119bae0..f26bdc7a1 100644 --- a/scripts/lib/ptxd_make_world_install.sh +++ b/scripts/lib/ptxd_make_world_install.sh @@ -22,6 +22,10 @@ ptxd_make_world_install_prepare() { export -f ptxd_make_world_install_prepare ptxd_make_world_install_python_cleanup() { + find "${pkg_pkg_dir}" -type f -name "*.so" -print | while read file; do + # Python installs shared libraries with executable flags + chmod -x "${file}" + done && find "${pkg_pkg_dir}" -type d -name bin -prune -o -name "*.py" -print | while read file; do if [ -e "${file}c" -o ! -d "$(dirname "${file}")/__pycache__" ]; then # not python3 or already handled |