treewide: internally avoid deprecated machine file uses of "pkgconfig" #12060
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We support this in a machine file:
and you can use either one, because internally we look up both. If you only set one of them, this plays awkwardly with setting $PKG_CONFIG, since we don't know which one you set in the machine file and the other one will be initialized from the environment instead.
In commit 22df45a we changed program lookup of config-tool style dependencies to use the regular tool names and only fall back on the strange internal names. This affected the pkg-config class too.
The result is that instead of preferring
pkgconfig =
followed by $PKG_CONFIG followed bypkg-config =
, we inverted the lookup order. This is a good idea anyway, because now it behaves consistently withfind_program('pkg-config')
.Unfortunately, we documented the wrong name in a bunch of places, and also used the wrong name in various testsuite bits, which meant that if you set $PKG_CONFIG and then ran the testsuite, it would fail.
Correct these references, because they are buggy.