git.iko.soy/typeable/nixpkgs
on master help sign in
validatePkgConfig: fix variable scope

validatePkgConfig failed due to a wrong variable scope, as reported in issue #100834. This change corrects the variable scoping.

commit48a20e93378c87a9f71ff1ded28623e4a4082322 authorDaniël de Kok <me@danieldk.eu> dateSun 18 Oct 2020, 14:00 (6 years ago) parent7c4305b
1 file changed+1−2
pkgs/build-support/setup-hooks/validate-pkg-config.sh+1−2
pkgs/build-support/setup-hooks/validate-pkg-config.sh+1−2
@@ -3,9 +3,8 @@
33fixupOutputHooks+=(_validatePkgConfig)
44
55_validatePkgConfig() {
6+ local bail=0
67 for pc in $(find "$prefix" -name '*.pc'); do
7− local bail=0
8−
98 # Do not fail immediately. It's nice to see all errors when
109 # there are multiple pkgconfig files.
1110 if ! pkg-config --validate "$pc"; then