Skip to content

Commit

Permalink
setup-hooks: do not pass missing dirs to find
Browse files Browse the repository at this point in the history
find fails when called with an inexistent search path.
That situation may arise when the output is created after by a postFixup hook.
  • Loading branch information
layus committed May 20, 2016
1 parent 6c2fbfb commit 02c202d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/build-support/setup-hooks/separate-debug-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dontStrip=1
fixupOutputHooks+=(_separateDebugInfo)

_separateDebugInfo() {
[ -e "$prefix" ] || return 0

local dst="${debug:-$out}"
if [ "$prefix" = "$dst" ]; then return; fi

Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/tools/misc/patchelf/setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ fixupOutputHooks+=('if [ -z "$dontPatchELF" ]; then patchELF "$prefix"; fi')

patchELF() {
local dir="$1"
[ -e "$dir" ] || return 0

header "shrinking RPATHs of ELF executables and libraries in $dir"

local i
Expand Down

0 comments on commit 02c202d

Please sign in to comment.