3
0
Fork 0
forked from mirrors/nixpkgs

dropbox: patch all files in output

(cherry picked from commit 97518649fb)
This commit is contained in:
Thomas Tuegel 2017-03-29 07:36:10 -05:00
parent bf66a181fe
commit d477193029
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59

View file

@ -104,7 +104,7 @@ in stdenv.mkDerivation {
INTERP=$(cat $NIX_CC/nix-support/dynamic-linker)
RPATH="${ldpath}:$out/${appdir}"
getType='s/ *Type: *\([A-Z]*\) (.*/\1/'
find "$out/${appdir}" -type f -a -perm -0100 -print | while read obj; do
find "$out/${appdir}" -type f -print | while read obj; do
dynamic=$(readelf -S "$obj" 2>/dev/null | grep "DYNAMIC" || true)
if [[ -n "$dynamic" ]]; then