-
Notifications
You must be signed in to change notification settings - Fork 416
systemd/259 package update #76334
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
base: main
Are you sure you want to change the base?
systemd/259 package update #76334
Conversation
🩹 Build Failed: Patch Application Failed
Build Details
Root Cause Analysis 🔍The patch file 'pkgconf-expose-variables-for-system-alloc-uid-gid-min.patch' failed to apply to the systemd source code at line 90 of src/core/systemd.pc.in. This indicates the target file has changed since the patch was created, causing a mismatch in the expected content structure. The patch was trying to add variables for system-alloc-uid-min and system-alloc-gid-min but the target location in the file no longer matches the patch's expectations. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Suggested ChangesFile: systemd.yaml
Content: Click to expand fix analysisAnalysisNo similar fixed build failures were provided, so I cannot analyze patterns from past fixes. However, the error indicates that a patch file 'pkgconf-expose-variables-for-system-alloc-uid-gid-min.patch' is failing to apply because the target file src/core/systemd.pc.in has changed since the patch was created. This is a common issue when upgrading to new upstream versions where the target file structure has been modified. Based on the upstream changelog, systemd v259 mentions that "system-alloc-{uid,gid}-min are now exported in systemd.pc", which suggests the functionality the patch was trying to add may now be included upstream. Click to expand fix explanationExplanationThe patch is failing because systemd v259 has upstream changes that conflict with the patch. According to the upstream changelog, "system-alloc-{uid,gid}-min are now exported in systemd.pc", which indicates that the functionality this patch was trying to add has been implemented upstream in version 259. Therefore, the patch is no longer needed and should be removed. This is a common scenario when upgrading packages where custom patches become obsolete due to upstream adoption of the functionality. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
05b525e to
3534080
Compare
3534080 to
5fb3ba0
Compare
|
Fixed I traced this back to the builder kernel configuring a few required bits as modules (and modules not being present on the builder). At a minimum, those are missing: They need to become built-ins for the builder kernel. I'll add them, and potentially a few others (so we don't play whack-a-mole later on again), to the kernel config shortly. |
5fb3ba0 to
5bb34b3
Compare
Signed-off-by: Markus Boehme <markus.boehme@chainguard.dev>
5bb34b3 to
06145d9
Compare
systemd v259 uses dlopen at runtime now for some libraries rather than regular dynamic linking [1]. This means they will be invisible to the software composition analysis performed by Melange at build time, and corresponding dependencies will not automatically be added. Explicitly add the dependencies that went missing to retain the original feature set of the previous systemd release. A dependency on libcap is intentionally left out, as the release notes state its functionality is now directly implemented in systemd. [1]: https://github.com/systemd/systemd/releases/tag/v259#:~:text=Shared%20library%20dependencies%3A Signed-off-by: Markus Boehme <markus.boehme@chainguard.dev>
06145d9 to
d6951a7
Compare
|
Tested with the new builder kernel locally. Not yet deployed to Elastic Builds. |
The unit test test-firewall-util depends on various netfilter NAT modules being available. Skip the test for now until a new Elastic Build kernel has been deployed that brings those modules built-in. Signed-off-by: Markus Boehme <markus.boehme@chainguard.dev>
9efddef to
7d1e2f5
Compare
According to the changelog [1], systemd v259 no longer depends on the tar binary since it completed a rewrite of the functionality using libarchive. Add an explicit dependency on libarchive since, like other shared objects in v259, is only used via dlopen and escapes SCA. [1]: https://github.com/systemd/systemd/releases/tag/v259 Signed-off-by: Markus Boehme <markus.boehme@chainguard.dev>
7d1e2f5 to
2a37a34
Compare
The unit test test-hostname-setup is trying to set up a new UTS namespace, which does not work on the Docker Melange runner. Skip it. Signed-off-by: Markus Boehme <markus.boehme@chainguard.dev>
|
Also had to skip the |
Commit: 9ca433482f2281d71718718705ca8cd3bf562ad6