pkg-config: attempt to mitigate issue on github runners #26917
Closed
+38
−0
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.
This will not fix the issue completely unfortunately.
Problem
On homebrew the package
pkg-config
has been replaced bypkgconf
, the executablepkg-config
is now a symlink topkgconf
. On GitHub macos runner,pkg-config
comes preinstalled and conflicts with the installation of the new packagepkgconf
, making the CIs fail:Moreover, if
pkg-config
is uninstalled andpkgconf
is manually installed, it seems that the symlink topkg-config
that is installed with it is not executable (at least it cannot be found byopam
).Current Solutions
The only solutions, currently, are to either force the installation of
conf-pkg-config.2
on macos which uses the old name for the depext, or executebrew unlink pkg-config; brew install pkgconf; brew unlink pkgconf; brew link pkg-config;
before installing anything.UPDATE: there is another solution (see #26891 (comment)) that is running
brew update; brew upgrade; brew install pkgconf
beforehandThis change
Not changing the package name in the depext, means that the package is broken on any new installation on macos with homebrew, while changing it means that it is broken on GitHub runners. This new version should install fine on both cases, provided that the GitHub runners unlink or remove the old package beforehand:
brew uninstall pkg-config
. It does not guarantee thatpkg-config
is a working executable though, that is either a bug in homebrew or in the GitHub runners that we have no control over.See also the discussions in #26891