Changeset 8cd07b0 for BOOK/final-system/common
- Timestamp:
- Apr 24, 2011, 10:20:04 AM (14 years ago)
- Children:
- e655c39d
- Parents:
- d66ee74
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/bash.xml
rd66ee74 r8cd07b0 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-system-bash" role="wrap"> 9 <?dbhtml filename="bash.html"?> 7 <c:package xmlns:c="http://schema.cross-lfs.org/book" id="ch-system-bash" c:multibuild="false"> 10 8 11 <title>Bash-&bash-version;</title> 9 <c:title>Bash</c:title> 10 <c:version>&bash-version;</c:version> 11 <c:description>The Bash package contains the Bourne-Again SHell.</c:description> 12 12 13 <indexterm zone="ch-system-bash"> 14 <primary sortas="a-Bash">Bash</primary> 15 </indexterm> 13 <c:install> 16 14 17 <sect2 role="package">18 <title/>15 <c:para>The following patch contains updates from the maintainer. The 16 maintainer of Bash only releases these patches to fix serious issues:</c:para> 19 17 20 <para>The Bash package contains the Bourne-Again SHell.</para>18 <c:command>patch -Np1 -i ../&bash-branch_update-patch;</c:command> 21 19 22 </sect2> 20 <c:para c:multilib="true">The following sed points configure towards the 21 correct library directory while searching for Readline:</c:para> 23 22 24 <sect2 role="installation"> 25 <title>Installation of Bash</title> 23 <c:command c:multilib="true">sed -i "/ac_cv_rl_libdir/s@/lib@&64@" configure</c:command> 26 24 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> 25 <c:para>Prepare Bash for compilation:</c:para> 29 26 30 <screen os="p2"><userinput>patch -Np1 -i ../&bash-branch_update-patch;</userinput></screen> 27 <c:command c:multilib="false">./configure --prefix=/usr --bindir=/bin \ 28 --without-bash-malloc --with-installed-readline</c:command> 29 <c:command c:multilib="true">CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \ 30 ./configure --prefix=/usr --bindir=/bin \ 31 --without-bash-malloc --with-installed-readline</c:command> 31 32 32 <para os="a">Prepare Bash for compilation:</para> 33 34 <screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin \ 35 --without-bash-malloc --with-installed-readline</userinput></screen> 36 37 <variablelist os="c"> 33 <!-- 34 <variablelist> 38 35 <title>The meaning of the configure option:</title> 39 36 40 37 <varlistentry> 41 <term><parameter>- -with-installed-readline</parameter></term>38 <term><parameter>-with-installed-readline</parameter></term> 42 39 <listitem> 43 < para>This option tells Bash to use the40 <c:para>This option tells Bash to use the 44 41 <filename class="libraryfile">readline</filename> library that is 45 42 already installed on the system rather than using its own readline 46 version.</ para>43 version.</c:para> 47 44 </listitem> 48 45 </varlistentry> 49 46 </variablelist> 47 --> 48 <c:para>Compile the package:</c:para> 50 49 51 <para os="d">Compile the package:</para>50 <c:command>make</c:command> 52 51 53 <screen os="e"><userinput>make</userinput></screen> 52 <c:para>To test the results, issue: 53 <c:command>make tests</c:command>.</c:para> 54 54 55 <para os="f">To test the results, issue: 56 <userinput>make tests</userinput>.</para> 55 <c:para>Install the package:</c:para> 57 56 58 <para os="g">Install the package:</para>57 <c:command>make htmldir=/usr/share/doc/bash-&bash-version; install</c:command> 59 58 60 <screen os="h"><userinput>make htmldir=/usr/share/doc/bash-&bash-version; install</userinput></screen> 59 <c:para>Run the newly compiled <c:command>bash</c:command> program (replacing 60 the one that is currently being executed):</c:para> 61 61 62 <para os="i">Run the newly compiled <command>bash</command> program (replacing 63 the one that is currently being executed):</para> 62 <c:command c:nodump="true">exec /bin/bash --login +h</c:command> 64 63 65 <screen os="j" role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen> 64 <c:note> 65 <c:para>The parameters used make the <c:command>bash</c:command> 66 process an interactive login shell and continue to disable hashing so 67 that new programs are found as they become available.</c:para> 68 </c:note> 66 69 67 <note os="k"> 68 <para>The parameters used make the <command>bash</command> 69 process an interactive login shell and continue to disable hashing so 70 that new programs are found as they become available.</para> 71 </note> 70 </c:install> 72 71 73 < /sect2>72 <c:contents> 74 73 75 <sect2 id="contents-bash" role="content"> 76 <title>Contents of Bash</title> 74 <c:program> 75 <c:name>bash</c:name> 76 <c:description>A widely-used command interpreter; it performs many types 77 of expansions and substitutions on a given command line before executing 78 it, thus making this interpreter a powerful tool</c:description> 79 </c:program> 77 80 78 <segmentedlist> 79 <segtitle>Installed programs</segtitle> 80 <segtitle>Installed directory</segtitle> 81 <c:program> 82 <c:name>bashbug</c:name> 83 <c:description>A shell script to help the user compose and mail standard 84 formatted bug reports concerning <c:command>bash</c:command> 85 </c:description> 86 </c:program> 81 87 82 <seglistitem> 83 <seg>bash, bashbug, and sh (link to bash)</seg> 84 <seg>/usr/share/doc/bash-&bash-version;</seg> 85 </seglistitem> 86 </segmentedlist> 88 <c:program> 89 <c:name>sh</c:name> 90 <c:description>A symlink to the <c:command>bash</c:command> program; when 91 invoked as <c:command>sh</c:command>, <c:command>bash</c:command> tries 92 to mimic the startup behavior of historical versions of 93 <c:command>sh</c:command> as closely as possible, while conforming to the 94 POSIX standard as well</c:description> 95 </c:program> 87 96 88 <variablelist> 89 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 90 <?dbfo list-presentation="list"?> 91 <?dbhtml list-presentation="table"?> 97 </c:contents> 92 98 93 <varlistentry id="bash"> 94 <term><command>bash</command></term> 95 <listitem> 96 <para>A widely-used command interpreter; it performs many types of 97 expansions and substitutions on a given command line before executing 98 it, thus making this interpreter a powerful tool</para> 99 <indexterm zone="ch-system-bash bash"> 100 <primary sortas="b-bash">bash</primary> 101 </indexterm> 102 </listitem> 103 </varlistentry> 99 </c:package> 104 100 105 <varlistentry id="bashbug">106 <term><command>bashbug</command></term>107 <listitem>108 <para>A shell script to help the user compose and mail standard109 formatted bug reports concerning <command>bash</command></para>110 <indexterm zone="ch-system-bash bashbug">111 <primary sortas="b-bashbug">bashbug</primary>112 </indexterm>113 </listitem>114 </varlistentry>115 116 <varlistentry id="sh">117 <term><command>sh</command></term>118 <listitem>119 <para>A symlink to the <command>bash</command> program; when invoked120 as <command>sh</command>, <command>bash</command> tries to mimic the121 startup behavior of historical versions of <command>sh</command> as122 closely as possible, while conforming to the POSIX standard as123 well</para>124 <indexterm zone="ch-system-bash sh">125 <primary sortas="b-sh">sh</primary>126 </indexterm>127 </listitem>128 </varlistentry>129 130 </variablelist>131 132 </sect2>133 134 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.