From a36bd4f2f182d877b029b2b2b5105ef390b1a45d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 3 Apr 2017 18:45:56 +0000 Subject: Update to bc-1.07 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11217 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/bc.xml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'chapter06') 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 @@ Installation of Bc - First, fix some minor memory leaks in the code: - -patch -Np1 -i ../&bc-memory-leak-patch; + First, change an internal script to use sed instead + of ed: + +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 Create a temporary symbolic link so the package can find the readline library and confirm that its required libncurses -- cgit v1.2.3-54-g00ecf