[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[673b0d8] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[673b0d8] | 7 | ]>
|
---|
[9652249] | 8 | <sect1 id="ch-tools-bash" role="wrap">
|
---|
[673b0d8] | 9 | <title>Bash-&bash-version;</title>
|
---|
| 10 | <?dbhtml filename="bash.html"?>
|
---|
[6370fa6] | 11 |
|
---|
[81fd230] | 12 | <indexterm zone="ch-tools-bash">
|
---|
| 13 | <primary sortas="a-Bash">Bash</primary>
|
---|
| 14 | <secondary>tools</secondary></indexterm>
|
---|
[3554fa3a] | 15 |
|
---|
[9652249] | 16 | <sect2 role="package"><title/>
|
---|
[81fd230] | 17 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/bash.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
[673b0d8] | 18 |
|
---|
[9652249] | 19 | <segmentedlist>
|
---|
| 20 | <segtitle>&buildtime;</segtitle>
|
---|
| 21 | <segtitle>&diskspace;</segtitle>
|
---|
[fad7667] | 22 | <seglistitem><seg>1.2 SBU</seg><seg>20.7 MB</seg></seglistitem>
|
---|
[9652249] | 23 | </segmentedlist>
|
---|
[673b0d8] | 24 |
|
---|
[81fd230] | 25 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/bash.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
|
---|
| 26 |
|
---|
[9652249] | 27 | </sect2>
|
---|
[73aedd1d] | 28 |
|
---|
[9652249] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Bash</title>
|
---|
| 31 |
|
---|
[81fd230] | 32 | <!-- Edit Me -->
|
---|
| 33 | <para>Bash has a problem when compiled against newer versions of Glibc, causing
|
---|
| 34 | it to hang inappropriately. This patch fixes the problem:</para>
|
---|
[3d36131c] | 35 |
|
---|
[3e36a78] | 36 | <screen><userinput>patch -Np1 -i ../&bash-avoid_WCONTINUED-patch;</userinput></screen>
|
---|
[cd0f519] | 37 |
|
---|
[e8d07afc] | 38 | <para>Prepare Bash for compilation:</para>
|
---|
[73aedd1d] | 39 |
|
---|
[9dfc02f] | 40 | <screen><userinput>./configure --prefix=/tools --without-bash-malloc</userinput></screen>
|
---|
[73aedd1d] | 41 |
|
---|
[fc298480] | 42 | <para>The meaning of the configure options:</para>
|
---|
[81fd230] | 43 |
|
---|
| 44 | <variablelist>
|
---|
| 45 | <varlistentry>
|
---|
| 46 | <term><parameter>--without-bash-malloc</parameter></term>
|
---|
| 47 | <listitem><para>This options turns off the use of Bash's memory
|
---|
| 48 | allocation (malloc) function which is known to cause segmentation
|
---|
| 49 | faults. By turning this option off, Bash will use the malloc functions
|
---|
| 50 | from Glibc which are more stable.</para></listitem>
|
---|
| 51 | </varlistentry>
|
---|
| 52 | </variablelist>
|
---|
| 53 |
|
---|
| 54 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 55 |
|
---|
| 56 | <screen><userinput>make</userinput></screen>
|
---|
| 57 |
|
---|
[81fd230] | 58 | <para>To test the results, issue: <userinput>make
|
---|
| 59 | tests</userinput>.</para>
|
---|
[73aedd1d] | 60 |
|
---|
[81fd230] | 61 | <para>Install the package:</para>
|
---|
[73aedd1d] | 62 |
|
---|
| 63 | <screen><userinput>make install</userinput></screen>
|
---|
| 64 |
|
---|
[81fd230] | 65 | <para>Make a link for the programs that use <command>sh</command> for
|
---|
| 66 | a shell:</para>
|
---|
[3d36131c] | 67 |
|
---|
[73aedd1d] | 68 | <screen><userinput>ln -s bash /tools/bin/sh</userinput></screen>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
[6370fa6] | 71 |
|
---|
[81fd230] | 72 | <sect2 role="content"><title/>
|
---|
| 73 | <para>Details on this package are located in <xref linkend="contents-bash" role="."/></para>
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
[6370fa6] | 76 | </sect1>
|
---|
[81fd230] | 77 |
|
---|