Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid some broken cmake package versions in Docker image build #185

Merged
merged 4 commits into from
Nov 19, 2020

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Nov 19, 2020

At the moment the cmake apt repo we rely on has published newer cmake packages that specify a dependency that doesn't exist. This breaks a clean cmake install (as we do during docker image build).

For the moment, we're adding that version to a rejectlist to workaround the issue.

@bpkroth bpkroth requested a review from a team November 19, 2020 18:30
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved

sudo tee /etc/apt/preferences.d/avoid-broken-cmake-repo-package-versions <<'APT_PREFERENCES'
Package: cmake
Pin: version 3.19.0-0kitware1ubuntu20.04.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version doesn't actually exist in the upstream repos yet.
When it does, this problem will go away.
In the meantime however, we still want to install the previous version of cmake (3.18.4...). For that to work we need to rejectlist the higher version of cmake-data.
With that in place, when the version above of cmake appears it will depend on the corresponding version of cmake-data, which we would have rejectlisted, causing a new but related error.
Thus, for now, we simply rejectlist both of them.

@bpkroth bpkroth merged commit f8fbbec into microsoft:main Nov 19, 2020
@bpkroth bpkroth deleted the cmake-deps-fixups branch November 19, 2020 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants