Ver Fonte

Add bc to Chapter 6 to support Linux-3.9

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10258 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs há 12 anos atrás
pai
commit
1fb7bae856

+ 37 - 1
appendices/dependencies.xml

@@ -145,6 +145,42 @@
         </seglistitem>
       </segmentedlist>
 
+<!-- Begin Bc dependency info -->
+  <bridgehead renderas="sect2" id="bc-dep">Bc</bridgehead>
+
+      <segmentedlist>
+        <segtitle>&dependencies;</segtitle>
+
+        <seglistitem>
+          <seg>Bash, Binutils, Bison, Coreutils, GCC, Glibc,
+          Grep, Make, and Readline</seg>
+        </seglistitem>
+      </segmentedlist>
+
+      <segmentedlist>
+        <segtitle>&testsuites;</segtitle>
+
+        <seglistitem>
+          <seg>Gawk</seg>
+        </seglistitem>
+      </segmentedlist>
+
+      <segmentedlist>
+        <segtitle>&before;</segtitle>
+
+        <seglistitem>
+          <seg>Linux Kernel</seg>
+        </seglistitem>
+      </segmentedlist>
+
+      <segmentedlist>
+        <segtitle>&external;</segtitle>
+
+        <seglistitem>
+          <seg>None</seg>
+        </seglistitem>
+      </segmentedlist>
+
 <!-- Begin Binutils dependency info -->
   <bridgehead renderas="sect2" id="binutils-dep">Binutils</bridgehead>
 
@@ -1196,7 +1232,7 @@
         <segtitle>&dependencies;</segtitle>
 
         <seglistitem>
-         <seg>Bash, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep,
+         <seg>Bash, Bc, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep,
          Gzip, Kmod, Make, Ncurses, Perl, and Sed</seg>
         </seglistitem>
       </segmentedlist>

+ 10 - 0
chapter01/changelog.xml

@@ -36,6 +36,16 @@
     </listitem>
 -->
 
+    <listitem>
+      <para>2013-04-29</para>
+      <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Add bc to Chapter 6 to support Linux-3.9. Fixes
+          <ulink url="&lfs-ticket-root;3338">#3338</ulink>.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
       <para>2013-04-28</para>
       <itemizedlist>

+ 4 - 0
chapter01/whatsnew.xml

@@ -229,6 +229,10 @@
     <title>Added:</title>
     <listitem><para></para></listitem>  <!-- satisfy build -->
 
+    <listitem>
+      <para>bc &bc-version;</para>
+    </listitem>
+
     <listitem>
       <para>&bash-fixes-patch;</para>
     </listitem>

+ 9 - 0
chapter03/packages.xml

@@ -41,6 +41,15 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry>
+      <term>Bc (&bc-version;) - <token>&bc-size;</token>:</term>
+      <listitem>
+        <para>Home page: <ulink url="&bc-home;"/></para>
+        <para>Download: <ulink url="&bc-url;"/></para>
+        <para>MD5 sum: <literal>&bc-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
     <varlistentry>
       <term>Binutils (&binutils-version;) - <token>&binutils-size;</token>:</term>
       <listitem>

+ 3 - 3
chapter05/stripping.xml

@@ -30,9 +30,9 @@ strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
 
 <screen><userinput>rm -rf /tools/{,share}/{info,man,doc}</userinput></screen>
 
-  <para>At this point, you should have at least 850 MB of free space in
-  <envar>$LFS</envar> that can be used to build and install Glibc in the
-  next phase. If you can build and install Glibc, you can build and install
+  <para>At this point, you should have at least 3 GB of free space in
+  <envar>$LFS</envar> that can be used to build and install Glibc and Gcc in
+  the next phase. If you can build and install Glibc, you can build and install
   the rest too.</para>
 
 </sect1>

+ 120 - 0
chapter06/bc.xml

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-system-bc" role="wrap">
+  <?dbhtml filename="bc.html"?>
+
+  <sect1info condition="script">
+    <productname>bc</productname>
+    <productnumber>&bc-version;</productnumber>
+    <address>&bc-url;</address>
+  </sect1info>
+
+  <title>Bc-&bc-version;</title>
+
+  <indexterm zone="ch-system-bc">
+    <primary sortas="a-Bc">Bc</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title/>
+
+    <para>The Bc package contains an arbitrary precision numeric processing 
+    language.</para>
+
+    <segmentedlist>
+      <segtitle>&buildtime;</segtitle>
+      <segtitle>&diskspace;</segtitle>
+
+      <seglistitem>
+        <seg>&bc-ch6-sbu;</seg>
+        <seg>&bc-ch6-du;</seg>
+      </seglistitem>
+    </segmentedlist>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of Bc</title>
+
+    <para>Prepare Bc for compilation:</para>
+
+<screen><userinput remap="configure">./configure --prefix=/usr --with-readline</userinput></screen>
+
+    <variablelist>
+      <title>The meaning of the configure options:</title>
+
+      <varlistentry>
+        <term><parameter>--with-readline</parameter></term>
+        <listitem>
+          <para>This option tells Bc to use the <filename
+          class="libraryfile">readline</filename> library that is already
+          installed on the system rather than using its own readline
+          version.</para>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+    <para>To test bc, run the commands below. There is quite a bit of output,
+    so you may want to redirect it to a file. There are a very small percentage
+    of tests (10 of 12,144) that will indicate a roundoff error at the last
+    digit.</para>
+
+<screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
+
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">make install</userinput></screen>
+
+  </sect2>
+
+  <sect2 id="contents-bc" role="content">
+    <title>Contents of Bc</title>
+
+    <segmentedlist>
+      <segtitle>Installed programs</segtitle>
+
+      <seglistitem>
+        <seg>bc and dc</seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="bc">
+        <term><command>bc</command></term>
+        <listitem>
+          <para>is a command line calculator</para>
+          <indexterm zone="ch-system-bc bc">
+            <primary sortas="b-bc">bc</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="dc">
+        <term><command>dc</command></term>
+        <listitem>
+          <para>is a reverse-polish command line calculator</para>
+          <indexterm zone="ch-system-bc dc">
+            <primary sortas="b-dc">dc</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </sect2>
+
+</sect1>

+ 1 - 0
chapter06/chapter06.xml

@@ -44,6 +44,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grep.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bash.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bc.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtool.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gdbm.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="inetutils.xml"/>

+ 2 - 2
general.ent

@@ -1,5 +1,5 @@
-<!ENTITY version "SVN-20130428">
-<!ENTITY releasedate "April 28, 2013">
+<!ENTITY version "SVN-20130429">
+<!ENTITY releasedate "April 29, 2013">
 <!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not &ndash; -->
 <!ENTITY milestone "7.4">
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->

+ 10 - 2
packages.ent

@@ -34,6 +34,14 @@
 <!ENTITY bash-ch6-du "45 MB">
 <!ENTITY bash-ch6-sbu "1.7 SBU">
 
+<!ENTITY bc-version "1.06.95">
+<!ENTITY bc-size "288 KB">
+<!ENTITY bc-url "&alpha-gnu;bc/bc-&bc-version;.tar.bz2">
+<!ENTITY bc-md5 "5126a721b73f97d715bb72c13c889035 ">
+<!ENTITY bc-home "&gnu-software;bc/">
+<!ENTITY bc-ch6-du "3 MB">
+<!ENTITY bc-ch6-sbu "0.1 SBU">
+
 <!ENTITY binutils-version "2.23.2">
 <!ENTITY binutils-size "20,938 KB">
 <!ENTITY binutils-url "&gnu;binutils/binutils-&binutils-version;.tar.bz2">
@@ -175,8 +183,8 @@
 <!ENTITY gcc-ch5p1-sbu "5.5 SBU">
 <!ENTITY gcc-ch5p2-du "1.8 GB">
 <!ENTITY gcc-ch5p2-sbu "7.1 SBU">
-<!ENTITY gcc-ch6-du "2.0 GB">
-<!ENTITY gcc-ch6-sbu "53.5 SBU">
+<!ENTITY gcc-ch6-du "2.2 GB">
+<!ENTITY gcc-ch6-sbu "55.6 SBU">
 
 <!ENTITY gdbm-version "1.10">
 <!ENTITY gdbm-size "640 KB">

+ 4 - 4
prologue/standards.xml

@@ -59,7 +59,7 @@
       <varlistentry>
         <term><emphasis>LSB Core:</emphasis></term>
         <listitem>
-          <para>Bash, Binutils, Coreutils, Diffutils, File, Findutils, Gawk,
+          <para>Bash, Bc, Binutils, Coreutils, Diffutils, File, Findutils, Gawk,
                 Grep, Gzip, M4, Man-DB, Ncurses, Procps, Psmisc, Sed,
                 Shadow, Tar, Util-linux, Zlib</para>
         </listitem>
@@ -111,7 +111,7 @@
       <varlistentry>
         <term><emphasis>LSB Core:</emphasis></term>
         <listitem>
-          <para>At, Batch (a part of At), Bc, Cpio, Ed, Fcrontab, Initd-tools,
+          <para>At, Batch (a part of At), Cpio, Ed, Fcrontab, Initd-tools,
           Lsb_release, PAM, Sendmail (or Postfix or Exim) </para>
         </listitem>
       </varlistentry>
@@ -128,7 +128,7 @@
         <listitem>
           <para>ATK, Cairo, Desktop-file-utils, Freetype, Fontconfig,
                 Glib2, GTK+2, Icon-naming-utils, Libjpeg, Libpng, Libxml2,
-                MesaLib, Pango, Qt3, Qt4, Xorg</para>
+                MesaLib, Pango, Qt4, Xorg</para>
         </listitem>
       </varlistentry>
 
@@ -178,7 +178,7 @@
       <varlistentry>
         <term><emphasis>LSB Desktop:</emphasis></term>
         <listitem>
-          <para>None</para>
+          <para>Qt3</para>
         </listitem>
       </varlistentry>