r5349 - in branches/cross-lfs/BOOK/temp-system: . multilib

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Fri May 13 12:08:47 PDT 2005


Author: jhuntwork
Date: 2005-05-13 13:08:47 -0600 (Fri, 13 May 2005)
New Revision: 5349

Added:
   branches/cross-lfs/BOOK/temp-system/multilib/bash.xml
Modified:
   branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml
Log:
Added bash instructions to multilib in temp-system

Copied: branches/cross-lfs/BOOK/temp-system/multilib/bash.xml (from rev 5331, branches/cross-lfs/BOOK/temp-system/common/bash.xml)
===================================================================
--- branches/cross-lfs/BOOK/temp-system/common/bash.xml	2005-05-13 16:52:55 UTC (rev 5331)
+++ branches/cross-lfs/BOOK/temp-system/multilib/bash.xml	2005-05-13 19:08:47 UTC (rev 5349)
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
+  %general-entities;
+  %patches-entities;
+]>
+
+<sect1 id="ch-temp-system-bash" role="wrap">
+<title>Bash-&bash-version;</title>
+<?dbhtml filename="bash.html"?>
+
+<indexterm zone="ch-temp-system-bash">
+<primary sortas="a-Bash">Bash</primary>
+<secondary>temporary system</secondary></indexterm>
+
+<sect2 role="package"><title/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/bash.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>1.2 SBU</seg><seg>27 MB</seg></seglistitem>
+</segmentedlist>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/bash.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
+
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of Bash</title>
+
+<para>Fix a minor issue during the build when cross-compling:</para>
+
+<screen><userinput>sed -i "s at size \$(Program)@${LFS_TARGET}-&@g"  Makefile.in</userinput></screen>
+
+<para>Bash has a problem when compiled against newer versions of Glibc, causing
+it to hang inappropriately.  This patch fixes the problem:</para>
+
+<screen><userinput>patch -Np1 -i ../&bash-avoid_WCONTINUED-patch;</userinput></screen>
+
+<para>Prepare Bash for compilation:</para>
+
+<screen><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}"
+   ./configure --prefix=/tools --with-curses \
+   --without-bash-malloc --host=${LFS_TARGET}</userinput></screen>
+
+<para>The meaning of the configure option:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>--without-bash-malloc</parameter></term>
+<listitem><para>This options turns off the use of Bash's memory
+allocation (malloc) function which is known to cause segmentation
+faults. By turning this option off, Bash will use the malloc functions
+from Glibc which are more stable.</para></listitem>
+</varlistentry>
+</variablelist>
+
+<para>Compile the package:</para>
+
+<screen><userinput>make LDFLAGS="-s"</userinput></screen>
+
+<para>Install the package:</para>
+
+<screen><userinput>make install</userinput></screen>
+
+<para>Make a link for the programs that use <command>sh</command> for
+a shell:</para>
+
+<screen><userinput>ln -s bash /tools/bin/sh</userinput></screen>
+
+</sect2>
+
+<sect2 role="content"><title/>
+<para>Details on this package are located in <xref linkend="contents-bash" role="."/></para>
+</sect2>
+
+</sect1>
+

Modified: branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml	2005-05-13 18:50:11 UTC (rev 5348)
+++ branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml	2005-05-13 19:08:47 UTC (rev 5349)
@@ -33,7 +33,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/ncurses-64bit.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/patch.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/tar.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bash.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="bash/bash.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/choose.xml"/>
 
 </chapter>




More information about the lfs-book mailing list