diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-09-06 10:21:43 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-09-06 10:26:30 +0200 |
commit | 8f33b8cc93006c97a8f6b7ede20214992ed31fa8 (patch) | |
tree | 319163313cd55a160bbd9376151da1c96e124fd2 /pkgs/development/tools/misc/patchelf | |
parent | f67ddbaa6f049cdd2a5e2333e3679c4f5f4b638f (diff) | |
download | nixpkgs-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar nixpkgs-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.gz nixpkgs-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.bz2 nixpkgs-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.lz nixpkgs-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.xz nixpkgs-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.zst nixpkgs-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.zip |
mass rewrite of find parameters to cross-platform style
Fixes #9044, close #9667. Thanks to @taku0 for suggesting this solution. Now we have no modes starting with `/` or `+`. Rewrite the `-perm` parameters of find: - completely safe: rewrite `/0100` and `+100` to `-0100`, - slightly semantics-changing: rewrite `+111` to `-0100`. I cross-verified the `find` manual pages for Linux, Darwin, FreeBSD.
Diffstat (limited to 'pkgs/development/tools/misc/patchelf')
-rw-r--r-- | pkgs/development/tools/misc/patchelf/setup-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/patchelf/setup-hook.sh b/pkgs/development/tools/misc/patchelf/setup-hook.sh index 944b418d1b4..a76fbfbd509 100644 --- a/pkgs/development/tools/misc/patchelf/setup-hook.sh +++ b/pkgs/development/tools/misc/patchelf/setup-hook.sh @@ -9,7 +9,7 @@ patchELF() { if [ -e "$prefix" ]; then find "$prefix" \( \ \( -type f -a -name "*.so*" \) -o \ - \( -type f -a -perm /0100 \) \ + \( -type f -a -perm -0100 \) \ \) -print -exec patchelf --shrink-rpath '{}' \; fi stopNest |