Skip to content

Commit abd424c

Browse files
zheshifandianAnsuel
authored andcommitted
tools/bc: update to 1.08.1
refresh patch: 001-no_doc.patch 002-fix-libmath.patch Changelog included in package. Signed-off-by: Jack Sun <[email protected]> Link: openwrt/openwrt#17828 Signed-off-by: Christian Marangi <[email protected]>
1 parent 208288f commit abd424c

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

tools/bc/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
include $(TOPDIR)/rules.mk
88

99
PKG_NAME:=bc
10-
PKG_VERSION:=1.07.1
10+
PKG_VERSION:=1.08.1
1111

12-
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
1313
PKG_SOURCE_URL:=@GNU/bc
14-
PKG_HASH:=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
14+
PKG_HASH:=515430115b3334c636317503460a0950dff79940aa3259ce2c1aa67c2881d023
1515

1616
PKG_FIXUP := autoreconf
1717
PKG_CPE_ID:=cpe:/a:gnu:bc

tools/bc/patches/001-no_doc.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
+SUBDIRS = lib bc dc
88

99
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
10-
stamp-h $(distdir).tar.gz h/number.h depcomp missing \
10+
stamp-h $(distdir).tar.gz h/number.h depcomp missing
1111
--- a/Makefile.in
1212
+++ b/Makefile.in
13-
@@ -288,7 +288,7 @@ target_alias = @target_alias@
13+
@@ -305,7 +305,7 @@ target_alias = @target_alias@
1414
top_build_prefix = @top_build_prefix@
1515
top_builddir = @top_builddir@
1616
top_srcdir = @top_srcdir@
1717
-SUBDIRS = lib bc dc doc
1818
+SUBDIRS = lib bc dc
1919
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
20-
stamp-h $(distdir).tar.gz h/number.h depcomp missing \
21-
bc/libmath.h
20+
stamp-h $(distdir).tar.gz h/number.h depcomp missing
21+

tools/bc/patches/002-fix-libmath.patch

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
--- a/bc/fix-libmath_h
2-
+++ b/bc/fix-libmath_h
3-
@@ -1,9 +1,9 @@
4-
-ed libmath.h <<EOS-EOS
5-
-1,1s/^/{"/
6-
-1,\$s/\$/",/
7-
-2,\$s/^/"/
8-
-\$,\$d
9-
-\$,\$s/,\$/,0}/
10-
-w
11-
-q
12-
-EOS-EOS
13-
+#!/usr/bin/env bash
14-
+sed -e '1 s/^/{"/' \
15-
+ -e 's/$/",/' \
16-
+ -e '2,$ s/^/"/' \
17-
+ -e '$ d' \
18-
+ -i libmath.h
19-
+
20-
+sed -e '$ s/$/0}/' \
21-
+ -i libmath.h
221
--- a/configure
232
+++ b/configure
24-
@@ -5288,7 +5288,7 @@ case $bcle-$bcrl-$LEX in
3+
@@ -5926,7 +5926,7 @@ case $bcle-$bcrl-$LEX in
254
?-?-flex)
265
LEX="flex -I -8" ;;
276
?-y-*)

0 commit comments

Comments
 (0)