diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2017-04-03 18:45:56 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2017-04-03 18:45:56 +0000 |
commit | a36bd4f2f182d877b029b2b2b5105ef390b1a45d (patch) | |
tree | cd427d19e656b9fa4478c6946f3106371a7788f4 /chapter06 | |
parent | 98e3fe275e1e023e0f4104fd5fd462e5723a016f (diff) |
Update to bc-1.07
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11217 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/bc.xml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/chapter06/bc.xml b/chapter06/bc.xml index 31794bb80..3c585547e 100644 --- a/chapter06/bc.xml +++ b/chapter06/bc.xml @@ -41,9 +41,20 @@ <sect2 role="installation"> <title>Installation of Bc</title> - <para>First, fix some minor memory leaks in the code:</para> - -<screen><userinput remap="pre">patch -Np1 -i ../&bc-memory-leak-patch;</userinput></screen> + <para>First, change an internal script to use <command>sed</command> instead + of <command>ed</command>:</para> + +<screen><userinput remap="pre">cat > bc/fix-libmath_h << "EOF" +#! /bin/bash +sed -e '1 s/^/{"/' \ + -e 's/$/",/' \ + -e '2,$ s/^/"/' \ + -e '$ d' \ + -i libmath.h + +sed -e '$ s/$/0}/' \ + -i libmath.h +EOF</userinput></screen> <para>Create a temporary symbolic link so the package can find the readline library and confirm that its required libncurses |