mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
Fix systemd chapter 6 build, move util-linux back to end of chapter 6, remove sysmlink for /etc/resolv.conf
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10985 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
6e13139a1b
commit
26ae89aa60
@ -420,7 +420,7 @@
|
|||||||
<segtitle>&before;</segtitle>
|
<segtitle>&before;</segtitle>
|
||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>Bash, Diffutils, Findutils, Man-DB, and Udev</seg>
|
<seg>Bash, Diffutils, Findutils, Man-DB, and Systemd</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
@ -2271,7 +2271,7 @@
|
|||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC,
|
<seg>Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC,
|
||||||
Gettext, Glibc, Grep, Make, Ncurses, Sed, Udev, and Zlib</seg>
|
Gettext, Glibc, Grep, Make, Ncurses, Sed, Systemd, and Zlib</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
@ -2393,7 +2393,7 @@
|
|||||||
<segtitle>&before;</segtitle>
|
<segtitle>&before;</segtitle>
|
||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>GRUB, Kmod, Man-DB, Udev</seg>
|
<seg>GRUB, Kmod, Man-DB, Systemd</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
|
@ -36,6 +36,21 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>2016-01-02</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[dj] - Fix build of systemd with libblkid and libmount in
|
||||||
|
/tools/lib and move util-linux to its previous build order to
|
||||||
|
solve reciprocal dependency.</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>[dj] - Removed /etc/resolv.conf symlink in network
|
||||||
|
configuration as it is created automatically if needed.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2016-01-01</para>
|
<para>2016-01-01</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -58,7 +58,6 @@
|
|||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kmod.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kmod.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
|
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="systemd.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="systemd.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="procps.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="procps.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="e2fsprogs.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="e2fsprogs.xml"/>
|
||||||
@ -76,6 +75,7 @@
|
|||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="make.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="make.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="patch.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="patch.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus.xml"/>
|
||||||
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="man-db.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="man-db.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tar.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tar.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/>
|
||||||
|
@ -40,7 +40,29 @@
|
|||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of systemd</title>
|
<title>Installation of systemd</title>
|
||||||
|
|
||||||
<para>First, create a file to allow systemd to build when using Util-Linux
|
<para>First, fix a build error when using Util-Linux built in
|
||||||
|
Chapter 5:</para>
|
||||||
|
|
||||||
|
<screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen>
|
||||||
|
|
||||||
|
<para>Apply the following patch so that compat
|
||||||
|
<command>pkg-config</command> files get installed without installing compat
|
||||||
|
libs which are useless on LFS:</para>
|
||||||
|
|
||||||
|
<screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen>
|
||||||
|
|
||||||
|
<para>Disable two tests that always fail:</para>
|
||||||
|
|
||||||
|
<screen><userinput remap="pre">sed -e 's:test/udev-test.pl ::g' \
|
||||||
|
-e 's:test-copy$(EXEEXT) ::g' \
|
||||||
|
-i Makefile.in</userinput></screen>
|
||||||
|
|
||||||
|
<para>Rebuild generated files after modifying Makefile.am and
|
||||||
|
Makefile.in:</para>
|
||||||
|
|
||||||
|
<screen><userinput remap="pre">autoreconf -fi</userinput></screen>
|
||||||
|
|
||||||
|
<para>Create a file to allow systemd to build when using Util-Linux
|
||||||
built in Chapter 5, to disable LTO by default, and to build without
|
built in Chapter 5, to disable LTO by default, and to build without
|
||||||
xlstproc:</para>
|
xlstproc:</para>
|
||||||
|
|
||||||
@ -58,26 +80,10 @@ cc_cv_CFLAGS__flto=no
|
|||||||
XSLTPROC="/usr/bin/xsltproc"</literal>
|
XSLTPROC="/usr/bin/xsltproc"</literal>
|
||||||
EOF</userinput></screen>
|
EOF</userinput></screen>
|
||||||
|
|
||||||
<para>LTO is disabled by default because it causes <command>systemd</command>
|
<para>LTO is disabled by default because it causes
|
||||||
and other auxiliary programs to link to <filename
|
<command>systemd</command> and other auxiliary programs to link to
|
||||||
class="libraryfile">libgcc_s.so</filename>, slows the build down and makes the
|
<filename class="libraryfile">libgcc_s.so</filename>, slows the build down
|
||||||
compiled code larger.</para>
|
and makes the compiled code larger.</para>
|
||||||
|
|
||||||
<para>Additionally, fix a build error when using Util-Linux built in
|
|
||||||
Chapter 5:</para>
|
|
||||||
|
|
||||||
<screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen>
|
|
||||||
|
|
||||||
<para>Apply the following patch so that compat <command>pkg-config</command> files
|
|
||||||
get installed without installing compat libs which are useless on LFS:</para>
|
|
||||||
|
|
||||||
<screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen>
|
|
||||||
|
|
||||||
<para>Disable two tests that always fail:</para>
|
|
||||||
|
|
||||||
<screen><userinput remap="pre">sed -e 's:test/udev-test.pl ::g' \
|
|
||||||
-e 's:test-copy$(EXEEXT) ::g' \
|
|
||||||
-i Makefile.in</userinput></screen>
|
|
||||||
|
|
||||||
<para>Prepare systemd for compilation:</para>
|
<para>Prepare systemd for compilation:</para>
|
||||||
|
|
||||||
|
@ -115,16 +115,9 @@ EOF</userinput></screen>
|
|||||||
|
|
||||||
<para>When using <command>systemd-resolved</command> for DNS
|
<para>When using <command>systemd-resolved</command> for DNS
|
||||||
configuration, it is responsible for creating the
|
configuration, it is responsible for creating the
|
||||||
<filename>/etc/resolv.conf</filename> file, which is placed in a
|
<filename>/etc/resolv.conf</filename> file. Since version 226, the
|
||||||
non-standard location that is writable during early boot. In order to be
|
symlink for <filename>/etc/resolv.conf</filename> is created by systemd
|
||||||
used by other components of the system, it is necessary to create a
|
when needed, so no further configuration is necessary.</para>
|
||||||
symlink with the following command:</para>
|
|
||||||
|
|
||||||
<screen><userinput>ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
|
|
||||||
|
|
||||||
<para>This is required if you are specifying DNS entries in <filename
|
|
||||||
class="extension">.network</filename> files or using the built in
|
|
||||||
DHCP client to obtain DNS addresses.</para>
|
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!ENTITY version "20160101-systemd">
|
<!ENTITY version "20160102-systemd">
|
||||||
<!ENTITY short-version "systemd"> <!-- Used in dbus chapter, change to x.y for release -->
|
<!ENTITY short-version "systemd"> <!-- Used in dbus chapter, change to x.y for release -->
|
||||||
<!ENTITY releasedate "January 1, 2016">
|
<!ENTITY releasedate "January 2, 2016">
|
||||||
<!ENTITY copyrightdate "1999-2016"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2016"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "7.9">
|
<!ENTITY milestone "7.9">
|
||||||
<!ENTITY generic-version "systemd"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "systemd"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||||
|
Loading…
Reference in New Issue
Block a user