Bladeren bron

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: https://github.com/openwrt/openwrt/pull/17828
Signed-off-by: Christian Marangi <[email protected]>
Jack Sun 10 maanden geleden
bovenliggende
commit
abd424c3e1
3 gewijzigde bestanden met toevoegingen van 8 en 29 verwijderingen
  1. 3 3
      tools/bc/Makefile
  2. 4 4
      tools/bc/patches/001-no_doc.patch
  3. 1 22
      tools/bc/patches/002-fix-libmath.patch

+ 3 - 3
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

+ 4 - 4
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
+ 

+ 1 - 22
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-*)