Skip to content

Conversation

@chewi
Copy link
Contributor

@chewi chewi commented Jan 7, 2026

What this PR does / why we need it:

Distributions need to be able to build offline using static sources. This is easier if we can avoid dependencies fetched by git or source them system-wide.

This also fixes all the big warnings currently raised by CMake.

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test? -- N/A
  • Does this change require a documentation update? -- N/A
  • Does this introduce breaking changes that would require an announcement or bumping the major version? -- N/A
  • Do all new files have an appropriate license header? -- N/A

chewi added 4 commits January 2, 2026 14:04
It is only needed by overlaybd-streamConv, which is not installed by
CMake, and is presumably not essential. The dependency is fetched from
git if it is not found system-wide, but it should be possible to perform
an offline build.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Being inconsistent with the casing causes CMake to raise a big warning.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
In RapidJSON's case, we still call FetchContent_Populate because we only
need the headers, but we do it in a non-deprecated way. Unfortunately,
GIT_SUBMODULES is no longer respected, so gtest is fetched
unnecessarily. This may be a CMake bug.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This makes offline builds possible. RapidJSON also installs a CMake
config package, but it is an old style package that is unsuitable for
cross-compiling. pkg-config handles this better.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@chewi
Copy link
Contributor Author

chewi commented Jan 7, 2026

The CI failure might be down to the erofs-utils bump. I'll check.

@chewi
Copy link
Contributor Author

chewi commented Jan 7, 2026

errno 117 is EUCLEAN indicating corruption. I don't need to bump erofs-utils, it just looked like a quick win, so I'll leave that problem to greater minds.

@chewi
Copy link
Contributor Author

chewi commented Jan 8, 2026

Looking good now.

@BigVan
Copy link
Member

BigVan commented Jan 9, 2026

thanks very much~

@BigVan BigVan merged commit dc8d5e6 into containerd:main Jan 9, 2026
2 checks passed
@chewi chewi deleted the offline-build branch January 9, 2026 10:15
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