Ignore:
Timestamp:
01/02/2016 12:00:54 PM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
7.9-systemd
Children:
ee46f60
Parents:
6e13139
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/systemd.xml

    r6e13139 r26ae89a  
    4141    <title>Installation of systemd</title>
    4242
    43     <para>First, create a file to allow systemd to build when using Util-Linux
     43    <para>First, fix a build error when using Util-Linux built in
     44    Chapter 5:</para>
     45
     46<screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen>
     47
     48    <para>Apply the following patch so that compat
     49    <command>pkg-config</command> files get installed without installing compat
     50    libs which are useless on LFS:</para>
     51
     52<screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen>
     53
     54    <para>Disable two tests that always fail:</para>
     55
     56<screen><userinput remap="pre">sed -e 's:test/udev-test.pl ::g'  \
     57    -e 's:test-copy$(EXEEXT) ::g' \
     58    -i Makefile.in</userinput></screen>
     59
     60    <para>Rebuild generated files after modifying Makefile.am and
     61    Makefile.in:</para>
     62
     63<screen><userinput remap="pre">autoreconf -fi</userinput></screen>
     64
     65    <para>Create a file to allow systemd to build when using Util-Linux
    4466    built in Chapter 5, to disable LTO by default, and to build without
    4567    xlstproc:</para>
     
    5981EOF</userinput></screen>
    6082
    61     <para>LTO is disabled by default because it causes <command>systemd</command>
    62     and other auxiliary programs to link to <filename
    63     class="libraryfile">libgcc_s.so</filename>, slows the build down and makes the
    64     compiled code larger.</para>
    65 
    66     <para>Additionally, fix a build error when using Util-Linux built in
    67     Chapter 5:</para>
    68 
    69 <screen><userinput remap="pre">sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")</userinput></screen>
    70 
    71     <para>Apply the following patch so that compat <command>pkg-config</command> files
    72     get installed without installing compat libs which are useless on LFS:</para>
    73 
    74 <screen><userinput remap="pre">patch -Np1 -i ../&systemd-compat-patch;</userinput></screen>
    75 
    76     <para>Disable two tests that always fail:</para>
    77 
    78 <screen><userinput remap="pre">sed -e 's:test/udev-test.pl ::g'  \
    79     -e 's:test-copy$(EXEEXT) ::g' \
    80     -i Makefile.in</userinput></screen>
     83    <para>LTO is disabled by default because it causes
     84    <command>systemd</command> and other auxiliary programs to link to
     85    <filename class="libraryfile">libgcc_s.so</filename>, slows the build down
     86    and makes the compiled code larger.</para>
    8187
    8288    <para>Prepare systemd for compilation:</para>
Note: See TracChangeset for help on using the changeset viewer.