Changeset 268f64e


Ignore:
Timestamp:
Apr 24, 2011, 9:17:16 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
f8e1743
Parents:
3f2c36d
Message:

Convert Bash in the temp-system.

Location:
BOOK
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/bash.xml

    r3f2c36d r268f64e  
    55]>
    66
    7 <c:package xmlns:c="http://schema.cross-lfs.org/book" id="ch-system-bash" c:multibuild="false">
     7<c:package xmlns:c="http://schema.cross-lfs.org/book"
     8           id="ch-system-bash" c:multibuild="false">
    89
    910  <c:title>Bash</c:title>
     
    1314  <c:install>
    1415
    15     <c:para>The following patch contains updates from the maintainer. The
     16    <c:para c:r="p-bu">The following patch contains updates from the maintainer. The
    1617    maintainer of Bash only releases these patches to fix serious issues:</c:para>
    1718
    18 <c:command>patch -Np1 -i ../&bash-branch_update-patch;</c:command>
     19<c:command c:r="p-bu">patch -Np1 -i ../&bash-branch_update-patch;</c:command>
    1920
    2021    <c:para c:multilib="true">The following sed points configure towards the
  • BOOK/temp-system/common/bash.xml

    r3f2c36d r268f64e  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    3   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     2<!DOCTYPE c:package [
    43  <!ENTITY % general-entities SYSTEM "../../general.ent">
    54  %general-entities;
    65]>
    76
    8 <sect1 id="ch-temp-system-bash" role="wrap">
    9   <?dbhtml filename="bash.html"?>
     7<c:package xmlns:c="http://schema.cross-lfs.org/book"
     8           xmlns:xi="http://www.w3.org/2001/XInclude"
     9           id="ch-temp-system-bash" c:multibuild="false">
    1010
    11   <title>Bash-&bash-version;</title>
     11  <c:title>Bash</c:title>
     12  <c:version>&bash-version;</c:version>
     13  <c:variant>temporary system</c:variant>
    1214
    13   <indexterm zone="ch-temp-system-bash">
    14     <primary sortas="a-Bash">Bash</primary>
    15     <secondary>temporary system</secondary>
    16   </indexterm>
    17 <!--
    18   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    19   href="../../final-system/common/bash.xml"
    20   xpointer="xpointer(//*[@role='package'])"/>
    21 -->
    22   <sect2 role="installation">
    23     <title>Installation of Bash</title>
    24 <!--
    25     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    26     href="../../final-system/common/bash.xml"
    27     xpointer="xpointer(//*[@os='p1'])"/>
     15  <xi:include href="../../final-system/common/bash.xml"
     16    xpointer="xmlns(co=http://schema.cross-lfs.org/book)
     17              xpointer(/co:package/co:description[1])" />
    2818
    29     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    30     href="../../final-system/common/bash.xml"
    31     xpointer="xpointer(//*[@os='p2'])"/>
    32 -->
    33     <para os="t1">When Bash is cross-compiled, it cannot test for the presence
    34     of named pipes, among other things. If you used <command>su</command> to
     19  <c:install>
     20
     21    <xi:include href="../../final-system/common/bash.xml"
     22      xpointer="xmlns(co=http://schema.cross-lfs.org/book)
     23                xpointer(/co:package/co:install/*[@co:r='p-bu'])" />
     24
     25    <c:para>When Bash is cross-compiled, it cannot test for the presence
     26    of named pipes, among other things. If you used <c:command>su</c:command> to
    3527    become an unprivileged user, this combination will cause Bash to build
    36     without <emphasis>process substitution</emphasis>, which will break one
    37     of the C++ test scripts in <literal>eglibc</literal>. The following prevents
     28    without <c:emphasis>process substitution</c:emphasis>, which will break one
     29    of the C++ test scripts in <c:literal>eglibc</c:literal>. The following prevents
    3830    future problems by skipping the check for named pipes, as well as other
    39     tests that can not run while cross-compiling or that do not run properly:</para>
     31    tests that can not run while cross-compiling or that do not run properly:</c:para>
    4032
    41 <screen os="t2"><userinput>cat &gt; config.cache &lt;&lt; "EOF"
     33<c:command>cat &gt; config.cache &lt;&lt; "EOF"
    4234ac_cv_func_mmap_fixed_mapped=yes
    4335ac_cv_func_strcoll_works=yes
     
    5244bash_cv_unusable_rtsigs=no
    5345gt_cv_int_divbyzero_sigfpe=yes
    54 EOF</userinput></screen>
     46EOF</c:command>
     47
     48    <c:para>Prepare Bash for compilation:</c:para>
     49
     50<c:command c:arch="alpha,mips,ppc,sparc,x86">./configure -prefix=/tools \
     51    -build=${CLFS_HOST} -host=${CLFS_TARGET} \
     52    -without-bash-malloc -cache-file=config.cache</c:command>
     53<c:command c:arch="mips64-64,mips64,ppc64,sparc64-64,sparc64,x86_64-64,x86_64">CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
     54   ./configure --prefix=/tools \
     55   --build=${CLFS_HOST} --host=${CLFS_TARGET} \
     56   --without-bash-malloc --cache-file=config.cache</c:command>
     57
    5558<!--
    56     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    57     href="../../final-system/common/bash.xml"
    58     xpointer="xpointer(//*[@os='a'])"/>
    59 -->
    60 <screen os="b"><userinput>./configure --prefix=/tools \
    61     --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    62     --without-bash-malloc --cache-file=config.cache</userinput></screen>
    63 
    6459    <variablelist os="c">
    6560      <title>The meaning of the configure option:</title>
    6661
    6762      <varlistentry>
    68         <term><parameter>--without-bash-malloc</parameter></term>
     63        <term><parameter>-without-bash-malloc</parameter></term>
    6964        <listitem>
    7065          <para>This option turns off the use of Bash's memory allocation
     
    7671
    7772    </variablelist>
    78 <!--
    79     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    80     href="../../final-system/common/bash.xml"
    81     xpointer="xpointer(//*[@os='d'])"/>
     73-->
    8274
    83     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    84     href="../../final-system/common/bash.xml"
    85     xpointer="xpointer(//*[@os='e'])"/>
     75    <c:para>Compile the package:</c:para>
    8676
    87     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    88     href="../../final-system/common/bash.xml"
    89     xpointer="xpointer(//*[@os='g'])"/>
    90 -->
    91 <screen os="h"><userinput>make install</userinput></screen>
     77<c:command>make</c:command>
    9278
    93     <para os="t3">Make a link for programs that use <command>sh</command> for
    94     a shell:</para>
     79    <c:para>Install the package:</c:para>
    9580
    96 <screen os="t4"><userinput>ln -sv bash /tools/bin/sh</userinput></screen>
     81<c:command>make install</c:command>
    9782
    98   </sect2>
    99 <!--
    100   <sect2 role="content">
    101     <title/>
     83    <c:para>Make a link for programs that use <c:command>sh</c:command> for
     84    a shell:</c:para>
    10285
    103     <para>Details on this package are located in <xref
    104     linkend="ch-system-bash-contents" role="."/></para>
     86<c:command>ln -sv bash /tools/bin/sh</c:command>
    10587
    106   </sect2>
    107 -->
    108 </sect1>
     88  </c:install>
     89
     90  <c:contents c:ref="ch-system-bash" />
     91
     92</c:package>
     93
  • BOOK/temp-system/mips64-64-chapter.xml

    r3f2c36d r268f64e  
    2323  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/gcc.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/ncurses.xml"/>
    25   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bash.xml"/>
     25  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/bash.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bison.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/bzip2.xml"/>
  • BOOK/temp-system/mips64-chapter.xml

    r3f2c36d r268f64e  
    2323  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mips64/gcc.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/ncurses.xml"/>
    25   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bash.xml"/>
     25  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/bash.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bison.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bzip2.xml"/>
  • BOOK/temp-system/ppc64-chapter.xml

    r3f2c36d r268f64e  
    2222  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ppc64/gcc.xml"/>
    2323  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/ncurses.xml"/>
    24   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bash.xml"/>
     24  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/bash.xml"/>
    2525  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bison.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bzip2.xml"/>
  • BOOK/temp-system/sparc64-64-chapter.xml

    r3f2c36d r268f64e  
    2323  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/gcc.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/ncurses.xml"/>
    25   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bash.xml"/>
     25  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/bash.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bison.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/bzip2.xml"/>
  • BOOK/temp-system/sparc64-chapter.xml

    r3f2c36d r268f64e  
    2323  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/gcc.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/ncurses.xml"/>
    25   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bash.xml"/>
     25  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/bash.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bison.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bzip2.xml"/>
  • BOOK/temp-system/x86_64-64-chapter.xml

    r3f2c36d r268f64e  
    2323  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/gcc.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/ncurses.xml"/>
    25   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bash.xml"/>
     25  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/bash.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bison.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="64/bzip2.xml"/>
  • BOOK/temp-system/x86_64-chapter.xml

    r3f2c36d r268f64e  
    2323  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/gcc.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/ncurses.xml"/>
    25   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bash.xml"/>
     25  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="common/bash.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bison.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/bzip2.xml"/>
Note: See TracChangeset for help on using the changeset viewer.