[openwrt/openwrt] tools/bc: update to 1.08.1
LEDE Commits
lede-commits at lists.infradead.org
Wed Feb 19 00:41:47 PST 2025
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/abd424c3e19df49bf331a5b0d0adbd71ebf14929
commit abd424c3e19df49bf331a5b0d0adbd71ebf14929
Author: Jack Sun <sunjiazheng321521 at gmail.com>
AuthorDate: Sun Feb 2 10:46:47 2025 +0800
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 <sunjiazheng321521 at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17828
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
tools/bc/Makefile | 6 +++---
tools/bc/patches/001-no_doc.patch | 8 ++++----
tools/bc/patches/002-fix-libmath.patch | 23 +----------------------
3 files changed, 8 insertions(+), 29 deletions(-)
diff --git a/tools/bc/Makefile b/tools/bc/Makefile
index 2c29e094e2..f2a19eb266 100644
--- a/tools/bc/Makefile
+++ b/tools/bc/Makefile
@@ -7,11 +7,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=bc
-PKG_VERSION:=1.07.1
+PKG_VERSION:=1.08.1
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/bc
-PKG_HASH:=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
+PKG_HASH:=515430115b3334c636317503460a0950dff79940aa3259ce2c1aa67c2881d023
PKG_FIXUP := autoreconf
PKG_CPE_ID:=cpe:/a:gnu:bc
diff --git a/tools/bc/patches/001-no_doc.patch b/tools/bc/patches/001-no_doc.patch
index 119f111f49..0768e626e8 100644
--- a/tools/bc/patches/001-no_doc.patch
+++ b/tools/bc/patches/001-no_doc.patch
@@ -7,15 +7,15 @@
+SUBDIRS = lib bc dc
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
- stamp-h $(distdir).tar.gz h/number.h depcomp missing \
+ stamp-h $(distdir).tar.gz h/number.h depcomp missing
--- a/Makefile.in
+++ b/Makefile.in
-@@ -288,7 +288,7 @@ target_alias = @target_alias@
+@@ -305,7 +305,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-SUBDIRS = lib bc dc doc
+SUBDIRS = lib bc dc
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
- stamp-h $(distdir).tar.gz h/number.h depcomp missing \
- bc/libmath.h
+ stamp-h $(distdir).tar.gz h/number.h depcomp missing
+
diff --git a/tools/bc/patches/002-fix-libmath.patch b/tools/bc/patches/002-fix-libmath.patch
index f2212f0953..2ec74e55ba 100644
--- a/tools/bc/patches/002-fix-libmath.patch
+++ b/tools/bc/patches/002-fix-libmath.patch
@@ -1,27 +1,6 @@
---- 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
-+#!/usr/bin/env 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
+@@ -5926,7 +5926,7 @@ case $bcle-$bcrl-$LEX in
?-?-flex)
LEX="flex -I -8" ;;
?-y-*)
More information about the lede-commits
mailing list