| 1 | <?xml version="1.0" encoding="ISO-8859-1"?> | 
|---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" | 
|---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ | 
|---|
| 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 |  | 
|---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2003/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 | <para os="aa">Fix a minor issue during the build when cross-compiling:</para> | 
|---|
| 26 |  | 
|---|
| 27 | <screen os="ab"><userinput>cp -v Makefile.in Makefile.in.orig | 
|---|
| 28 | sed -e "s@size \$(Program)@${LFS_TARGET}-&@g"  Makefile.in.orig > Makefile.in</userinput></screen> | 
|---|
| 29 |  | 
|---|
| 30 | <para os="c1">Remove a test that causes the build to fail::</para> | 
|---|
| 31 |  | 
|---|
| 32 | <screen os="c2"><userinput>echo "ac_cv_func_setvbuf_reversed=no" >> config.cache</userinput></screen> | 
|---|
| 33 |  | 
|---|
| 34 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
| 35 | href="../../final-system/common/bash.xml" | 
|---|
| 36 | xpointer="xpointer(//*[@os='g'])"/> | 
|---|
| 37 |  | 
|---|
| 38 | <screen os="h"><userinput>./configure --prefix=/tools \ | 
|---|
| 39 | --without-bash-malloc --host=${LFS_TARGET} \ | 
|---|
| 40 | --cache-file=config.cache</userinput></screen> | 
|---|
| 41 |  | 
|---|
| 42 | <variablelist os="ad"> | 
|---|
| 43 | <title>The meaning of the configure options:</title> | 
|---|
| 44 |  | 
|---|
| 45 | <varlistentry> | 
|---|
| 46 | <term><parameter>--without-bash-malloc</parameter></term> | 
|---|
| 47 | <listitem> | 
|---|
| 48 | <para>This option turns off the use of Bash's memory allocation | 
|---|
| 49 | (malloc) function which is known to cause segmentation faults. | 
|---|
| 50 | By turning this option off, Bash will use the malloc functions | 
|---|
| 51 | from Glibc which are more stable.</para> | 
|---|
| 52 | </listitem> | 
|---|
| 53 | </varlistentry> | 
|---|
| 54 |  | 
|---|
| 55 | </variablelist> | 
|---|
| 56 |  | 
|---|
| 57 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
| 58 | href="../../final-system/common/bash.xml" | 
|---|
| 59 | xpointer="xpointer(//*[@os='j'])"/> | 
|---|
| 60 |  | 
|---|
| 61 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
| 62 | href="../../final-system/common/bash.xml" | 
|---|
| 63 | xpointer="xpointer(//*[@os='k'])"/> | 
|---|
| 64 |  | 
|---|
| 65 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
| 66 | href="../../final-system/common/bash.xml" | 
|---|
| 67 | xpointer="xpointer(//*[@os='m'])"/> | 
|---|
| 68 |  | 
|---|
| 69 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
| 70 | href="../../final-system/common/bash.xml" | 
|---|
| 71 | xpointer="xpointer(//*[@os='n'])"/> | 
|---|
| 72 |  | 
|---|
| 73 | <para os="ae">Make a link for programs that use <command>sh</command> for | 
|---|
| 74 | a shell:</para> | 
|---|
| 75 |  | 
|---|
| 76 | <screen os="af"><userinput>ln -sv bash /tools/bin/sh</userinput></screen> | 
|---|
| 77 |  | 
|---|
| 78 | </sect2> | 
|---|
| 79 |  | 
|---|
| 80 | <sect2 role="content"> | 
|---|
| 81 | <title/> | 
|---|
| 82 |  | 
|---|
| 83 | <para>Details on this package are located in <xref | 
|---|
| 84 | linkend="contents-bash" role="."/></para> | 
|---|
| 85 |  | 
|---|
| 86 | </sect2> | 
|---|
| 87 |  | 
|---|
| 88 | </sect1> | 
|---|