3
0
Fork 0
forked from mirrors/nixpkgs

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 <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-02-27 12:37:42 +01:00 committed by Eelco Dolstra
parent 4417ffa2b5
commit 82f94df719
2 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -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