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