diff options
| author | Nick Hainke <vincent@systemli.org> | 2022-08-29 07:26:52 +0200 |
|---|---|---|
| committer | Daniel Golle <daniel@makrotopia.org> | 2022-09-07 04:22:39 +0100 |
| commit | 7b8f2dc6eca371a0edfcf3c14fb89983fcbe69eb (patch) | |
| tree | 3d0acef5134f35894ae28cf1a095143b871012fd /tools/bc/patches/002-fix-libmath.patch | |
| parent | 534e72ea0f8138b8581bb0618417dfe0e94bbbb4 (diff) | |
| download | upstream-7b8f2dc6eca371a0edfcf3c14fb89983fcbe69eb.tar.gz upstream-7b8f2dc6eca371a0edfcf3c14fb89983fcbe69eb.tar.bz2 upstream-7b8f2dc6eca371a0edfcf3c14fb89983fcbe69eb.zip | |
tools/bc: update to 1.07
Update to latest version. Replace mirror with @GNU/bc.
Manually refresh:
- 001-no_doc.patch
Add patch found here:
https://github.com/fivepiece/gnu-bc/commit/26f275502dd28114e78bc098fed81acde1d86d62
as 002-fix-libmath.patch to fix compilation.
Add another patch found here:
https://github.com/archlinux/svntogit-packages/commit/55b26eda94e1a9ff726ac458fccab5f3f3ad2114
as 003-bc-fix-hang.patch to prevent a hang when building the kernel.
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'tools/bc/patches/002-fix-libmath.patch')
| -rw-r--r-- | tools/bc/patches/002-fix-libmath.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/bc/patches/002-fix-libmath.patch b/tools/bc/patches/002-fix-libmath.patch new file mode 100644 index 00000000000..1a8439542da --- /dev/null +++ b/tools/bc/patches/002-fix-libmath.patch @@ -0,0 +1,32 @@ +--- a/bc/fix-libmath_h ++++ b/bc/fix-libmath_h +@@ -1,9 +1,9 @@ +-ed libmath.h <<EOS-EOS +-1,1s/^/{"/ +-1,\$s/\$/",/ +-2,\$s/^/"/ +-\$,\$d +-\$,\$s/,\$/,0}/ +-w +-q +-EOS-EOS ++#! /bin/bash ++sed -e '1 s/^/{"/' \ ++ -e 's/$/",/' \ ++ -e '2,$ s/^/"/' \ ++ -e '$ d' \ ++ -i libmath.h ++ ++sed -e '$ s/$/0}/' \ ++ -i libmath.h +--- a/configure ++++ b/configure +@@ -5288,7 +5288,7 @@ case $bcle-$bcrl-$LEX in + ?-?-flex) + LEX="flex -I -8" ;; + ?-y-*) +- as_fn_error $? "readline works only with flex." "$LINENO" 5 ;; ++ : ;; # as_fn_error $? "readline works only with flex." "$LINENO" 5 ;; + esac + + case $LEX-`uname -s` in |
