Conversation
| return log_error_errno(errno, "Failed to open keyboard mapping list: %m"); | ||
| if (!cached) | ||
| - cached = secure_getenv("SYSTEMD_XKB_DIRECTORY") ?: "/usr/share/X11/xkb"; | ||
| + cached = secure_getenv("SYSTEMD_XKB_DIRECTORY") ?: "/etc/X11/xkb"; |
There was a problem hiding this comment.
I think this might mean we can drop this patch by wrapProgram'ing localectl
| (lib.mesonOption "umount-path" "${lib.getOutput "mount" util-linux}/bin/umount") | ||
|
|
||
| # Swap | ||
| (lib.mesonOption "swapon-path" "${lib.getOutput "swap" util-linux}/sbin/swapon") |
There was a problem hiding this comment.
an agetty-path was also added. We're not setting it as we override the entire agetty.service in NixOS module but maybe we should so that the one shipped with systemd actually works on NixOS
| ); | ||
|
|
||
| doCheck = true; | ||
| doCheck = false; |
There was a problem hiding this comment.
This reverts #404902 (comment)
Without this I get linker errors. And we have withTests = false anyway so I don't think this did anything useful in 258.2 in the first place.
systemd tests on NixOS is probably a multiple-month engineering effort as it's full of hardcoded FHS assumptions and requires mkosi. Neither of which work on NixOS
|
@alyssais care to look at the musl stuff? It seems musl is now supported in 259 so I feel we can drop a lot off these patches? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Can try to have a look but @LordGrimmauld might be a better ask at this point since they actually use musl systemd on NixOS with all its features. |
|
My musl VM does not currently compile as bootstrap tools are broken until #473403 gets resolved. Iirc that one is waiting for infra team. Building my own bootstrap tools, i got slightly further, but not super far with gcc 15. I'll need to revisit this, and there is significant work to do. That said: We should be able to just blanket-drop all musl specific patches here. |
|
this needs to go against staging, and has merge conflicts with the systemd 258.3 update merged earlier |
|
On musl:
I'll push the relevant updates to my musl VM shortly. |
|
https://git.grimmauld.de/Grimmauld/grimm-musl/commit/064dd8afcfc41c2083c0b8842b60e99bf6282fb5
#473403, #453557, #472008, #473068 on musl nixos and current staging, with a couple other fixes |
ae97804 to
336b4ea
Compare
|
Okay, I now built systemd successfully on Some general housekeeping things we can do: diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index 5d9d1eff074a..0b9e4e952676 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -5,7 +5,6 @@
pkgsCross,
testers,
fetchFromGitHub,
- fetchzip,
buildPackages,
makeBinaryWrapper,
ninja,
@@ -17,7 +16,6 @@
getent,
glibcLocales,
autoPatchelfHook,
- fetchpatch,
# glib is only used during tests (test-bus-gvariant, test-bus-marshal)
glib,
@@ -509,7 +507,6 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonEnable "libcurl" wantCurl)
(lib.mesonEnable "libidn" false)
(lib.mesonEnable "libidn2" withLibidn2)
- (lib.mesonEnable "libiptc" false)
(lib.mesonEnable "repart" withRepart)
(lib.mesonEnable "sysupdate" withSysupdate)
(lib.mesonEnable "sysupdated" withSysupdate)We are at a point where we can start thinking about running the test suite and aarch64 tests. |
|
Per NEWS, we should be able to drop the libcap dependency here. |
Had to revert NixOS#404902 as it gives linker errors. And I don't think the systemd tests work on NixOS anyway.
woohoo! one less circular dep to worry about from NEWS: systemd no longer links against libcap at all. The simple system call wrappers and other APIs it provides have been reimplemented directly in systemd, which reduced the codebase and the dependency tree.
WilliButz
left a comment
There was a problem hiding this comment.
rebased the commits locally on a recent staging rev, built a couple of images and ran a some of the in-tree + some downstream integration tests. LGTM 👍

Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.