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

Prepare for CLFS-2.0.0 release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.