From 82f94df719fe9fe5a861eafb575ccb1f8b5b5efb Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 27 Feb 2013 12:37:42 +0100 Subject: [PATCH] stdenv/setup.sh: Always run postPatch hook. I'm not sure whether this was by intention, but so far postPatch hooks were silently skipped whenever the patches list was empty. This change could possibly change the build results of the following packages: * gcc * cmake (264) * systemtap * quemu-kvm These packages all have in common that they have a postPatch hook and the patches list can be empty when certain conditions are met. Signed-off-by: aszlig --- pkgs/stdenv/generic/setup.sh | 2 -- pkgs/stdenv/mingw/setup.sh | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index c5722c3e8749..a474b6a8eaf1 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -530,8 +530,6 @@ unpackPhase() { patchPhase() { runHook prePatch - if [ -z "$patchPhase" -a -z "$patches" ]; then return; fi - for i in $patches; do header "applying patch $i" 3 local uncompress=cat diff --git a/pkgs/stdenv/mingw/setup.sh b/pkgs/stdenv/mingw/setup.sh index 4de3c0ddc9b4..592580a829e3 100755 --- a/pkgs/stdenv/mingw/setup.sh +++ b/pkgs/stdenv/mingw/setup.sh @@ -486,9 +486,7 @@ unpackPhase() { patchPhase() { runHook prePatch - - if test -z "$patchPhase" -a -z "$patches"; then return; fi - + for i in $patches; do header "applying patch $i" 3 local uncompress=cat