-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Is it possible to replace systemd
with libuv
#439
Comments
Other than that, yeah, you could also modify it to use |
If using |
AFAICT, you don't need systemd: hannes@alpaka-pi:~ $ ldd /lib/aarch64-linux-gnu/libsystemd.so.0
linux-vdso.so.1 (0x0000007f8c837000)
libcap.so.2 => /lib/aarch64-linux-gnu/libcap.so.2 (0x0000007f8c6d0000)
libgcrypt.so.20 => /lib/aarch64-linux-gnu/libgcrypt.so.20 (0x0000007f8c5c0000)
liblzma.so.5 => /lib/aarch64-linux-gnu/liblzma.so.5 (0x0000007f8c570000)
libzstd.so.1 => /lib/aarch64-linux-gnu/libzstd.so.1 (0x0000007f8c4b0000)
liblz4.so.1 => /lib/aarch64-linux-gnu/liblz4.so.1 (0x0000007f8c460000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f8c2b0000)
/lib/ld-linux-aarch64.so.1 (0x0000007f8c7fa000)
libgpg-error.so.0 => /lib/aarch64-linux-gnu/libgpg-error.so.0 (0x0000007f8c260000) https://packages.debian.org/de/sid/libsystemd0 no dependency on the actual systemd (https://packages.debian.org/de/sid/systemd), udev, etc |
That seems like an issue on their end then :) Or it's intentional, could be it's very rare to depend on libsystemd without depending on systemd, so they just bundled it together. |
Thank you! |
did you open an issue with buildroot? if yes, you can link it here and keep this one open. Just if someone else has the same problem in the future. |
Sorry, I don't have a GitLab account, I'm from China, and Gitlab banned the China register. 😭 |
@HuMoran opened an issue here: https://gitlab.com/buildroot.org/buildroot/-/issues/30 |
This isn't a buildroot issue. libsystemd is provided by systemd, and there isn't a way to only build and install libsystemd from the systemd package. For binary distributions, there are usually multiple binary packages generated from a single source, but that is not possible in Buildroot. |
Can add the |
Thanks @aduskett, yeah seems like installing only libsystemd is a pretty rare use-case |
I don't know how likely is that I will work on it, but if you want to work on it, I'd happily accept it. I'm currently working on a refactor for multi-view and I've been switching to use my own little mt-safe sd-event wrapper there exclusively: https://github.com/ardera/flutter-pi/blob/feat/multiview/src/util/event_loop.c For libuv you'd probably want to implement the same API using libuv in some |
I'm not sure I can do it. This feature is a big project for me (I haven't written C code for many years). I am learning the relevant code. Is there any design Introduction? |
systemd
with libuv
systemd
with libuv
systemd
with libuv
systemd
with libuv
I've actually done a bit of work on a much much older version of https://github.com/troglobit/libuev I'll perhaps try to find some time to port all these changes to the latest version if there's interest in that. |
@HuMoran I have added a bit of comments here: https://github.com/ardera/flutter-pi/blob/feat/multiview/src/util/event_loop.h let me know if that helps @doawoo that'd be great! |
Interesting, I had the same problem with buildroot as @HuMoran. Solved it for me by removing the dependency of systemd being the init system. It works but of course is super hacky. (didnt dare to suggest it on the buildroot mailing list). So libuev as alternativ would be very nice! |
Is it possible to replace
systemd
withlibuv
? Usingsystemd
will cause the boot to start very slowly.Here is an example:
sony/flutter-embedded-linux@595f7f5
The text was updated successfully, but these errors were encountered: