1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-bash" role="wrap">
|
---|
9 | <?dbhtml filename="bash.html"?>
|
---|
10 |
|
---|
11 | <title>Bash-&bash-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-bash">
|
---|
14 | <primary sortas="a-Bash">Bash</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Bash package contains the Bourne-Again SHell.</para>
|
---|
21 |
|
---|
22 | </sect2>
|
---|
23 |
|
---|
24 | &env-target;
|
---|
25 |
|
---|
26 | <sect2 role="installation">
|
---|
27 | <title>Installation of Bash</title>
|
---|
28 |
|
---|
29 | <para os="p1">The following patch contains updates from the maintainer. The
|
---|
30 | maintainer of Bash only releases these patches to fix serious issues:</para>
|
---|
31 |
|
---|
32 | <screen os="p2"><userinput>patch -Np1 -i ../&bash-branch_update-patch;</userinput></screen>
|
---|
33 |
|
---|
34 | <para os="c">When bash is cross-compiled, it cannot test for the presence
|
---|
35 | of named pipes, amoung other things. If you used <command>su</command> to
|
---|
36 | become an unprivileged user, this combination will cause Bash to build
|
---|
37 | without <emphasis>process substitution</emphasis>, which will break one
|
---|
38 | of the c++ test scripts in <literal>eglibc</literal>. The following prevents
|
---|
39 | future problems by skipping tests that can not run while cross-compiling
|
---|
40 | or that do not run properly:</para>
|
---|
41 |
|
---|
42 | <screen os="d"><userinput>cat > config.cache << "EOF"
|
---|
43 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
44 | ac_cv_func_strcoll_works=yes
|
---|
45 | ac_cv_func_working_mktime=yes
|
---|
46 | bash_cv_func_sigsetjmp=present
|
---|
47 | bash_cv_getcwd_malloc=yes
|
---|
48 | bash_cv_job_control_missing=present
|
---|
49 | bash_cv_printf_a_format=yes
|
---|
50 | bash_cv_sys_named_pipes=present
|
---|
51 | bash_cv_ulimit_maxfds=yes
|
---|
52 | bash_cv_under_sys_siglist=yes
|
---|
53 | bash_cv_unusable_rtsigs=no
|
---|
54 | gt_cv_int_divbyzero_sigfpe=yes
|
---|
55 | EOF</userinput></screen>
|
---|
56 |
|
---|
57 | <para os="e">Prepare Bash for compilation:</para>
|
---|
58 |
|
---|
59 | <screen os="f"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
60 | --prefix=/usr --bindir=/bin --cache-file=config.cache \
|
---|
61 | --without-bash-malloc --with-installed-readline</userinput></screen>
|
---|
62 |
|
---|
63 | <variablelist os="g">
|
---|
64 | <title>The meaning of the configure option:</title>
|
---|
65 |
|
---|
66 | <varlistentry>
|
---|
67 | <term><parameter>--with-installed-readline</parameter></term>
|
---|
68 | <listitem>
|
---|
69 | <para>This option tells Bash to use the
|
---|
70 | <filename class="libraryfile">readline</filename> library that is
|
---|
71 | already installed on the system rather than using its own readline
|
---|
72 | version.</para>
|
---|
73 | </listitem>
|
---|
74 | </varlistentry>
|
---|
75 | </variablelist>
|
---|
76 |
|
---|
77 | <para os="h">Compile the package:</para>
|
---|
78 |
|
---|
79 | <screen os="i"><userinput>make</userinput></screen>
|
---|
80 |
|
---|
81 | <para os="j">Install the package:</para>
|
---|
82 |
|
---|
83 | <screen os="k"><userinput>make DESTDIR=${CLFS} htmldir=/usr/share/doc/bash-&bash-version; install</userinput></screen>
|
---|
84 |
|
---|
85 | <para os="l">Create /bin/sh:</para>
|
---|
86 |
|
---|
87 | <screen os="m"><userinput>ln -sfv bash ${CLFS}/bin/sh</userinput></screen>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 id="contents-bash" role="content">
|
---|
92 | <title>Contents of Bash</title>
|
---|
93 |
|
---|
94 | <segmentedlist>
|
---|
95 | <segtitle>Installed programs</segtitle>
|
---|
96 |
|
---|
97 | <seglistitem>
|
---|
98 | <seg>bash, bashbug, and sh (link to bash)</seg>
|
---|
99 | </seglistitem>
|
---|
100 | </segmentedlist>
|
---|
101 |
|
---|
102 | <variablelist>
|
---|
103 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
104 | <?dbfo list-presentation="list"?>
|
---|
105 | <?dbhtml list-presentation="table"?>
|
---|
106 |
|
---|
107 | <varlistentry id="bash">
|
---|
108 | <term><command>bash</command></term>
|
---|
109 | <listitem>
|
---|
110 | <para>A widely-used command interpreter; it performs many types of
|
---|
111 | expansions and substitutions on a given command line before executing
|
---|
112 | it, thus making this interpreter a powerful tool</para>
|
---|
113 | <indexterm zone="ch-system-bash bash">
|
---|
114 | <primary sortas="b-bash">bash</primary>
|
---|
115 | </indexterm>
|
---|
116 | </listitem>
|
---|
117 | </varlistentry>
|
---|
118 |
|
---|
119 | <varlistentry id="bashbug">
|
---|
120 | <term><command>bashbug</command></term>
|
---|
121 | <listitem>
|
---|
122 | <para>A shell script to help the user compose and mail standard
|
---|
123 | formatted bug reports concerning <command>bash</command></para>
|
---|
124 | <indexterm zone="ch-system-bash bashbug">
|
---|
125 | <primary sortas="b-bashbug">bashbug</primary>
|
---|
126 | </indexterm>
|
---|
127 | </listitem>
|
---|
128 | </varlistentry>
|
---|
129 |
|
---|
130 | <varlistentry id="sh">
|
---|
131 | <term><command>sh</command></term>
|
---|
132 | <listitem>
|
---|
133 | <para>A symlink to the <command>bash</command> program; when invoked
|
---|
134 | as <command>sh</command>, <command>bash</command> tries to mimic the
|
---|
135 | startup behavior of historical versions of <command>sh</command> as
|
---|
136 | closely as possible, while conforming to the POSIX standard as
|
---|
137 | well</para>
|
---|
138 | <indexterm zone="ch-system-bash sh">
|
---|
139 | <primary sortas="b-sh">sh</primary>
|
---|
140 | </indexterm>
|
---|
141 | </listitem>
|
---|
142 | </varlistentry>
|
---|
143 |
|
---|
144 | </variablelist>
|
---|
145 |
|
---|
146 | </sect2>
|
---|
147 |
|
---|
148 | </sect1>
|
---|