Ticket #2948: lfs7-consistency.patch

File lfs7-consistency.patch, 4.7 KB (added by Marcel van den Boer, 13 years ago)

Fixes the described issues

  • chapter05/gcc-pass1.xml

    diff -rupN BOOK//chapter05/gcc-pass1.xml BOOK_new//chapter05/gcc-pass1.xml
    old new cd ../gcc-build</userinput></screen>  
    7878    --disable-libgomp --disable-libquadmath \
    7979    --disable-target-libiberty --disable-target-zlib \
    8080    --enable-languages=c --without-ppl --without-cloog \
    81     --with-mpfr-include=$LFS/sources/gcc-&gcc-version;/mpfr/src \
    82     --with-mpfr-lib=$LFS/sources/gcc-build/mpfr/src/.libs</userinput></screen>
     81    --with-mpfr-include=${PWD}/../gcc-&gcc-version;/mpfr/src \
     82    --with-mpfr-lib=${PWD}/mpfr/src/.libs</userinput></screen>
    8383
    8484    <variablelist>
    8585      <title>The meaning of the configure options:</title>
  • chapter05/gcc-pass2.xml

    diff -rupN BOOK//chapter05/gcc-pass2.xml BOOK_new//chapter05/gcc-pass2.xml
    old new cd ../gcc-build</userinput></screen>  
    158158    --disable-libstdcxx-pch --disable-multilib \
    159159    --disable-bootstrap --disable-libgomp \
    160160    --without-ppl --without-cloog \
    161     --with-mpfr-include=$LFS/sources/gcc-&gcc-version;/mpfr/src \
    162     --with-mpfr-lib=$LFS/sources/gcc-build/mpfr/src/.libs</userinput></screen>
     161    --with-mpfr-include=${PWD}/../gcc-&gcc-version;/mpfr/src \
     162    --with-mpfr-lib=${PWD}/mpfr/src/.libs</userinput></screen>
    163163
    164164    <variablelist>
    165165      <title>The meaning of the new configure options:</title>
  • chapter06/gmp.xml

    diff -rupN BOOK//chapter06/gmp.xml BOOK_new//chapter06/gmp.xml
    old new  
    5252
    5353    <para>First, fix a minor error noted on the upstream web page:</para>
    5454
    55 <screen><userinput remap="pre"> sed -i 's/np + dn, qn/&amp; - dn/' mpn/generic/dcpi1_bdiv_q.c</userinput></screen>
     55<screen><userinput remap="pre">sed -i 's/np + dn, qn/&amp; - dn/' mpn/generic/dcpi1_bdiv_q.c</userinput></screen>
    5656
    5757
    5858    <para>Prepare GMP for compilation:</para>
  • chapter06/grep.xml

    diff -rupN BOOK//chapter06/grep.xml BOOK_new//chapter06/grep.xml
    old new  
    4242
    4343    <para>First, fix a small problem with a test script:</para>
    4444
    45 <screen><userinput>sed -i 's/cp/#&amp;/' tests/unibyte-bracket-expr</userinput></screen>
     45<screen><userinput remap="pre">sed -i 's/cp/#&amp;/' tests/unibyte-bracket-expr</userinput></screen>
    4646
    4747    <para>Prepare Grep for compilation:</para>
    4848
  • chapter06/iproute2.xml

    diff -rupN BOOK//chapter06/iproute2.xml BOOK_new//chapter06/iproute2.xml
    old new  
    4949    <ulink url="&blfs-root;view/svn/server/databases.html#db"/>.
    5050    </para>
    5151
    52 <screen><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
     52<screen><userinput remap="pre">sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
    5353
    5454    <para>Compile the package:</para>
    5555
  • prologue/hostreqs.xml

    diff -rupN BOOK//prologue/hostreqs.xml BOOK_new//prologue/hostreqs.xml
    old new export LC_ALL=C  
    154154# Simple script to list version numbers of critical development tools
    155155
    156156bash --version | head -n1 | cut -d" " -f2-4
    157 echo "/bin/sh -> `readlink -f /bin/sh`"
     157echo "/bin/sh -&gt; `readlink -f /bin/sh`"
    158158echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
    159159bison --version | head -n1
    160160if [ -e /usr/bin/yacc ];
    161   then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
     161  then echo "/usr/bin/yacc -&gt; `readlink -f /usr/bin/yacc`";
    162162  else echo "yacc not found"; fi
    163163bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d" " -f1,6-
    164164echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
    diff --version | head -n1  
    166166find --version | head -n1
    167167gawk --version | head -n1
    168168if [ -e /usr/bin/awk ];
    169   then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
     169  then echo "/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`";
    170170  else echo "awk not found"; fi
    171171gcc --version | head -n1
    172172/lib/libc.so.6 | head -n1 | cut -d"," -f1
    sed --version | head -n1  
    181181tar --version | head -n1
    182182echo "Texinfo: `makeinfo --version | head -n1`"
    183183xz --version | head -n1
    184 echo 'main(){}' > dummy.c &amp;&amp; gcc -o dummy dummy.c
     184echo 'main(){}' &gt; dummy.c &amp;&amp; gcc -o dummy dummy.c
    185185if [ -x dummy ]; then echo "Compilation OK";
    186186  else echo "Compilation failed"; fi
    187187rm -f dummy.c dummy