systemd: add musl patches#141980
systemd: add musl patches#141980yu-re-ka merged 1 commit intoNixOS:stagingfrom yu-re-ka:feature/systemd-musl
Conversation
|
Who will be in charge of rebasing these? I certainly won't be doing that. A regular Systemd upgrade is already very involved for us. |
"They should not block future systemd upgrades." Just like with many other packages this will break regularly on systemd upgrades, but that's fine. You don't have to care about these patches at all. Some musl user (most of which are already very involved with distro development) will submit an update once the rebased patchset is available in OpenEmbedded. |
|
@ofborg build pkgsMusl.systemdMinimal |
|
This is excellent work, thank you. It'll be especially helpful for users relying on static binaries with systemd/udev dependencies. I'll be more than happy to help maintain it going forward, and as you've noted, it won't create any extra work for systemd/glibc maintainers. It shouldn't be too much work for Nixpkgs musl users, either, since the patchset is maintained by another project. A couple of questions:
|
This currently only fixes
Good point, even though I have worked with yocto/OE stuff for quite some time, the distinction is not completely clear to me. I will check which is the initial source and update this accordingly.
These changes were made by me because I could not find anything for the compiler warnings/errors in OE or other distros. One of the changes might not be handled by OE because it only fixes a warning and maybe OE ignores compiler warnings? |
|
From the Yocto poky repository readme
The whole meta/ subtree matches between the OE-core and Yocto poky repositories, but according to the quote above OE-core seems to be the proper source. |
|
Rebased to staging to prevent future merge conflicts. |
|
This needs another rebase, due to the 249.5 bump. |
Fixes build of pkgsMusl.systemdMinimal (and pkgsMusl.systemd if combined with other fixes). These patches are applied conditionally on purpose: They are not checked to be properly guarded. They should not block future systemd upgrades. Also see the original RFC section around musl systemd: https://github.com/NixOS/rfcs/blob/master/rfcs/0023-musl-libc.md#systemd
Done. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/libudev-as-static-library/16272/7 |
Motivation for this change
Fixes build of pkgsMusl.systemdMinimal and pkgsMusl.systemd.
This might be controversial, but it would be a big step towards building full NixOS systems against musl.
These patches are applied conditionally on purpose: They are not checked to be properly guarded. They should not block future systemd upgrades.
Also see the original RFC discussion around musl systemd: https://github.com/NixOS/rfcs/blob/master/rfcs/0023-musl-libc.md#systemd
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)