Cyclic dependency with systemd?
Hello,
I am a bit concerned about the call to "sd_booted" in misc-util/logger.c:942. This would mean that util-linux depends on systemd, but systemd also depends on util-linux for libmount.
I have not run into any problems myself but can this be an issue? In theory: If you compile systemd without util-linux, it should fail because it needs libmount, and if you try to compile util-linux, it should also fail because it needs sd_booted from libsystemd.
Best regards,
Fredrik Johnsson
Axis Communication
Karel Zak
maintainerQuoted 4 lines · Fredrik Johnsson
I have not run into any problems myself but can this be an issue? In
theory: If you compile systemd without util-linux, it should fail because it needs libmount, and if you try to compile util-linux, it should also fail because it needssd_bootedfrom libsystemd.
The dependence on libsystemd is optional:
1/ build util-linux --without-systemd
2/ build systemd
3/ re-build util-linux --with-systemd
anyway, people usually don't build all from scratch. If you already have system with all the dependencies then you can build without extra care about this issue.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Quoted 8 lines · Karel Zak
Quoted 4 lines · Fredrik Johnsson
I have not run into any problems myself but can this be an issue? In
theory: If you compile systemd without util-linux, it should fail because it needs libmount, and if you try to compile util-linux, it should also fail because it needssd_bootedfrom libsystemd.The dependence on libsystemd is optional:
Quoted 7 lines
1/ build util-linux --without-systemd 2/ build systemd 3/ re-build util-linux --with-systemdanyway, people usually don't build all from scratch. If you already have system with all the dependencies then you can build without extra care about this issue.
For those of us who do build everything from scratch and choose to not use systemd, there is also a circular dependency on udev (we use eudev). For our first build of util-linux we use --without-systemdsystemunitdir
-- Bruce Dubbs
linuxfromscratch.org