Ignore:
Timestamp:
Sep 24, 2013, 11:53:17 AM (11 years ago)
Author:
William Harrington <kb0iic@…>
Children:
2e9ccbe
Parents:
111b12a
Message:

Prepare for CLFS-2.0.0 release.

Location:
BOOK/temp-system/common
Files:
12 edited
1 moved

Legend:

Unmodified
Added
Removed
  • BOOK/temp-system/common/binutils.xml

    r111b12a r76b06f6  
    3232    xpointer="xpointer(//*[@os='p2'])"/>
    3333-->
    34 
    35     <para os="s1">Apply the following sed for hosts using Texinfo-5.x:</para>
    36 
    37 <screen os="s2"><userinput>sed -i -e 's/@colophon/@@colophon/' \
    38        -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo</userinput></screen>
    3934
    4035    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  • BOOK/temp-system/common/bison.xml

    r111b12a r76b06f6  
    2323    <title>Installation of Bison</title>
    2424
    25     <para os='s1'>Apply a <command>sed</command> which disables the building of <filename>bison.help</filename> when cross-compiling.</para>
    26 
    27 <screen os='s2'><userinput>cp -v Makefile.in{,.orig}
    28 sed '/bison.help:/s/^/# /' Makefile.in.orig > Makefile.in</userinput></screen>
    29     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    30     href="../../final-system/common/bison.xml"
    31     xpointer="xpointer(//*[@os='t3'])"/>
    32 
    33     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    34     href="../../final-system/common/bison.xml"
    35     xpointer="xpointer(//*[@os='t4'])"/>
    36 
    3725    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    3826    href="../../final-system/common/bison.xml"
    3927    xpointer="xpointer(//*[@os='a'])"/>
    4028
    41 <screen os="ca"><userinput>M4=m4 ./configure --prefix=/tools \
    42     --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    43     --cache-file=config.cache</userinput></screen>
     29<screen os="ca"><userinput>./configure --prefix=/tools \
     30    --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
    4431
    4532    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  • BOOK/temp-system/common/cloog.xml

    r111b12a r76b06f6  
    2323    <title>Installation of CLooG</title>
    2424
     25    <para os="s1">The following prevents the configure script from setting <envar>LD_LIBRARY_PATH</envar> when it finds PPL. This will prevent any conflicts with libraries from the host system:</para>
     26
     27<screen os="s2"><userinput>cp -v configure{,.orig}
     28sed -e "/LD_LIBRARY_PATH=/d" \
     29    configure.orig &gt; configure</userinput></screen>
     30
    2531    <para os="a">Prepare CLooG for compilation:</para>
    2632
    2733<screen os="b"><userinput>./configure --prefix=/tools \
    2834    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    29     --with-gmp-prefix=/tools --with-isl-prefix=/tools</userinput></screen>
     35    --with-gmp-prefix=/tools</userinput></screen>
    3036
    3137    <para os="c">Compile the package:</para>
  • BOOK/temp-system/common/coreutils.xml

    r111b12a r76b06f6  
    2222  <sect2 role="installation">
    2323    <title>Installation of Coreutils</title>
     24
     25    <para os="aa">The following command updates the timestamps on the uname
     26    and hostname man pages so that the Makefile does not attempt to regenerate
     27    them:</para>
     28
     29<screen os="ab"><userinput>touch man/uname.1 man/hostname.1</userinput></screen>
    2430
    2531    <para os="ba">Configure can not properly determine how to get free space
     
    5258    </variablelist>
    5359
    54     <para os="s1">Apply a sed to allow completion of the build:</para>
     60<!--- Hack for coreutils to build for target executables which can't be ran with the host. -->
     61    <para os="h1">Coreutils does not build make-prime-list properly and the build host may not be able to execute the target binary. Build it using the host compiler so it can be ran for the generation of data required for the build.</para>
    5562
    56 <screen os="s2"><userinput>cp -v Makefile{,.orig}
    57 sed -e 's/^#run_help2man\|^run_help2man/#&amp;/' \
    58   -e 's/^\##run_help2man/run_help2man/' Makefile.orig > Makefile</userinput></screen>
     63<screen os="h2"><userinput>cp -v Makefile{,.orig}
     64sed '/src_make_prime_list/d' Makefile.orig > Makefile
     65depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&amp;|;s|\.o$||'`;\
     66    gcc -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src  \
     67    -fdiagnostics-show-option -funit-at-a-time -g -O2 -MT \
     68    src/make-prime-list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o \
     69    src/make-prime-list.c &amp;&amp;
     70mv -f $depbase.Tpo $depbase.Po
     71gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 \
     72    -Wl,--as-needed  -o src/make-prime-list src/make-prime-list.o</userinput></screen>
     73
     74    <para os="h3">Remove the building of the hostname man page as it is affected by the previous commands.</para>
     75
     76<screen os="h4"><userinput>cp -v Makefile{,.bak}
     77sed -e '/hostname.1/d' Makefile.bak > Makefile</userinput></screen>
     78<!-- End hack -->
    5979
    6080   <para os="bf">Compile the package:</para>
  • BOOK/temp-system/common/flex.xml

    r111b12a r76b06f6  
    3636    xpointer="xpointer(//*[@os='a'])"/>
    3737
    38 <screen os="cb"><userinput>M4=m4 ./configure --prefix=/tools \
     38<screen os="cb"><userinput>./configure --prefix=/tools \
    3939    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    4040    --cache-file=config.cache</userinput></screen>
  • BOOK/temp-system/common/gawk.xml

    r111b12a r76b06f6  
    2222  <sect2 role="installation">
    2323    <title>Installation of Gawk</title>
    24 
    25     <para os="s1">Apply a sed which will allow the build system to complete without error:</para>
    26 
    27 <screen os="s2"><userinput>cp -v extension/Makefile.in{,.orig}
    28 sed -e 's/check-recursive all-recursive: check-for-shared-lib-support/check-recursive all-recursive:/' \
    29   extension/Makefile.in.orig > extension/Makefile.in</userinput></screen>
    3024
    3125    <para os="a">Prepare Gawk for compilation:</para>
  • BOOK/temp-system/common/gcc.xml

    r111b12a r76b06f6  
    2424
    2525    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    26     href="../../final-system/common/gcc.xml"
     26    href="../../cross-tools/common/gcc-static.xml"
    2727    xpointer="xpointer(//*[@os='p1'])"/>
    2828
    2929    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    30     href="../../final-system/common/gcc.xml"
     30    href="../../cross-tools/common/gcc-static.xml"
    3131    xpointer="xpointer(//*[@os='p2'])"/>
    3232
     
    4747    xpointer="xpointer(//*[@os='ah'])"/>
    4848
    49     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    50     href="../../final-system/common/gcc.xml"
    51     xpointer="xpointer(//*[@os='fix1'])"/>
     49    <para os="cf">Also, we need to set the directory searched by the fixincludes
     50    process for system headers, so it won't look at the host's headers:</para>
    5251
    53     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    54     href="../../final-system/common/gcc.xml"
    55     xpointer="xpointer(//*[@os='fix2'])"/>
     52<screen os="cg"><userinput>cp -v gcc/Makefile.in{,.orig}
     53sed -e 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g' \
     54    gcc/Makefile.in.orig &gt; gcc/Makefile.in</userinput></screen>
    5655
    5756    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    7271<screen os="ck"><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
    7372  --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
    74   --libexecdir=/tools/lib --with-local-prefix=/tools --enable-long-long \
    75   --enable-c99 --enable-shared --enable-threads=posix --disable-multilib \
    76   --disable-nls --enable-__cxa_atexit --enable-languages=c,c++ \
    77   --disable-libstdcxx-pch --enable-cloog-backend=isl --with-gmp=/tools \
    78   --with-mpfr=/tools --with-mpc=/tools --with-isl=/tools \
    79   --disable-isl-version-check --with-cloog=/tools --with-system-zlib \
    80   --with-native-system-header-dir=/tools/include --disable-libssp \
    81   --disable-install-libiberty --enable-checking=release \
    82   --enable-libstdcxx-time</userinput></screen>
     73  --with-local-prefix=/tools --enable-long-long --enable-c99 \
     74  --enable-shared --enable-threads=posix --enable-__cxa_atexit \
     75  --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch \
     76  --disable-multilib --enable-cloog-backend=isl</userinput></screen>
    8377
    8478    <variablelist os="cl">
     
    9690    </variablelist>
    9791
    98     <para os="s1">The following will prevent GCC from looking in the wrong
     92    <para os="ts1">The following will prevent GCC from looking in the wrong
    9993    directories for headers and libraries:</para>
    10094
    101 <screen os="s2"><userinput>cp -v Makefile{,.orig}
    102 sed "/^HOST_\(GMP\|ISL\|CLOOG\)\(LIBS\|INC\)/s:/tools:/cross-tools:g" \
    103     Makefile.orig > Makefile</userinput></screen>
     95<screen os="ts2"><userinput>cp -v Makefile{,.orig}
     96sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \
     97    Makefile.orig &gt; Makefile</userinput></screen>
    10498
    10599    <para os="cm">Compile the package:</para>
  • BOOK/temp-system/common/gmp.xml

    r111b12a r76b06f6  
    3535    <para os="a">Prepare GMP for compilation:</para>
    3636
    37 <screen os="b"><userinput>HOST_CC=gcc ./configure --prefix=/tools \
     37<screen os="b"><userinput>HOST_CC=gcc CPPFLAGS=-fexceptions ./configure --prefix=/tools \
    3838    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    3939    --enable-cxx</userinput></screen>
  • BOOK/temp-system/common/mpfr.xml

    r111b12a r76b06f6  
    2727<screen os="b"><userinput>./configure --prefix=/tools \
    2828    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    29     --enable-shared</userinput></screen>
     29    --enable-shared --with-gmp=/tools</userinput></screen>
    3030
    3131    <para os="c">Compile the package:</para>
  • BOOK/temp-system/common/patch.xml

    r111b12a r76b06f6  
    2323    <title>Installation of Patch</title>
    2424
     25    <para os="cc1">When cross-compiling configure cannot properly detect the
     26    existance of certain features. Override this behaviour:</para>
     27
     28<screen os="cc2"><userinput>echo "ac_cv_func_strnlen_working=yes" > config.cache</userinput></screen>
     29
    2530    <para os="a">Prepare Patch for compilation:</para>
    2631
    2732<screen os="b"><userinput>./configure --prefix=/tools \
    28     --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
     33    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
     34    --cache-file=config.cache</userinput></screen>
    2935
    3036    <para os="c">Compile the package:</para>
  • BOOK/temp-system/common/ppl.xml

    r111b12a r76b06f6  
    66]>
    77
    8 <sect1 id="ch-temp-system-isl" role="wrap">
    9   <?dbhtml filename="isl.html"?>
     8<sect1 id="ch-temp-system-ppl" role="wrap">
     9  <?dbhtml filename="ppl.html"?>
    1010
    11   <title>ISL-&isl-version;</title>
     11  <title>PPL-&ppl-version;</title>
    1212
    13   <indexterm zone="ch-temp-system-isl">
    14     <primary sortas="a-ISL">ISL</primary>
     13  <indexterm zone="ch-temp-system-ppl">
     14    <primary sortas="a-PPL">PPL</primary>
    1515    <secondary>temporary system</secondary>
    1616  </indexterm>
    1717
    1818  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    19   href="../../final-system/common/isl.xml"
     19  href="../../final-system/common/ppl.xml"
    2020  xpointer="xpointer(//*[@role='package'])"/>
    2121
    2222  <sect2 role="installation">
    23     <title>Installation of ISL</title>
     23    <title>Installation of PPL</title>
    2424
    25     <para os="a">Prepare ISL for compilation:</para>
     25    <para os="a">Prepare PPL for compilation:</para>
    2626
    2727<screen os="b"><userinput>./configure --prefix=/tools \
    2828    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    29     --with-gmp-prefix=/tools</userinput></screen>
     29    --enable-interfaces="c,cxx" --enable-shared --disable-optimization \
     30    --with-gmp-include=/tools/include --with-gmp-lib=/tools/lib</userinput></screen>
    3031
    3132    <para os="c">Compile the package:</para>
     
    4344
    4445    <para>Details on this package are located in <xref
    45     linkend="contents-isl" role="."/></para>
     46    linkend="contents-ppl" role="."/></para>
    4647
    4748  </sect2>
  • BOOK/temp-system/common/tar.xml

    r111b12a r76b06f6  
    2222  <sect2 role="installation">
    2323    <title>Installation of Tar</title>
    24 
    25     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    26     href="../../final-system/common/tar.xml"
    27     xpointer="xpointer(//*[@os='s1'])"/>
    28 
    29     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    30     href="../../final-system/common/tar.xml"
    31     xpointer="xpointer(//*[@os='s2'])"/>
    3224
    3325    <para os="c1">Configure can not properly determine the results of a few
  • BOOK/temp-system/common/vim.xml

    r111b12a r76b06f6  
    2323    <title>Installation of VIM</title>
    2424
    25 <!-- vim branch update patch area
    2625    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    2726    href="../../final-system/common/vim.xml"
     
    3130    href="../../final-system/common/vim.xml"
    3231    xpointer="xpointer(//*[@os='p2'])"/>
    33 -->
     32
     33    <para os="s1">The configure script has a single hard coded test that
     34    cannot be bypassed with a cache entry. Disable this test with the
     35    following command:</para>
     36
     37<screen os="s2"><userinput>cp -v src/auto/configure{,.orig}
     38sed "/using uint32_t/s/as_fn_error/#&amp;/" src/auto/configure.orig > src/auto/configure</userinput></screen>
    3439
    3540    <para os="c1">The <command>configure</command> script is full of logic
     
    4348vim_cv_stat_ignores_slash=no
    4449vim_cv_terminfo=yes
     50vim_cv_tgent=zero
    4551vim_cv_toupper_broken=no
    4652vim_cv_tty_group=world
     53ac_cv_sizeof_int=4
     54ac_cv_sizeof_long=4
     55ac_cv_sizeof_time_t=4
     56ac_cv_sizeof_off_t=4
    4757EOF</userinput></screen>
    4858
Note: See TracChangeset for help on using the changeset viewer.