From cdc5cf52c1e1a18e62bbd85ca404492e9bd3023a Mon Sep 17 00:00:00 2001 From: David McFarland Date: Tue, 23 May 2017 10:35:23 -0300 Subject: [PATCH] cygwin: rebase fixes - use fixupOutputsHook to find libs in all outputs - don't rebase symlinks --- pkgs/stdenv/cygwin/rebase-i686.sh | 6 +++--- pkgs/stdenv/cygwin/rebase-x86_64.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/stdenv/cygwin/rebase-i686.sh b/pkgs/stdenv/cygwin/rebase-i686.sh index e97dc66c0ad..091c9044d93 100644 --- a/pkgs/stdenv/cygwin/rebase-i686.sh +++ b/pkgs/stdenv/cygwin/rebase-i686.sh @@ -1,10 +1,10 @@ -postFixupHooks+=(_cygwinFixAutoImageBase) +fixupOutputHooks+=(_cygwinFixAutoImageBase) _cygwinFixAutoImageBase() { - if [ "$dontRebase" == 1 ]; then + if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then return fi - find $out -name "*.dll" | while read DLL; do + find "$prefix" -name "*.dll" -type f | while read DLL; do if [ -f /etc/rebasenix.nextbase ]; then NEXTBASE="$(