2024-01-18 19:53:23 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-01 20:41:29 +00:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<sect1 id="ch-tools-bash" role="wrap">
|
2006-02-01 20:41:29 +00:00
|
|
|
<?dbhtml filename="bash.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>bash</productname>
|
|
|
|
<productnumber>&bash-version;</productnumber>
|
|
|
|
<address>&bash-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
<title>Bash-&bash-version;</title>
|
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<indexterm zone="ch-tools-bash">
|
2006-02-01 20:41:29 +00:00
|
|
|
<primary sortas="a-Bash">Bash</primary>
|
2020-06-07 21:16:00 +01:00
|
|
|
<secondary>tools</secondary>
|
2006-02-01 20:41:29 +00:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../chapter08/bash.xml"
|
|
|
|
xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
<seglistitem>
|
2020-06-11 13:55:28 +01:00
|
|
|
<seg>&bash-tmp-sbu;</seg>
|
|
|
|
<seg>&bash-tmp-du;</seg>
|
2006-02-01 20:41:29 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Bash</title>
|
2019-12-01 18:01:37 +00:00
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
<para>Prepare Bash for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2022-10-09 06:30:58 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--build=$(sh support/config.guess) \
|
|
|
|
--host=$LFS_TGT \
|
2024-11-08 13:04:37 +00:00
|
|
|
--without-bash-malloc</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
<variablelist>
|
2020-06-07 21:16:00 +01:00
|
|
|
<title>The meaning of the configure options:</title>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
<varlistentry>
|
2020-06-07 21:16:00 +01:00
|
|
|
<term><parameter>--without-bash-malloc</parameter></term>
|
2006-02-01 20:41:29 +00:00
|
|
|
<listitem>
|
2020-06-07 21:16:00 +01:00
|
|
|
<para>This option turns off the use of Bash's memory allocation
|
|
|
|
(<function>malloc</function>) function which is known to cause
|
|
|
|
segmentation faults. By turning this option off, Bash will use
|
|
|
|
the <function>malloc</function> functions from Glibc which are
|
|
|
|
more stable.</para>
|
2006-02-01 20:41:29 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-01 20:41:29 +00:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<para>Install the package:</para>
|
2007-06-10 10:07:00 +01:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
|
2007-06-10 10:07:00 +01:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<para>Make a link for the programs that use <command>sh</command> for
|
|
|
|
a shell:</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<screen><userinput remap="install">ln -sv bash $LFS/bin/sh</userinput></screen>
|
2006-02-01 20:41:29 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<sect2 role="content">
|
|
|
|
<title/>
|
2006-02-01 20:41:29 +00:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<para>Details on this package are located in
|
|
|
|
<xref linkend="contents-bash" role="."/></para>
|
2006-02-01 20:41:29 +00:00
|
|
|
|
|
|
|
</sect2>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect1>
|