summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-23 16:16:13 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-23 16:22:15 (EDT)
commit24245142c40e54daddc339e83d89914acc7a902a (patch)
tree8e20505de59dc9ed27dc9435da9ac680142b2f3b
parent67882fb797024325e570ab7fa27ce248f6660af8 (diff)
patches/01_convert_ed_to_sed.patch: Document more fully
-rw-r--r--changelog1
-rw-r--r--patches/01_convert_ed_to_sed.patch7
2 files changed, 7 insertions, 1 deletions
diff --git a/changelog b/changelog
index c503e9b..a0f33ef 100644
--- a/changelog
+++ b/changelog
@@ -1,6 +1,7 @@
bc (1.07.1-1) trunk
* New upstream version.
+ - Apply a patch to convert bc/fix-libmath_h to use sed instead of ed.
* Update Maintainer.
* bc, dc: Use automatic shared library dependencies.
diff --git a/patches/01_convert_ed_to_sed.patch b/patches/01_convert_ed_to_sed.patch
index 87d192c..7f2c92c 100644
--- a/patches/01_convert_ed_to_sed.patch
+++ b/patches/01_convert_ed_to_sed.patch
@@ -1,7 +1,10 @@
Author: Patrick McDermott <patrick.mcdermott@libiquity.com>
Subject: Convert bc/fix-libmath_h to use sed
-BusyBox ed bails on these commands:
+bc/libmath.h (the compiled byte code form of bc/libmath.b) is no longer
+distributed by upstream. This causes it to be compiled with a temporary build
+of bc and compiled into a C header with bc/fix-libmath_h, a shell script that
+runs ed. BusyBox ed bails on these commands:
"libmath.h", 47 lines, 2655 chars
: ed: no substitutions found for "^"
@@ -10,6 +13,8 @@ BusyBox ed bails on these commands:
: "libmath.h", 46 lines, 2652 chars
: Really quit?
+So instead, convert the script to use sed.
+
diff -Naurp src.orig/bc/fix-libmath_h src/bc/fix-libmath_h
--- src.orig/bc/fix-libmath_h 2017-04-07 18:20:02.000000000 -0400
+++ src/bc/fix-libmath_h 2019-06-23 15:43:12.264276574 -0400