mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
configure: keep the replacement libsystemd opt-in
Building it by default installs our libsystemd.so.0 in $libdir. Where the real one is already present, and contrib/debian/build.sh configures --prefix=/usr --exec-prefix= on a Debian host, ours outranks it in the loader cache, and every program linking libsystemd loses sd_journal_stream_fd and the LIBSYSTEMD_209 symbol versions. The test sysroot ran into exactly that, dbus-daemon exited 127 on every restart. Restore the default to no. sulogin and watchdogd stay on, they only add binaries. distcheck asks for the library so it stays covered. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+15
-13
No files matched your search
+7
-4
@@ -89,10 +89,13 @@ Below are a few of the main switches to configure:
|
||||
on `/dev/watchdog`, `--with-watchdog=DEV` selects another device.
|
||||
Finit starts it when the device node exists, see [Watchdog](watchdog.md).
|
||||
|
||||
* `--without-libsystemd`: Drop the replacement `libsystemd`, built and
|
||||
installed by default, which lets programs that use `sd_notify()` talk
|
||||
to Finit without systemd. Note, it installs `libsystemd.so` in
|
||||
`$libdir`, where a system with systemd already has one.
|
||||
* `--with-libsystemd`: Build the replacement `libsystemd`, which lets
|
||||
programs that use `sd_notify()` talk to Finit without systemd. Off by
|
||||
default because it installs `libsystemd.so.0` in `$libdir`: on a host
|
||||
that has the real one, ours shadows it in the loader cache and every
|
||||
program linking it, `dbus-daemon` and `udevd` included, loses the
|
||||
symbols it needs. Safe on a systemd-free system, which is the point
|
||||
of it.
|
||||
|
||||
For more configure flags, see <kbd>./configure --help</kbd>
|
||||
|
||||
|
||||
Reference in new issue
Block a user