!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

82 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5126 Servers

Load older messages


SenderMessageTime
30 Jul 2022
@linus:schreibt.jetzt@linus:schreibt.jetztyeah that take is lukewarm at best :p18:59:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgShoot I don't even see a reason not to do it immediately19:00:21
@k900:0upti.meK900 I actually don't think doing it now is a great idea because there will probably be one-liner fixes and having to do the whole release dance is awkard 19:00:28
@linus:schreibt.jetzt@linus:schreibt.jetztidk, having it in nixpkgs has its advantages too19:00:31
@k900:0upti.meK900 * I actually don't think doing it now is a great idea because there will probably be one-liner fixes and having to do the whole release dance is awkawrd 19:00:31
@k900:0upti.meK900 * I actually don't think doing it now is a great idea because there will probably be one-liner fixes and having to do the whole release dance is awkward 19:00:34
@linus:schreibt.jetzt@linus:schreibt.jetztyeah that19:00:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah fair enough19:00:42
@linus:schreibt.jetzt@linus:schreibt.jetztand also running tests is really really easy currently19:00:59
@linus:schreibt.jetzt@linus:schreibt.jetztchange the code, nix-build nixos/tests/...19:01:08
@k900:0upti.meK900That can be fixed if we expose make-initrd-ng as a top level package in nixpkgs19:01:46
@k900:0upti.meK900Then we can overlay that from the make-initrd-ng repo19:01:55
@k900:0upti.meK900And just run the same tests19:02:00
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea. And it already is a top level package19:02:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgDo we have any NixOS tests for building cross things? Or is cross considered not officially supported?19:08:27
@elvishjerricco:matrix.org@elvishjerricco:matrix.org On an unrelated note, I think networkctl doesn't work if you don't have dbus, which makes messing with networking in initrd kind of annoying... Probably not worth including dbus over, but noteworthy 19:25:40
@k900:0upti.meK900There's something built on Hydra for mobile 19:28:17
@k900:0upti.meK900But I'm not sure how much or if there's any actual VM tests there 19:28:30
31 Jul 2022
@joerg:thalheim.ioMic92
In reply to @janne.hess:helsinki-systems.de
Mic92: do you have more insight on that?
K900: It's reading the whole file into memory.
05:41:17
@joerg:thalheim.ioMic92See this: https://github.com/NixOS/patchelf/blob/master/src/patchelf.cc#L23005:41:34
@k900:0upti.meK900Oh yeah, I just meant that when it needs a value, it converts the endianness in place05:41:46
@k900:0upti.meK900So if you miss calling the conversion function somewhere, it explodes in some subtle way05:42:56
@joerg:thalheim.ioMic92I don't think rust would be a good choice at the time. patchelf is used in many package manager for bootstrapping and Rust would be a heavy bootstrap dependency05:43:30
@joerg:thalheim.ioMic92It does not even use a sane build system like meson or cmake for the same reason.05:43:59
@k900:0upti.meK900Yeah, that was more of a joke 05:44:04
@k900:0upti.meK900 Rust also isn't really a (that) good fit for doing this kind of low level byte-twiddling 05:45:08
@k900:0upti.meK900Cause it is kind of inherently unsafe05:45:34
@joerg:thalheim.ioMic92the endianess conversion is actually mostly done in this helper: https://github.com/NixOS/patchelf/blob/master/src/patchelf.cc#L97 so most of the code does not have to care about it.05:46:42
@k900:0upti.meK900Yeah, but it has to care about calling the helper every time 05:49:09
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSo one thing I didn't think of during the strip discussion yesterday: The old initrd unconditionally strips. So the question about if we've been adding an undue binutils dependency for most people's rebuilds was moot :P12:51:45

Show newer messages


Back to Room ListRoom Version: 6