Changeset 1fcdfae for general


Ignore:
Timestamp:
03/25/2006 09:40:58 PM (18 years ago)
Author:
Dan Nichilson <dnicholson@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a413a01
Parents:
51cfdb2a
Message:

Fixed #1846 for bc. Replaced patches with sed's. Added testsuite commands.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5746 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genutils/bc.xml

    r51cfdb2a r1fcdfae  
    88  <!ENTITY bc-download-ftp "ftp://ftp.gnu.org/gnu/bc/bc-&bc-version;.tar.gz">
    99  <!ENTITY bc-md5sum "d44b5dddebd8a7a7309aea6c36fda117">
    10   <!ENTITY bc-size "278 KB">
    11   <!ENTITY bc-buildsize "2.31 MB">
    12   <!ENTITY bc-time "0.04 SBU">
     10  <!ENTITY bc-size "273 KB">
     11  <!ENTITY bc-buildsize "2.36 MB">
     12  <!ENTITY bc-time "less than 0.1 SBU (0.2 SBU if running the testsuite)">
    1313]>
    1414
     
    5959    </itemizedlist>
    6060
    61     <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    62     <itemizedlist spacing='compact'>
    63       <listitem>
    64         <para>Required patch: <ulink
    65         url="&patch-root;/bc-&bc-version;-flex_invocation-1.patch"/></para>
    66       </listitem>
    67       <listitem>
    68         <para>Required patch: <ulink
    69         url="&patch-root;/bc-&bc-version;-readline-1.patch"/></para>
    70       </listitem>
    71     </itemizedlist>
    72 
    73     <bridgehead renderas="sect3">Bc Dependencies</bridgehead>
    74 
    75     <bridgehead renderas="sect4">Optional</bridgehead>
    76     <para role="optional"><ulink url="http://sourceforge.net/projects/libedit/">libedit</ulink>
    77     (as an alternative to readline)</para>
    78 
    7961  </sect2>
    8062
     
    8466    <para>Install <application>bc</application> by running the following commands:</para>
    8567
    86 <screen><userinput>patch -Np1 -i ../bc-&bc-version;-flex_invocation-1.patch &amp;&amp;
    87 patch -Np1 -i ../bc-&bc-version;-readline-1.patch &amp;&amp;
     68<screen><userinput>sed -i '/PROTO.*readline/d' bc/scan.l &amp;&amp;
     69sed -i '/flex -I8/s/8//' configure &amp;&amp;
     70sed -i '/stdlib/a #include &lt;string.h&gt;' lib/number.c &amp;&amp;
     71sed -i 's/program.*save/static &amp;/' bc/load.c &amp;&amp;
    8872./configure --prefix=/usr --with-readline &amp;&amp;
    8973make</userinput></screen>
    9074
    91     <para>This package does not come with a test suite.</para>
     75    <para>To test <application>bc</application>, run the commands below.
     76    There is quite a bit of output, so you may want to redirect it to a file.
     77    Some tests are known to fail, but <application>bc</application> is still
     78    useable.</para>
     79<screen><userinput>for TEST in Test/{checklib,testfn}.b&amp; do
     80    echo "quit" | ./bc/bc -l $TEST
     81done</userinput></screen>
    9282
    9383    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    9484
    9585<screen role="root"><userinput>make install</userinput></screen>
     86
     87  </sect2>
     88
     89  <sect2 role="commands">
     90    <title>Command Explanations</title>
     91
     92    <para><command>sed -i '/PROTO.*readline/d' bc/scan.l</command>: This
     93    command fixes the <application>Readline</application> library call.</para>
     94
     95    <para><command>sed -i '/flex -I8/s/8//' configure</command>: This
     96    command fixes the <application>Flex</application> invocation.</para>
     97
     98    <para><command>sed -i '/stdlib/a #include &lt;string.h&gt;' lib/number.c</command>:
     99    This command inserts a missing header.</para>
     100
     101    <para><command>sed -i 's/program.*save/static &amp;/' bc/load.c</command>:
     102    This command fixes a segfault when running <application>bc</application>
     103    with <command>bc -l</command>.</para>
     104
     105    <para><parameter>--with-readline</parameter>: This option enables
     106    <application>Readline</application> support in interactive mode.</para>
    96107
    97108  </sect2>
Note: See TracChangeset for help on using the changeset viewer.