Changeset efcb393 for chapter06


Ignore:
Timestamp:
05/03/2020 09:02:51 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a715dec
Parents:
9d719e2
Message:

Make the new book

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

Location:
chapter06
Files:
1 deleted
21 edited

Legend:

Unmodified
Added
Removed
  • chapter06/acl.xml

    r9d719e2 refcb393  
    5151            --docdir=/usr/share/doc/acl-&acl-version;</userinput></screen>
    5252
    53 <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr         \
     53<screen revision="systemd"><userinput remap="configure">
     54./configure --prefix=/usr         \
    5455            --disable-static      \
    5556            --libexecdir=/usr/lib \
  • chapter06/attr.xml

    r9d719e2 refcb393  
    4444    <para>Prepare Attr for compilation:</para>
    4545
    46 <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr     \
     46<screen revision="sysv"><userinput remap="configure">
     47./configure --prefix=/usr     \
    4748            --bindir=/bin     \
    4849            --disable-static  \
     
    5051            --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
    5152
    52 <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr     \
     53<screen revision="systemd"><userinput remap="configure">
     54./configure --prefix=/usr     \
    5355            --disable-static  \
    5456            --sysconfdir=/etc \
  • chapter06/bc.xml

    r9d719e2 refcb393  
    4141  <sect2 role="installation">
    4242    <title>Installation of Bc</title>
    43 <!--
    44     <para>First, change an internal script to use <command>sed</command> instead
    45     of <command>ed</command>:</para>
    4643
    47 <screen><userinput remap="pre">cat &gt; bc/fix-libmath_h &lt;&lt; "EOF"
    48 #! /bin/bash
    49 sed -e '1   s/^/{"/' \
    50     -e     's/$/",/' \
    51     -e '2,$ s/^/"/'  \
    52     -e   '$ d'       \
    53     -i libmath.h
     44    <para>Prepare Bc for compilation:</para>
    5445
    55 sed -e '$ s/$/0}/' \
    56     -i libmath.h
    57 EOF</userinput></screen>
    58 
    59     <para>Create temporary symbolic links so the package can find
    60     the readline library and confirm that its required libncurses
    61     library is available. Even though the libraries are in /tools/lib
    62     at this point, the system will use /usr/lib at the end of
    63     this chapter.</para>
    64 
    65 <screen><userinput remap="pre">ln -sv /tools/lib/libncursesw.so.6 /usr/lib/libncursesw.so.6
    66 ln -sfv libncursesw.so.6 /usr/lib/libncurses.so</userinput></screen>
    67 
    68     <para>Fix an issue in <command>configure</command> due to missing
    69     files in the early stages of LFS:</para>
    70 
    71 <screen><userinput remap="pre">sed -i -e '/flex/s/as_fn_error/: ;; # &amp;/' configure</userinput></screen>
    72 -->
    73     <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>
    79 -->
    8046<screen><userinput remap="configure">PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3</userinput></screen>
    8147
    8248    <variablelist>
    8349      <title>The meaning of the configure options:</title>
    84 <!--
    85       <varlistentry>
    86         <term><parameter>- -with-readline</parameter></term>
    87         <listitem>
    88           <para>This option tells Bc to use the <filename
    89           class="libraryfile">readline</filename> library that is already
    90           installed on the system rather than using its own readline
    91           version.</para>
    92         </listitem>
    93       </varlistentry>
    94 -->
     50
    9551      <varlistentry>
    9652        <term><parameter>CC=gcc CFLAGS="-std=c99"</parameter></term>
    9753        <listitem>
    98           <para>These parameters specify the compiler and C standard to use.</para>
     54          <para>These parameters specify the compiler and the C standard to use.</para>
    9955        </listitem>
    10056      </varlistentry>
     
    11975
    12076<screen><userinput remap="make">make</userinput></screen>
    121 <!--
    122     <para>To test bc, run the commands below. There is quite a bit of output,
    123     so you may want to redirect it to a file. There are a very small percentage
    124     of tests (10 of 12,144) that will indicate a round off error at the last
    125     digit.</para>
    126 
    127 <screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
    128 -->
    12977
    13078    <para>To test bc, run:</para>
  • chapter06/bzip2.xml

    r9d719e2 refcb393  
    9191<screen><userinput remap="install">cp -v bzip2-shared /bin/bzip2
    9292cp -av libbz2.so* /lib
    93 ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
    94 rm -v /usr/bin/{bunzip2,bzcat,bzip2}
    95 ln -sv bzip2 /bin/bunzip2
    96 ln -sv bzip2 /bin/bzcat</userinput></screen>
     93rm -v /usr/bin/{bunzip2,bzcat,bzip2}</userinput></screen>
    9794
    9895  </sect2>
  • chapter06/chapter06.xml

    r9d719e2 refcb393  
    1313
    1414  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="introduction.xml"/>
    15   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kernfs.xml"/>
    1615  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pkgmgt.xml"/>
    17   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chroot.xml"/>
    18   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="creatingdirs.xml"/>
    19   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="createfiles.xml"/>
    20   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="linux-headers.xml"/>
     16<!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="linux-headers.xml"/>-->
    2117  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="man-pages.xml"/>
     18<!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="adjusting.xml"/>-->
    2219  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glibc.xml"/>
    23   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="adjusting.xml"/>
    2420  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zlib.xml"/>
    2521  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bzip2.xml"/>
  • chapter06/check.xml

    r9d719e2 refcb393  
    5757    (up to 4 SBU) time.</para>
    5858
    59     <para>Install the package and fix a script:</para>
     59    <para>Install the package:</para>
    6060
    61     <screen><userinput remap="install">make docdir=/usr/share/doc/check-&check-version; install &amp;&amp;
    62 sed -i '1 s/tools/usr/' /usr/bin/checkmk</userinput></screen>
    63 <!-- Removes a hardcoded call to /tools/bin/gawk at line 1 of checkmk. -->
     61    <screen><userinput remap="install">make docdir=/usr/share/doc/check-&check-version; install</userinput></screen>
    6462
    6563  </sect2>
  • chapter06/coreutils.xml

    r9d719e2 refcb393  
    124124<screen><userinput remap="test">chown -Rv nobody . </userinput></screen>
    125125
    126     <para>Now run the tests. Make sure the PATH in the <userinput>su</userinput>
    127     environment includes /tools/bin.</para>
     126    <para>Now run the tests:</para>
    128127
    129128<screen><userinput remap="test">su nobody -s /bin/bash \
  • chapter06/e2fsprogs.xml

    r9d719e2 refcb393  
    5353    <para>Prepare E2fsprogs for compilation:</para>
    5454
    55 <!--<screen><userinput remap="configure">LIBS=-L/tools/lib                    \
    56 CFLAGS=-I/tools/include              \
    57 CFLAGS=-I/tools/include              \
    58 PKG_CONFIG_PATH=/tools/lib/pkgconfig \
    59 ../configure - -prefix=/usr           \-->
    6055<screen><userinput remap="configure">../configure --prefix=/usr           \
    6156             --bindir=/bin           \
     
    6964    <variablelist>
    7065      <title>The meaning of the environment variable and configure options:</title>
    71 <!--
    72       <varlistentry>
    73         <term><parameter>PKG_CONFIG_PATH, LIBS, CFLAGS</parameter></term>
    74         <listitem>
    75           <para>These variables enable e2fsprogs to be built using the
    76           <xref linkend="ch-tools-util-linux"/> package built earlier.</para>
    77         </listitem>
    78       </varlistentry>
    79 -->
     66
    8067      <varlistentry>
    8168        <term><parameter>--with-root-prefix=""</parameter> and
     
    118105
    119106<screen><userinput remap="make">make</userinput></screen>
    120 <!--
    121     <para>To set up and run the test suite we need to first link some
    122     libraries from /tools/lib to a location where the test programs look.
    123     To run the tests, issue:</para>
    124 -->
    125107
    126108    <para>To run the tests, issue:</para>
    127109
    128110<screen><userinput remap="test">make check</userinput></screen>
    129 <!--ln -sfv /tools/lib/lib{blk,uu}id.so.1 lib -->
    130 <!--make LD_LIBRARY_PATH=/tools/lib check</userinput></screen>-->
    131111
    132112    <para>One of the E2fsprogs tests will attempt to allocate 256 MB of memory.
  • chapter06/flex.xml

    r9d719e2 refcb393  
    5151    Now, prepare Flex for compilation:</para>
    5252
    53 <screen><userinput remap="configure">HELP2MAN=/tools/bin/true \
     53<screen><userinput remap="configure">HELP2MAN=/bin/true \
    5454./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
    5555
  • chapter06/gcc.xml

    r9d719e2 refcb393  
    5959    <para>Prepare GCC for compilation:</para>
    6060
    61 <screen><userinput remap="configure">SED=sed                               \
    62 ../configure --prefix=/usr            \
     61<screen><userinput remap="configure">../configure --prefix=/usr            \
     62             LD=ld                    \
    6363             --enable-languages=c,c++ \
    6464             --disable-multilib       \
     
    7272
    7373    <variablelist>
    74       <title>The meaning of the new configure parameters:</title>
    75 
    76       <varlistentry>
    77         <term><envar>SED=sed</envar></term>
    78         <listitem>
    79           <para>Setting this environment variable prevents a hard-coded
    80           path to /tools/bin/sed.</para>
    81         </listitem>
    82       </varlistentry>
    83       <!--
    84       <varlistentry>
    85         <term><parameter>- -disable-libmpx</parameter></term>
    86         <listitem>
    87           <para>This switch tells GCC to not build mpx (Memory Protection
    88           Extensions) that can cause problems on some processors. It has
    89           been removed from the next version of gcc.</para>
    90         </listitem>
    91       </varlistentry>
    92       -->
     74      <title>The meaning of the new configure parameter:</title>
     75
    9376      <varlistentry>
    9477        <term><parameter>--with-system-zlib</parameter></term>
     
    171154
    172155<screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen>
    173 
     156  <!-- already done earlier
    174157    <para>Many packages use the name <command>cc</command> to call the C
    175158    compiler. To satisfy those packages, create a symlink:</para>
    176159
    177160<screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
    178 
     161  -->
    179162    <para>Add a compatibility symlink to enable building programs with
    180163    Link Time Optimization (LTO):</para>
  • chapter06/glibc.xml

    r9d719e2 refcb393  
    4444    <title>Installation of Glibc</title>
    4545
    46     <note><para>The Glibc build system is self-contained and will install
    47     perfectly, even though the compiler specs file and linker are still
    48     pointing to <filename class="directory">/tools</filename>. The specs
    49     and linker cannot be adjusted before the Glibc install because the
    50     Glibc autoconf tests would give false results and defeat the goal
    51     of achieving a clean build.</para></note>
    52 
    5346    <para>Some of the Glibc programs use the non-FHS compliant
    5447    <filename class="directory">/var/db</filename> directory to store
     
    6760<screen><userinput remap="pre">sed -i '/asm.socket.h/a# include &lt;linux/sockios.h&gt;' \
    6861   sysdeps/unix/sysv/linux/bits/socket.h</userinput></screen>
    69 -->
     62=== already done ===
    7063    <para>Create a symlink for LSB
    7164    compliance. Additionally, for x86_64, create a compatibility symlink
     
    7972    ;;
    8073esac</userinput></screen>
    81 <!--
     74
    8275    <para>Remove a file that may be left over from a previous build attempt:
    8376    </para>
     
    9386    <para>Prepare Glibc for compilation:</para>
    9487
    95 <screen><userinput remap="configure">CC="gcc -ffile-prefix-map=/tools=/usr" \
    96 ../configure --prefix=/usr                          \
    97              --disable-werror                       \
    98              --enable-kernel=&min-kernel;                    \
    99              --enable-stack-protector=strong        \
    100              --with-headers=/usr/include            \
     88<screen><userinput remap="configure">../configure --prefix=/usr                            \
     89             --disable-werror                         \
     90             --enable-kernel=&min-kernel;                      \
     91             --enable-stack-protector=strong          \
     92             --with-headers=/usr/include              \
    10193             libc_cv_slibdir=/lib</userinput></screen>
    102 
    103    <variablelist>
     94  <!-- WIP -->
     95    <variablelist>
    10496      <title>The meaning of the options and new configure parameters:</title>
    10597
    10698      <varlistentry>
    107         <term><parameter>CC="gcc -ffile-prefix-map=/tools=/usr"</parameter></term>
    108         <listitem>
    109           <para>Make GCC record any references to files in /tools in result
    110           of the compilation as if the files resided in /usr.  This avoids
    111           introduction of invalid paths in debugging symbols.</para>
     99        <term><parameter>CC="gcc -ffile-prefix-map=$LFS_DIR=$DIR"</parameter></term>
     100        <listitem>
     101          <para>Make GCC record any references to files in <filename
     102          class="directory">/usr/lib/gcc/x86_64-lfs-linux-gnu</filename>
     103          in result of the compilation as if the files resided in <filename
     104          class="directory">/usr/lib/gcc/x86_64-pc-linux-gnu</filename>.
     105          This avoids introduction of invalid paths in debugging
     106          symbols.</para>
    112107        </listitem>
    113108      </varlistentry>
     
    129124        </listitem>
    130125      </varlistentry>
    131 
     126<!-- do we need this one? -->
    132127      <varlistentry>
    133128        <term><parameter>--with-headers=/usr/include</parameter></term>
    134129        <listitem>
    135130          <para>This option tells the build system where to find the
    136           kernel API headers. By default, those headers are sought in
    137           <filename class="directory">/tools/include</filename>.</para>
     131          kernel API headers.</para>
    138132        </listitem>
    139133      </varlistentry>
  • chapter06/introduction.xml

    r9d719e2 refcb393  
    3737  at the same time.</para>
    3838
    39   <para>The order that packages are installed in this chapter needs to be
    40   strictly followed to ensure that no program accidentally acquires a path
    41   referring to <filename class="directory">/tools</filename> hard-wired into
    42   it.  For the same reason, do not compile separate packages in parallel.
    43   Compiling in parallel may save time (especially on dual-CPU machines), but it
    44   could result in a program containing a hard-wired path to <filename
    45   class="directory">/tools</filename>, which will cause the program to stop
    46   working when that directory is removed.</para>
    47 
    4839  <para>Before the installation instructions, each installation page provides
    4940  information about the package, including a concise description of what it
  • chapter06/kbd.xml

    r9d719e2 refcb393  
    6161    <para>Prepare Kbd for compilation:</para>
    6262
    63 <screen><userinput remap="configure">PKG_CONFIG_PATH=/tools/lib/pkgconfig ./configure --prefix=/usr --disable-vlock</userinput></screen>
     63<screen><userinput remap="configure">./configure --prefix=/usr --disable-vlock</userinput></screen>
    6464
    6565    <variablelist>
    6666      <title>The meaning of the configure options:</title>
    67 <!--
    68       <varlistentry>
    69         <term><parameter>- -datadir=/lib/kbd</parameter></term>
    70         <listitem>
    71           <para>This option puts keyboard layout data in a directory that will
    72           always be on the root partition instead of the default <filename
    73           class="directory">/usr/share/kbd</filename>.</para>
    74        </listitem>
    75       </varlistentry>
    76 -->
     67
    7768      <varlistentry>
    7869        <term><parameter>--disable-vlock</parameter></term>
     
    10596    </note>
    10697
    107 <!--
    108     <para>Some of the scripts in the LFS-Bootscripts package depend on
    109     <command>kbd_mode</command>, <command>loadkeys</command>,
    110     <command>openvt</command>, and
    111     <command>setfont</command>.  As <filename class="directory">/usr</filename>
    112     may not be available during the early stages of booting, those binaries
    113     need to be on the root partition:</para>
    114 
    115 <screen><userinput remap="install">mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin</userinput></screen>
    116 -->
    11798    <para>If desired, install the documentation:</para>
    11899
  • chapter06/libpipeline.xml

    r9d719e2 refcb393  
    4646<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
    4747
    48 <!--
    49 <screen><userinput remap="configure">PKG_CONFIG_PATH=/tools/lib/pkgconfig ./configure - -prefix=/usr</userinput></screen>
    50 
    51     <variablelist>
    52       <title>The meaning of the configure options:</title>
    53 
    54       <varlistentry>
    55         <term><parameter>PKG_CONFIG_PATH</parameter></term>
    56         <listitem>
    57           <para>Use pkg-config to obtain the location of the test
    58           library metadata built in <xref linkend="ch-system-check"/>.</para>
    59         </listitem>
    60       </varlistentry>
    61 
    62     </variablelist>
    63 -->
    6448    <para>Compile the package:</para>
    6549
  • chapter06/readline.xml

    r9d719e2 refcb393  
    7474    <para>Compile the package:</para>
    7575
    76 <screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib -lncursesw"</userinput></screen>
     76<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
    7777
    7878    <variablelist>
     
    8080
    8181      <varlistentry>
    82         <term><parameter>SHLIB_LIBS="-L/tools/lib -lncursesw"</parameter></term>
     82        <term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
    8383        <listitem>
    8484          <para>This option forces Readline to link against the
     
    9393    <para>Install the package:</para>
    9494
    95 <screen><userinput remap="install">make SHLIB_LIBS="-L/tools/lib -lncursesw" install</userinput></screen>
     95<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
    9696
    9797    <para>Now move the dynamic libraries to a more appropriate location
  • chapter06/revisedchroot.xml

    r9d719e2 refcb393  
    2727    /bin/bash --login</userinput></screen>
    2828
    29   <para>The reason for this is that the programs in <filename
    30   class="directory">/tools</filename> are no longer needed.  For this reason
    31   you can delete the <filename class="directory">/tools</filename>
    32   directory if so desired.</para>
    33 
    34   <note>
    35     <para>Removing <filename class="directory">/tools</filename> will also
    36     remove the temporary copies of Tcl, Expect, and DejaGNU which were used
    37     for running the toolchain tests. If you need these programs later on,
    38     they will need to be recompiled and re-installed. The BLFS book has
    39     instructions for this (see <ulink url="&blfs-root;"/>).</para>
    40   </note>
     29  <para>Here the <parameter>+h</parameter> option is not used anymore, since
     30  all the previous programs have been replaced: hashing is therefore
     31  possible.</para>
    4132
    4233  <para>If the virtual kernel file systems have been unmounted, either manually
  • chapter06/sed.xml

    r9d719e2 refcb393  
    4343    <para>First fix an issue in the LFS environment and remove a failing test:</para>
    4444
    45 <screen><userinput remap="pre">sed -i 's/usr/tools/'                 build-aux/help2man
    46 sed -i 's/testsuite.panic-tests.sh//' Makefile.in</userinput></screen>
     45<screen><userinput remap="pre">sed -i 's/testsuite.panic-tests.sh//' Makefile.in</userinput></screen>
    4746
    4847    <para>Prepare Sed for compilation:</para>
    4948
    5049<screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
    51 <!--
    52     <variablelist>
    53       <title>The meaning of the new configure option:</title>
    5450
    55       <varlistentry>
    56         <term><parameter>-i -htmldir</parameter></term>
    57         <listitem>
    58           <para>This sets the installation directory for the HTML documentation.</para>
    59         </listitem>
    60       </varlistentry>
    61     </variablelist>
    62 -->
    6351    <para>Compile the package and generate the HTML documentation:</para>
    6452
  • chapter06/shadow.xml

    r9d719e2 refcb393  
    8585
    8686<screen><userinput remap="configure">touch /usr/bin/passwd
    87 ./configure --sysconfdir=/etc --with-group-name-max-length=32</userinput></screen>
     87./configure --sysconfdir=/etc               \
     88            --with-group-name-max-length=32</userinput></screen>
    8889
    8990    <variablelist>
  • chapter06/strippingagain.xml

    r9d719e2 refcb393  
    5757unset LIB save_lib save_usrlib</userinput></screen>
    5858
    59   <para>Before performing the stripping, take special care to ensure that
     59<!--  <para>Before performing the stripping, take special care to ensure that
    6060  none of the binaries that are about to be stripped are running:</para>
    6161
    6262<screen role="nodump"><userinput>exec /tools/bin/bash</userinput></screen>
    6363 
    64   <!--
    65   If
    66   unsure whether the user entered chroot with the command given in
    67   <xref linkend="ch-system-chroot" role=","/> first use the version
    68   of bash we created in
    69   chroot:</para>
     64  <para>Now the binaries and libraries can be safely stripped:</para>
     65-->
     66  <para>Now the binaries and libraries can be stripped:</para>
     67<screen><userinput>find /usr/lib -type f -name \*.a \
     68   -exec strip --strip-debug {} ';'
    7069
    71 <screen role="nodump"><userinput>logout</userinput></screen>
     70find /lib /usr/lib -type f -name \*.so* ! -name \*dbg \
     71   -exec strip --strip-unneeded {} ';'
    7272
    73   <para>Then reenter it with:</para>
    74 
    75 <screen role="nodump"><userinput>chroot $LFS /tools/bin/env -i          \
    76     HOME=/root TERM=$TERM              \
    77     PS1='(lfs chroot) \u:\w\$ '        \
    78     PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    79     /tools/bin/bash - -login</userinput></screen>-->
    80 
    81   <para>Now the binaries and libraries can be safely stripped:</para>
    82 
    83 <screen><userinput>/tools/bin/find /usr/lib -type f -name \*.a \
    84    -exec /tools/bin/strip --strip-debug {} ';'
    85 
    86 /tools/bin/find /lib /usr/lib -type f \( -name \*.so* -a ! -name \*dbg \) \
    87    -exec /tools/bin/strip --strip-unneeded {} ';'
    88 
    89 /tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
    90     -exec /tools/bin/strip --strip-all {} ';'</userinput></screen>
     73find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
     74    -exec strip --strip-all {} ';'</userinput></screen>
    9175
    9276  <para>A large number of files will be reported as having their file
  • chapter06/systemd.xml

    r9d719e2 refcb393  
    4949    <para>Create a symlink to work around missing xsltproc:</para>
    5050
    51 <screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen>
     51<screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>
    5252
    5353    <para>Set up the man pages:</para>
     
    102102        <listitem>
    103103          <para>These switches provide location of binaries needed by
    104           systemd at runtime that have not yet been installed, or who's
    105           pkgconfig files are currently only in
    106           <filename>/tools/lib/pkgconfig</filename>.</para>
     104          systemd at runtime that have not yet been installed.</para>
    107105        </listitem>
    108106      </varlistentry>
  • chapter06/util-linux.xml

    r9d719e2 refcb393  
    5555  <sect2 role="installation">
    5656    <title>Installation of Util-linux</title>
    57 <!--
    58     <para>First, fix one of the regression tests:</para>
    59 
    60 <screen><userinput remap="pre">sed -e 's/2^64/(2^64/' -e 's/E &lt;/E) &lt;=/' -e 's/ne /eq /' \
    61     -i tests/ts/ipcs/limits2</userinput></screen>
    62 -->
    63 
    64     <para>Remove the earlier created symlinks and files:</para>
    65 
    66 <screen><userinput remap="pre">rm -vf /usr/include/{blkid,libfdisk,libmount,uuid}
    67 rm -vf /usr/lib/lib{blkid,fdisk,mount,uuid}.so*
    68 rm -vf /usr/lib/pkgconfig/{blkid,fdisk,mount,uuid}.pc</userinput></screen>
    6957
    7058    <para>Prepare Util-linux for compilation:</para>
Note: See TracChangeset for help on using the changeset viewer.