- Timestamp:
- 03/25/2006 09:40:58 PM (18 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/genutils/bc.xml
r51cfdb2a r1fcdfae 8 8 <!ENTITY bc-download-ftp "ftp://ftp.gnu.org/gnu/bc/bc-&bc-version;.tar.gz"> 9 9 <!ENTITY bc-md5sum "d44b5dddebd8a7a7309aea6c36fda117"> 10 <!ENTITY bc-size "27 8KB">11 <!ENTITY bc-buildsize "2.3 1MB">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)"> 13 13 ]> 14 14 … … 59 59 </itemizedlist> 60 60 61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>62 <itemizedlist spacing='compact'>63 <listitem>64 <para>Required patch: <ulink65 url="&patch-root;/bc-&bc-version;-flex_invocation-1.patch"/></para>66 </listitem>67 <listitem>68 <para>Required patch: <ulink69 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 79 61 </sect2> 80 62 … … 84 66 <para>Install <application>bc</application> by running the following commands:</para> 85 67 86 <screen><userinput>patch -Np1 -i ../bc-&bc-version;-flex_invocation-1.patch && 87 patch -Np1 -i ../bc-&bc-version;-readline-1.patch && 68 <screen><userinput>sed -i '/PROTO.*readline/d' bc/scan.l && 69 sed -i '/flex -I8/s/8//' configure && 70 sed -i '/stdlib/a #include <string.h>' lib/number.c && 71 sed -i 's/program.*save/static &/' bc/load.c && 88 72 ./configure --prefix=/usr --with-readline && 89 73 make</userinput></screen> 90 74 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& do 80 echo "quit" | ./bc/bc -l $TEST 81 done</userinput></screen> 92 82 93 83 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 94 84 95 85 <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 <string.h>' lib/number.c</command>: 99 This command inserts a missing header.</para> 100 101 <para><command>sed -i 's/program.*save/static &/' 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> 96 107 97 108 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.