Installation of Systemd
- 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-compat-patch;
-
Prevent the Makefile from trying to run
setcap on systemd-detect-virt,
@@ -46,16 +38,15 @@
sed -i '/timesyncd.conf/d' src/timesync/timesyncd.conf.in
- By default, systemd-fsck will run
- /sbin/fsck with the option, which
- applies an flock on the file system being checked.
- This can conflict with an flock that
- systemd itself puts on the file system, which could result in problems
- booting. fsck will be fixed to avoid this problem in a
- future release of Util-linux, but for now we will work around the issue by
- simply preventing systemd-fsck from using :
-
-sed -i '/-l/d' src/fsck/fsck.c
-
Prepare systemd for compilation:
+
+ Create a file to declare some variables
+
+ cat > config.cache << "EOF"
+ KILL="/bin/kill"
+ MOUNT_PATH="/bin/mount"
+ UMOUNT_PATH="/bin/umount"
+ SULOGIN="/sbin/sulogin"
+ XSLTPROC="/usr/bin/xsltproc"
+ EOF./configure \
@@ -68,15 +59,25 @@
--with-rootlibdir=/lib \
--enable-split-usr \
- --disable-gudev \
+ --disable-firstboot \
+ --disable-ldconfig \
+ --disable-lto \
+ --disable-sysusers \
+ --with-default-dnssec=no \
--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
+ --config-cache
The meaning of the configure options:
+
+
+ --config-cache
+
+ Use the created config.cache.
+
+
@@ -99,9 +100,38 @@
- --disable-gudev
-
- This switch prevents systemd from building
- libgudev as it requires
- Glib, which is not installed in CLFS.
+ --disable-firstboot
+
+ This switch prevents installation of systemd services
+ responsible for setting up the system for the first time.
+ They are not useful for CLFS as everything is done manually.
+
+
+
+
+
+ --disable-ldconfig
+
+ This switch prevents installation of a systemd unit that runs
+ ldconfig at boot, and increases boot time.
+ While it may be not useful for source distributions like CLFS,
+ this option may be removed.
+
+
+
+
+ --disable-lto
+
+ This prevents the build system from using GCC's Link-time
+ optimization (LTO), to ensure that systemd's binaries will not try
+ to link to libgcc_s
+
+
+
+
+ --disable-sysusers
+
+ This switch prevents install of systemd services which setup
+ the previously created /etc/group and
+ /etc/passwd files.
@@ -116,9 +146,7 @@
- cc_cv_CFLAGS__flto=no
-
- This prevents the build system from using GCC's Link-time
- optimization (LTO), to ensure that systemd's binaries will not try
- to link to libgcc_s.
+ --with-default-dnssec=no
+
+ This switch turns off the experimental DNNSEC support.
@@ -132,12 +160,14 @@
Prevent a broken test case from running:
-sed -e "s:test/udev-test.pl::g" \
- -e "s:test-bus-cleanup\$(EXEEXT) ::g" \
- -e "s:test-bus-gvariant\$(EXEEXT) ::g" \
- -i Makefile
+sed -e 's@test/udev-test.pl @@' \
+ -e 's@test-copy$(EXEEXT) @@' \
+ -i Makefile.in
+To test the results, issue:
-make check
+
+ sed -i "s:minix:ext4:g" src/test/test-path-util.c
+ make checkInstall the package:
@@ -148,10 +178,4 @@
install -v -m644 man/*.html /usr/share/doc/systemd-&systemd-version;
-
- Move the
- nss_myhostname library to
- /lib:
-
-mv -v /usr/lib/libnss_myhostname.so.2 /libRemove an unnecessary directory:
@@ -165,9 +189,4 @@
done
ln -sfv ../lib/systemd/systemd /sbin/init
-
- Modify a configuration file which references a group that
- doesn't exist:
-
-sed -i "s@root lock@root root@g" /usr/lib/tmpfiles.d/legacy.conf
Index: BOOK/final-system/multilib/systemd-64bit.xml
===================================================================
--- BOOK/final-system/multilib/systemd-64bit.xml (revision c831ac4e6a5e8f887c0e8d806b43142dad68f05b)
+++ BOOK/final-system/multilib/systemd-64bit.xml (revision 216be86a04ca1f68158371cb0bf85d64605d630d)
@@ -23,12 +23,4 @@
-
-
-
-
@@ -47,9 +39,9 @@
+ xpointer="xpointer(//*[@os='cc1'])"/>
+ xpointer="xpointer(//*[@os='cc2'])"/>
+ --config-cache
-
-mv -v /usr/lib64/libnss_myhostname.so.2 /lib64
-
-
@@ -143,12 +131,4 @@
xpointer="xpointer(//*[@os='s'])"/>
-
-
-
-
Index: BOOK/final-system/multilib/systemd-n32.xml
===================================================================
--- BOOK/final-system/multilib/systemd-n32.xml (revision c831ac4e6a5e8f887c0e8d806b43142dad68f05b)
+++ BOOK/final-system/multilib/systemd-n32.xml (revision 216be86a04ca1f68158371cb0bf85d64605d630d)
@@ -23,25 +23,20 @@
+ href="../common/systemd.xml"
+ xpointer="xpointer(//*[@os='cc1'])"/>
+ xpointer="xpointer(//*[@os='cc2'])"/>
-
-
-CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
+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-&systemd-version; \
@@ -49,12 +44,15 @@
--with-rootlibdir=/lib32 \
--enable-split-usr \
- --disable-gudev \
+ --disable-firstboot \
+ --disable-ldconfig \
+ --disable-lto \
+ --disable-sysusers \
+ --with-default-dnssec=no \
--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
+ --config-cache
-
-
-mv -v /usr/lib32/libnss_myhostname.so.2 /lib32
-
Index: BOOK/final-system/multilib/systemd.xml
===================================================================
--- BOOK/final-system/multilib/systemd.xml (revision c831ac4e6a5e8f887c0e8d806b43142dad68f05b)
+++ BOOK/final-system/multilib/systemd.xml (revision 216be86a04ca1f68158371cb0bf85d64605d630d)
@@ -22,20 +22,4 @@
Installation of Systemd
-
-
- 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.
-
-
-
-
-
-
-
-
-
Index: BOOK/introduction/common/changelog.xml
===================================================================
--- BOOK/introduction/common/changelog.xml (revision c831ac4e6a5e8f887c0e8d806b43142dad68f05b)
+++ BOOK/introduction/common/changelog.xml (revision 216be86a04ca1f68158371cb0bf85d64605d630d)
@@ -40,6 +40,10 @@
- [William Harrington] - Upgrade Util-Linux to 2.29.2. Fixes
+ [william harrington] - upgrade util-linux to 2.29.2. fixes
ticket #1038.
+
+
+ [william harrington] - upgrade Systemd 233. fixes
+ ticket #1003.
Index: BOOK/materials/common/patches.xml
===================================================================
--- BOOK/materials/common/patches.xml (revision c831ac4e6a5e8f887c0e8d806b43142dad68f05b)
+++ BOOK/materials/common/patches.xml (revision 216be86a04ca1f68158371cb0bf85d64605d630d)
@@ -142,13 +142,4 @@
- Systemd Compat Patch - &systemd-compat-patch-size;:
-
- Download:
- MD5 sum: &systemd-compat-patch-md5;
-
-
-
- Sysvinit Tools Updates Patch - &sysvinit-tools_updates-patch-size;:
Index: BOOK/packages.ent
===================================================================
--- BOOK/packages.ent (revision c831ac4e6a5e8f887c0e8d806b43142dad68f05b)
+++ BOOK/packages.ent (revision 216be86a04ca1f68158371cb0bf85d64605d630d)
@@ -442,8 +442,8 @@
-
-
-
-
+
+
+
+
Index: BOOK/patches.ent
===================================================================
--- BOOK/patches.ent (revision c831ac4e6a5e8f887c0e8d806b43142dad68f05b)
+++ BOOK/patches.ent (revision 216be86a04ca1f68158371cb0bf85d64605d630d)
@@ -67,8 +67,4 @@
-
-
-
-