2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect1 id="ch-tools-bash" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Bash-&bash-version;</title>
|
|
|
|
<?dbhtml filename="bash.html"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-tools-bash">
|
|
|
|
<primary sortas="a-Bash">Bash</primary>
|
|
|
|
<secondary>tools</secondary></indexterm>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="package"><title/>
|
2005-02-19 22:16:42 +00:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/bash.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2005-06-14 23:56:57 +01:00
|
|
|
<seglistitem><seg>1.2 SBU</seg><seg>20.7 MB</seg></seglistitem>
|
2004-05-16 01:06:08 +01:00
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/bash.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
|
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Bash</title>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<!-- Edit Me -->
|
|
|
|
<para>Bash has a problem when compiled against newer versions of Glibc, causing
|
|
|
|
it to hang inappropriately. This patch fixes the problem:</para>
|
2004-12-22 12:06:22 +00:00
|
|
|
|
2004-10-15 04:08:36 +01:00
|
|
|
<screen><userinput>patch -Np1 -i ../bash-&bash-version;-avoid_WCONTINUED-1.patch</userinput></screen>
|
|
|
|
|
2004-07-30 22:04:25 +01:00
|
|
|
<para>Prepare Bash for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-03 22:28:58 +01:00
|
|
|
<screen><userinput>./configure --prefix=/tools --without-bash-malloc</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-06-20 20:24:56 +01:00
|
|
|
<para>The meaning of the configure options:</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>--without-bash-malloc</parameter></term>
|
|
|
|
<listitem><para>This options turns off the use of Bash's memory
|
|
|
|
allocation (malloc) function which is known to cause segmentation
|
|
|
|
faults. By turning this option off, Bash will use the malloc functions
|
|
|
|
from Glibc which are more stable.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>To test the results, issue: <userinput>make
|
|
|
|
tests</userinput>.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Make a link for the programs that use <command>sh</command> for
|
|
|
|
a shell:</para>
|
2004-12-22 12:06:22 +00:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<screen><userinput>ln -s bash /tools/bin/sh</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect2 role="content"><title/>
|
|
|
|
<para>Details on this package are located in <xref linkend="contents-bash" role="."/></para>
|
|
|
|
</sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect1>
|
2005-02-19 22:16:42 +00:00
|
|
|
|