10.122. Systemd-213 N32 Libraries

The systemd package is a system and service manager for Linux operating systems.

10.122.1. Installation of systemd

[Note]

Note

If you do not have Linux-PAM installed in your system you can safely skip this page. If you do have Linux-PAM installed and you wish to use pam_systemd.so to register and control user sessions within the systemd control group hierarchy, follow the instructions to install the module.

Systemd 209 merged several libraries into libsystemd, but some packages that use systemd still expect those separate libraries. Apply a patch to allow backwards compatibility with these packages by installing Pkg-config files for the old libraries:

patch -Np1 -i ../systemd-213-compat-1.patch

Prepare systemd for compilation:

CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
  ./configure --prefix=/usr \
    --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib32 \
    --libexecdir=/usr/lib32 --docdir=/usr/share/doc/systemd-213 \
    --with-rootprefix="" -with-rootlibdir=/lib32 \
    --enable-split-usr --disable-gudev --with-kbd-loadkeys=/bin/loadkeys \
    --with-kbd-setfont=/bin/setfont --with-dbuspolicydir=/etc/dbus-1/system.d \
    --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \
    --with-dbussessionservicedir=/usr/share/dbus-1/services \
    --with-dbussystemservicedir=/usr/share/dbus-1/system-services \
    cc_cv_CFLAGS__flto=no

Compile the package:

make src/shared/{af,errno}-{from,to}-name.h src/libsystemd/libsystemd.sym
make libsystemd.la libudev.la libnss_myhostname.la

Install the package:

make install-libLTLIBRARIES
make install-pkgconfiglibDATA

Move the nss_myhostname library to /lib:

mv -v /usr/lib32/libnss_myhostname.so.2 /lib32

Details on this package are located in Section 10.123.3, “Contents of Systemd.”