Changeset be00729f for chapter06


Ignore:
Timestamp:
03/31/2021 10:41:35 AM (3 years ago)
Author:
Xℹ Ruoyao <xry111@…>
Branches:
ml-11.0, multilib
Children:
15fd2f2
Parents:
b2c61c6
git-author:
Thomas Trepl <thomas@…> (07/27/2019 11:23:07 AM)
git-committer:
Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:35 AM)
Message:

MultiLib: Merge changes from trunk

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11644 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter06
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter06/bc.xml

    rb2c61c6 rbe00729f  
    4141  <sect2 role="installation">
    4242    <title>Installation of Bc</title>
    43 
     43<!--
    4444    <para>First, change an internal script to use <command>sed</command> instead
    4545    of <command>ed</command>:</para>
     
    7070
    7171<screen><userinput remap="pre">sed -i -e '/flex/s/as_fn_error/: ;; # &amp;/' configure</userinput></screen>
    72 
     72-->
    7373    <para>Prepare Bc for compilation:</para>
    74 
    75 <screen><userinput remap="configure">./configure --prefix=/usr           \
    76             --with-readline         \
    77             --mandir=/usr/share/man \
    78             --infodir=/usr/share/info</userinput></screen>
     74<!--
     75<screen><userinput remap="configure">./configure - -prefix=/usr           \
     76            - -with-readline         \
     77            - -mandir=/usr/share/man \
     78            - -infodir=/usr/share/info</userinput></screen>
     79-->
     80<screen><userinput remap="configure">PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3</userinput></screen>
    7981
    8082    <variablelist>
    8183      <title>The meaning of the configure options:</title>
    82 
     84<!--
    8385      <varlistentry>
    84         <term><parameter>--with-readline</parameter></term>
     86        <term><parameter>- -with-readline</parameter></term>
    8587        <listitem>
    8688          <para>This option tells Bc to use the <filename
     
    9092        </listitem>
    9193      </varlistentry>
     94-->
     95      <varlistentry>
     96        <term><parameter>CC=gcc CFLAGS="-std=c99"</parameter></term>
     97        <listitem>
     98          <para>These parameters specify the compiler and C standard to use.</para>
     99        </listitem>
     100      </varlistentry>
    92101
     102      <varlistentry>
     103        <term><parameter>-O3</parameter></term>
     104        <listitem>
     105          <para>Specify the optimization to use.</para>
     106        </listitem>
     107      </varlistentry>
     108
     109      <varlistentry>
     110        <term><parameter>-G</parameter></term>
     111        <listitem>
     112          <para>Omit  parts of the test suite that won't work
     113          without a GNU bc present.</para>
     114        </listitem>
     115      </varlistentry>
    93116    </variablelist>
    94117
     
    96119
    97120<screen><userinput remap="make">make</userinput></screen>
    98 
     121<!--
    99122    <para>To test bc, run the commands below. There is quite a bit of output,
    100123    so you may want to redirect it to a file. There are a very small percentage
     
    103126
    104127<screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
     128-->
     129
     130    <para>To test bc, run:</para>
     131
     132<screen><userinput remap="test">make test</userinput></screen>
     133
    105134
    106135    <para>Install the package:</para>
  • chapter06/binutils.xml

    rb2c61c6 rbe00729f  
    5757<screen><computeroutput>The system has no more ptys.
    5858Ask your system administrator to create more.</computeroutput></screen>
     59
     60    <para>Now remove one test that prevents the tests from running
     61    to completion:</para>
     62
     63<screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen>
    5964
    6065    <para>The Binutils documentation recommends building Binutils
     
    153158<screen><userinput remap="test">make -k check</userinput></screen>
    154159
    155     <para>One test, debug_msg.sh, is known to fail.</para>
     160    <para>The PC-relative offset test and 
     161    the debug_msg.sh test may fail in the LFS environment.</para>
    156162
    157163    <para>Install the package:</para>
  • chapter06/eudev.xml

    rb2c61c6 rbe00729f  
    105105    environment:</para>
    106106
    107 <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
     107<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.xz
    108108make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
    109109
  • chapter06/ninja.xml

    rb2c61c6 rbe00729f  
    8989    <para>To test the results, issue:</para>
    9090
    91 <screen><userinput remap="test">python3 configure.py
    92 ./ninja ninja_test
     91<screen><userinput remap="test">./ninja ninja_test
    9392./ninja_test --gtest_filter=-SubprocessTest.SetWithLots</userinput></screen>
    9493
  • chapter06/systemd.xml

    rb2c61c6 rbe00729f  
    4040  <sect2 role="installation">
    4141    <title>Installation of systemd</title>
    42     <!--
    43     <para>Apply a patch to fix two critical security vulnerabilities:</para>
    44 
    45 <screen><userinput remap="pre">patch -Np1 -i ../systemd-240-security_fixes-2.patch</userinput></screen>
    46     -->
    4742
    4843    <para>Create a symlink to work around missing xsltproc:</para>
     
    7166<screen><userinput remap="pre">sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in</userinput></screen>
    7267
     68<!-- EDITORS NOTE: At the next systemd release, see if the CFLAGS can be removed. -->
     69
    7370    <para>Prepare systemd for compilation:</para>
    7471
    75     <screen><userinput remap="configure">mkdir -p build
     72<screen><userinput remap="configure">mkdir -p build
    7673cd       build
    7774
    7875PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib/pkgconfig" \
    7976LANG=en_US.UTF-8                   \
     77CFLAGS+="-Wno-format-overflow"     \
    8078meson --prefix=/usr                \
    8179      --sysconfdir=/etc            \
     
    8684      -Dfirstboot=false            \
    8785      -Dinstall-tests=false        \
    88       -Dkill-path=/bin/kill        \
    8986      -Dkmod-path=/bin/kmod        \
    9087      -Dldconfig=false             \
     
    9794      -Dumount-path=/bin/umount    \
    9895      -Db_lto=false                \
     96      -Drpmmacrosdir=no            \
    9997      ..</userinput></screen>
    10098
     
    175173      </varlistentry>
    176174
     175      <varlistentry>
     176        <term><parameter>-Drpmmacrosdir=no</parameter></term>
     177        <listitem>
     178          <para>This switch disables installation of RPM Macros
     179          for use with systemd because LFS does not support RPM.</para>
     180        </listitem>
     181      </varlistentry>
    177182    </variablelist>
    178183
     
    189194<screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen>
    190195
    191     <para>Remove an unnecessary directory and file:</para>
    192 
    193 <screen><userinput remap="install">rm -rfv /usr/lib/rpm
    194 rm -f /usr/bin/xsltproc</userinput></screen>
     196    <para>Remove an unnecessary symbolic link:</para>
     197
     198<screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen>
    195199
    196200    <para>Create the <filename>/etc/machine-id</filename> file needed by
     
    198202
    199203<screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen>
     204
     205    <para>Remove symbolic links to Util-Linux libraries:</para>
     206
     207<screen><userinput remap="adjust">rm -fv /usr/lib/lib{blkid,uuid,mount}.so*</userinput></screen>
    200208
    201209    <para>Prevent systemd from creating <filename>/run/nologin</filename>
Note: See TracChangeset for help on using the changeset viewer.