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-temp-system-bash" role="wrap">
|
---|
9 | <?dbhtml filename="bash.html"?>
|
---|
10 |
|
---|
11 | <title>Bash-&bash-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-temp-system-bash">
|
---|
14 | <primary sortas="a-Bash">Bash</primary>
|
---|
15 | <secondary>temporary system</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
19 | href="../../final-system/common/bash.xml"
|
---|
20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
21 |
|
---|
22 | <sect2 role="installation">
|
---|
23 | <title>Installation of Bash</title>
|
---|
24 |
|
---|
25 | <!-- Bash branch update area
|
---|
26 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
27 | href="../../final-system/common/bash.xml"
|
---|
28 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
29 |
|
---|
30 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
31 | href="../../final-system/common/bash.xml"
|
---|
32 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
33 | -->
|
---|
34 |
|
---|
35 | <para os="t1">When Bash is cross-compiled, it cannot test for the presence
|
---|
36 | of named pipes, among other things. If you used <command>su</command> to
|
---|
37 | become an unprivileged user, this combination will cause Bash to build
|
---|
38 | without <emphasis>process substitution</emphasis>, which will break one
|
---|
39 | of the C++ test scripts in <literal>glibc</literal>. The following prevents
|
---|
40 | future problems by skipping the check for named pipes, as well as other
|
---|
41 | tests that can not run while cross-compiling or that do not run properly:</para>
|
---|
42 |
|
---|
43 | <screen os="t2"><userinput>cat > config.cache << "EOF"
|
---|
44 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
45 | ac_cv_func_strcoll_works=yes
|
---|
46 | ac_cv_func_working_mktime=yes
|
---|
47 | bash_cv_func_sigsetjmp=present
|
---|
48 | bash_cv_getcwd_malloc=yes
|
---|
49 | bash_cv_job_control_missing=present
|
---|
50 | bash_cv_printf_a_format=yes
|
---|
51 | bash_cv_sys_named_pipes=present
|
---|
52 | bash_cv_ulimit_maxfds=yes
|
---|
53 | bash_cv_under_sys_siglist=yes
|
---|
54 | bash_cv_unusable_rtsigs=no
|
---|
55 | gt_cv_int_divbyzero_sigfpe=yes
|
---|
56 | EOF</userinput></screen>
|
---|
57 |
|
---|
58 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
59 | href="../../final-system/common/bash.xml"
|
---|
60 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
61 |
|
---|
62 | <screen os="b"><userinput>./configure --prefix=/tools \
|
---|
63 | --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
64 | --without-bash-malloc --cache-file=config.cache</userinput></screen>
|
---|
65 |
|
---|
66 | <variablelist os="c">
|
---|
67 | <title>The meaning of the configure option:</title>
|
---|
68 |
|
---|
69 | <varlistentry>
|
---|
70 | <term><parameter>--without-bash-malloc</parameter></term>
|
---|
71 | <listitem>
|
---|
72 | <para>This option turns off the use of Bash's memory allocation
|
---|
73 | (malloc) function which is known to cause segmentation faults.
|
---|
74 | By turning this option off, Bash will use the malloc functions
|
---|
75 | from Glibc which are more stable.</para>
|
---|
76 | </listitem>
|
---|
77 | </varlistentry>
|
---|
78 |
|
---|
79 | </variablelist>
|
---|
80 |
|
---|
81 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
82 | href="../../final-system/common/bash.xml"
|
---|
83 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
84 |
|
---|
85 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
86 | href="../../final-system/common/bash.xml"
|
---|
87 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
88 |
|
---|
89 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
90 | href="../../final-system/common/bash.xml"
|
---|
91 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
92 |
|
---|
93 | <screen os="h"><userinput>make install</userinput></screen>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <sect2 role="content">
|
---|
98 | <title/>
|
---|
99 |
|
---|
100 | <para>Details on this package are located in <xref
|
---|
101 | linkend="contents-bash" role="."/></para>
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | </sect1>
|
---|