| [3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
 | 
|---|
| [aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 | 
|---|
 | 3 |   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 | 
|---|
| [3f8be484] | 4 |   <!ENTITY % general-entities SYSTEM "../../general.ent">
 | 
|---|
 | 5 |   %general-entities;
 | 
|---|
 | 6 | ]>
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | <sect1 id="ch-temp-system-bash" role="wrap">
 | 
|---|
 | 9 |   <?dbhtml filename="bash.html"?>
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 |   <title>Bash-&bash-version;</title>
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 |   <indexterm zone="ch-temp-system-bash">
 | 
|---|
 | 14 |     <primary sortas="a-Bash">Bash</primary>
 | 
|---|
 | 15 |     <secondary>temporary system</secondary>
 | 
|---|
 | 16 |   </indexterm>
 | 
|---|
 | 17 | 
 | 
|---|
| [d0c5f50] | 18 |   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
 | 
|---|
 | 19 |   href="../../final-system/common/bash.xml"
 | 
|---|
 | 20 |   xpointer="xpointer(//*[@role='package'])"/>
 | 
|---|
| [3f8be484] | 21 | 
 | 
|---|
 | 22 |   <sect2 role="installation">
 | 
|---|
 | 23 |     <title>Installation of Bash</title>
 | 
|---|
 | 24 | 
 | 
|---|
| [6f9ab64] | 25 |     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
 | 
|---|
 | 26 |     href="../../final-system/common/bash.xml"
 | 
|---|
 | 27 |     xpointer="xpointer(//*[@os='p1'])"/>
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 |     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
 | 
|---|
 | 30 |     href="../../final-system/common/bash.xml"
 | 
|---|
 | 31 |     xpointer="xpointer(//*[@os='p2'])"/>
 | 
|---|
 | 32 | 
 | 
|---|
| [ce63632] | 33 |     <para os="c1">When bash is cross-compiled, it cannot test for the presence
 | 
|---|
| [5ec7618f] | 34 |     of named pipes, amoung other things. If you used <command>su</command> to
 | 
|---|
 | 35 |     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>glibc</literal>. The following prevents
 | 
|---|
 | 38 |     future problems by skipping tests that can not run while cross-compiling
 | 
|---|
 | 39 |     or that do not run properly:</para>
 | 
|---|
| [ec626ab] | 40 | 
 | 
|---|
| [5ec7618f] | 41 | <screen os="c2"><userinput>cat > config.cache << "EOF"
 | 
|---|
 | 42 | ac_cv_func_mmap_fixed_mapped=yes
 | 
|---|
 | 43 | ac_cv_func_strcoll_works=yes
 | 
|---|
 | 44 | ac_cv_func_working_mktime=yes
 | 
|---|
 | 45 | bash_cv_func_sigsetjmp=present
 | 
|---|
 | 46 | bash_cv_getcwd_malloc=yes
 | 
|---|
 | 47 | bash_cv_job_control_missing=present
 | 
|---|
 | 48 | bash_cv_printf_a_format=yes
 | 
|---|
 | 49 | bash_cv_sys_named_pipes=present
 | 
|---|
 | 50 | bash_cv_ulimit_maxfds=yes
 | 
|---|
 | 51 | bash_cv_under_sys_siglist=yes
 | 
|---|
 | 52 | bash_cv_unusable_rtsigs=no
 | 
|---|
 | 53 | gt_cv_int_divbyzero_sigfpe=yes
 | 
|---|
 | 54 | EOF</userinput></screen>
 | 
|---|
| [ec626ab] | 55 | 
 | 
|---|
| [3f8be484] | 56 |     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
 | 
|---|
 | 57 |     href="../../final-system/common/bash.xml"
 | 
|---|
 | 58 |     xpointer="xpointer(//*[@os='g'])"/>
 | 
|---|
 | 59 | 
 | 
|---|
| [9e8f1cc] | 60 | <screen os="h"><userinput>./configure --prefix=/tools \
 | 
|---|
| [07114c98] | 61 |     --build=${CLFS_HOST} --host=${CLFS_TARGET} \
 | 
|---|
| [528da83] | 62 |     --without-bash-malloc --cache-file=config.cache</userinput></screen>
 | 
|---|
| [3f8be484] | 63 | 
 | 
|---|
| [1bc8e5f] | 64 |     <variablelist os="ad">
 | 
|---|
| [173da18] | 65 |       <title>The meaning of the configure option:</title>
 | 
|---|
| [3f8be484] | 66 | 
 | 
|---|
 | 67 |       <varlistentry>
 | 
|---|
 | 68 |         <term><parameter>--without-bash-malloc</parameter></term>
 | 
|---|
 | 69 |         <listitem>
 | 
|---|
| [4866cb6] | 70 |           <para>This option turns off the use of Bash's memory allocation
 | 
|---|
| [3f8be484] | 71 |           (malloc) function which is known to cause segmentation faults.
 | 
|---|
| [76cf100] | 72 |           By turning this option off, Bash will use the malloc functions
 | 
|---|
| [3f8be484] | 73 |           from Glibc which are more stable.</para>
 | 
|---|
 | 74 |         </listitem>
 | 
|---|
 | 75 |       </varlistentry>
 | 
|---|
 | 76 | 
 | 
|---|
 | 77 |     </variablelist>
 | 
|---|
 | 78 | 
 | 
|---|
 | 79 |     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
 | 
|---|
 | 80 |     href="../../final-system/common/bash.xml"
 | 
|---|
| [dd618bf] | 81 |     xpointer="xpointer(//*[@os='j'])"/>
 | 
|---|
| [3f8be484] | 82 | 
 | 
|---|
 | 83 |     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
 | 
|---|
 | 84 |     href="../../final-system/common/bash.xml"
 | 
|---|
| [dd618bf] | 85 |     xpointer="xpointer(//*[@os='k'])"/>
 | 
|---|
| [3f8be484] | 86 | 
 | 
|---|
 | 87 |     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
 | 
|---|
 | 88 |     href="../../final-system/common/bash.xml"
 | 
|---|
| [dd618bf] | 89 |     xpointer="xpointer(//*[@os='m'])"/>
 | 
|---|
| [3f8be484] | 90 | 
 | 
|---|
| [bc2e3fa] | 91 | <screen os="n"><userinput>make install</userinput></screen>
 | 
|---|
| [3f8be484] | 92 | 
 | 
|---|
| [1322a63] | 93 |     <para os="ae">Make a link for programs that use <command>sh</command> for
 | 
|---|
| [3f8be484] | 94 |     a shell:</para>
 | 
|---|
 | 95 | 
 | 
|---|
| [bc2e3fa] | 96 | <screen os="af"><userinput>ln -sv bash /tools/bin/sh</userinput></screen>
 | 
|---|
| [3f8be484] | 97 | 
 | 
|---|
 | 98 |   </sect2>
 | 
|---|
 | 99 | 
 | 
|---|
 | 100 |   <sect2 role="content">
 | 
|---|
 | 101 |     <title/>
 | 
|---|
 | 102 | 
 | 
|---|
 | 103 |     <para>Details on this package are located in <xref
 | 
|---|
 | 104 |     linkend="contents-bash" role="."/></para>
 | 
|---|
 | 105 | 
 | 
|---|
 | 106 |   </sect2>
 | 
|---|
 | 107 | 
 | 
|---|
 | 108 | </sect1>
 | 
|---|