aboutsummaryrefslogtreecommitdiff
path: root/pkgs/build-support/setup-hooks
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-10-18 14:00:05 +0200
committerDaniël de Kok <me@danieldk.eu>2020-10-18 14:00:05 +0200
commit48a20e93378c87a9f71ff1ded28623e4a4082322 (patch)
tree4ee3081ba76d06bc87fab234fbb303d29267f24d /pkgs/build-support/setup-hooks
parent7c4305be84ae74499e1ddd9b8e97bcaaf6da0f7d (diff)
validatePkgConfig: fix variable scope
validatePkgConfig failed due to a wrong variable scope, as reported in issue #100834. This change corrects the variable scoping.
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r--pkgs/build-support/setup-hooks/validate-pkg-config.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/validate-pkg-config.sh b/pkgs/build-support/setup-hooks/validate-pkg-config.sh
index 54fc9cc122ca..ada1b56760d6 100644
--- a/pkgs/build-support/setup-hooks/validate-pkg-config.sh
+++ b/pkgs/build-support/setup-hooks/validate-pkg-config.sh
@@ -3,9 +3,8 @@
fixupOutputHooks+=(_validatePkgConfig)
_validatePkgConfig() {
+ local bail=0
for pc in $(find "$prefix" -name '*.pc'); do
- local bail=0
-
# Do not fail immediately. It's nice to see all errors when
# there are multiple pkgconfig files.
if ! pkg-config --validate "$pc"; then