Changeset 268f64e for BOOK/temp-system/common
- Timestamp:
- Apr 24, 2011, 2:17:16 PM (14 years ago)
- Children:
- f8e1743
- Parents:
- 3f2c36d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/temp-system/common/bash.xml
r3f2c36d r268f64e 1 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" [ 2 <!DOCTYPE c:package [ 4 3 <!ENTITY % general-entities SYSTEM "../../general.ent"> 5 4 %general-entities; 6 5 ]> 7 6 8 <sect1 id="ch-temp-system-bash" role="wrap"> 9 <?dbhtml filename="bash.html"?> 7 <c:package xmlns:c="http://schema.cross-lfs.org/book" 8 xmlns:xi="http://www.w3.org/2001/XInclude" 9 id="ch-temp-system-bash" c:multibuild="false"> 10 10 11 <title>Bash-&bash-version;</title> 11 <c:title>Bash</c:title> 12 <c:version>&bash-version;</c:version> 13 <c:variant>temporary system</c:variant> 12 14 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 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 href="../../final-system/common/bash.xml" 27 xpointer="xpointer(//*[@os='p1'])"/> 15 <xi:include href="../../final-system/common/bash.xml" 16 xpointer="xmlns(co=http://schema.cross-lfs.org/book) 17 xpointer(/co:package/co:description[1])" /> 28 18 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../../final-system/common/bash.xml" 31 xpointer="xpointer(//*[@os='p2'])"/> 32 --> 33 <para os="t1">When Bash is cross-compiled, it cannot test for the presence 34 of named pipes, among other things. If you used <command>su</command> to 19 <c:install> 20 21 <xi:include href="../../final-system/common/bash.xml" 22 xpointer="xmlns(co=http://schema.cross-lfs.org/book) 23 xpointer(/co:package/co:install/*[@co:r='p-bu'])" /> 24 25 <c:para>When Bash is cross-compiled, it cannot test for the presence 26 of named pipes, among other things. If you used <c:command>su</c:command> to 35 27 become an unprivileged user, this combination will cause Bash to build 36 without < emphasis>process substitution</emphasis>, which will break one37 of the C++ test scripts in < literal>eglibc</literal>. The following prevents28 without <c:emphasis>process substitution</c:emphasis>, which will break one 29 of the C++ test scripts in <c:literal>eglibc</c:literal>. The following prevents 38 30 future problems by skipping the check for named pipes, as well as other 39 tests that can not run while cross-compiling or that do not run properly:</ para>31 tests that can not run while cross-compiling or that do not run properly:</c:para> 40 32 41 < screen os="t2"><userinput>cat > config.cache << "EOF"33 <c:command>cat > config.cache << "EOF" 42 34 ac_cv_func_mmap_fixed_mapped=yes 43 35 ac_cv_func_strcoll_works=yes … … 52 44 bash_cv_unusable_rtsigs=no 53 45 gt_cv_int_divbyzero_sigfpe=yes 54 EOF</userinput></screen> 46 EOF</c:command> 47 48 <c:para>Prepare Bash for compilation:</c:para> 49 50 <c:command c:arch="alpha,mips,ppc,sparc,x86">./configure -prefix=/tools \ 51 -build=${CLFS_HOST} -host=${CLFS_TARGET} \ 52 -without-bash-malloc -cache-file=config.cache</c:command> 53 <c:command c:arch="mips64-64,mips64,ppc64,sparc64-64,sparc64,x86_64-64,x86_64">CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ 54 ./configure --prefix=/tools \ 55 --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 56 --without-bash-malloc --cache-file=config.cache</c:command> 57 55 58 <!-- 56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"57 href="../../final-system/common/bash.xml"58 xpointer="xpointer(//*[@os='a'])"/>59 -->60 <screen os="b"><userinput>./configure --prefix=/tools \61 --build=${CLFS_HOST} --host=${CLFS_TARGET} \62 --without-bash-malloc --cache-file=config.cache</userinput></screen>63 64 59 <variablelist os="c"> 65 60 <title>The meaning of the configure option:</title> 66 61 67 62 <varlistentry> 68 <term><parameter>- -without-bash-malloc</parameter></term>63 <term><parameter>-without-bash-malloc</parameter></term> 69 64 <listitem> 70 65 <para>This option turns off the use of Bash's memory allocation … … 76 71 77 72 </variablelist> 78 <!-- 79 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 80 href="../../final-system/common/bash.xml" 81 xpointer="xpointer(//*[@os='d'])"/> 73 --> 82 74 83 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 84 href="../../final-system/common/bash.xml" 85 xpointer="xpointer(//*[@os='e'])"/> 75 <c:para>Compile the package:</c:para> 86 76 87 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 88 href="../../final-system/common/bash.xml" 89 xpointer="xpointer(//*[@os='g'])"/> 90 --> 91 <screen os="h"><userinput>make install</userinput></screen> 77 <c:command>make</c:command> 92 78 93 <para os="t3">Make a link for programs that use <command>sh</command> for 94 a shell:</para> 79 <c:para>Install the package:</c:para> 95 80 96 < screen os="t4"><userinput>ln -sv bash /tools/bin/sh</userinput></screen>81 <c:command>make install</c:command> 97 82 98 </sect2> 99 <!-- 100 <sect2 role="content"> 101 <title/> 83 <c:para>Make a link for programs that use <c:command>sh</c:command> for 84 a shell:</c:para> 102 85 103 <para>Details on this package are located in <xref 104 linkend="ch-system-bash-contents" role="."/></para> 86 <c:command>ln -sv bash /tools/bin/sh</c:command> 105 87 106 </sect2> 107 --> 108 </sect1> 88 </c:install> 89 90 <c:contents c:ref="ch-system-bash" /> 91 92 </c:package> 93
Note:
See TracChangeset
for help on using the changeset viewer.