tools/bc: update to 1.08.1
authorJack Sun <sunjiazheng321521@gmail.com>
Sun, 2 Feb 2025 02:46:47 +0000 (10:46 +0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 19 Feb 2025 08:41:37 +0000 (09:41 +0100)
refresh patch:
001-no_doc.patch
002-fix-libmath.patch
Changelog included in package.

Signed-off-by: Jack Sun <sunjiazheng321521@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17828
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
tools/bc/Makefile
tools/bc/patches/001-no_doc.patch
tools/bc/patches/002-fix-libmath.patch

index 2c29e094e23b2eacc7d3a8fb41c0043d77e538f1..f2a19eb2667c2292c23776a9b2a37a743308102d 100644 (file)
@@ -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
index 119f111f491169e2eab2cbef84bd5265c538794e..0768e626e8a7a3dd7722d57cb9005ac806566de1 100644 (file)
@@ -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
index f2212f0953fdb827b8480722634b501162d3b1b9..2ec74e55bac4e32fc9b529d00eea42c73f7796b5 100644 (file)
@@ -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-*)