From 47d1bf564ff438781be3aa4fa8c1183734173293 Mon Sep 17 00:00:00 2001 From: Jonas Jelonek Date: Mon, 22 Jun 2026 08:35:06 +0000 Subject: [PATCH] tools: bc: update to 1.08.2 Changelog included in source tar. Removed patches: - 000-getopt-prototype.patch - 001-getopt-declaration.patch Both patch changes are included upstream in this version. Link: https://github.com/openwrt/openwrt/pull/23911 Signed-off-by: Jonas Jelonek --- tools/bc/Makefile | 6 +++--- tools/bc/patches/000-getopt-prototype.patch | 18 ------------------ tools/bc/patches/001-getopt-declaration.patch | 11 ----------- 3 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 tools/bc/patches/000-getopt-prototype.patch delete mode 100644 tools/bc/patches/001-getopt-declaration.patch diff --git a/tools/bc/Makefile b/tools/bc/Makefile index e86a68c05b7..1523ad1f65b 100644 --- a/tools/bc/Makefile +++ b/tools/bc/Makefile @@ -7,11 +7,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bc -PKG_VERSION:=1.08.1 +PKG_VERSION:=1.08.2 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@GNU/bc -PKG_HASH:=515430115b3334c636317503460a0950dff79940aa3259ce2c1aa67c2881d023 +PKG_HASH:=ae470fec429775653e042015edc928d07c8c3b2fc59765172a330d3d87785f86 PKG_CPE_ID:=cpe:/a:gnu:bc diff --git a/tools/bc/patches/000-getopt-prototype.patch b/tools/bc/patches/000-getopt-prototype.patch deleted file mode 100644 index ca6246963be..00000000000 --- a/tools/bc/patches/000-getopt-prototype.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/h/getopt.h -+++ b/h/getopt.h -@@ -135,15 +135,7 @@ struct option - arguments to the option '\0'. This behavior is specific to the GNU - `getopt'. */ - --#ifdef __GNU_LIBRARY__ --/* Many other libraries have conflicting prototypes for getopt, with -- differences in the consts, in stdlib.h. To avoid compilation -- errors, only prototype getopt for the GNU C library. */ - extern int getopt (int ___argc, char *const *___argv, const char *__shortopts); --#else /* not __GNU_LIBRARY__ */ --extern int getopt (); --#endif /* __GNU_LIBRARY__ */ -- - #ifndef __need_getopt - extern int getopt_long (int ___argc, char *const *___argv, - const char *__shortopts, diff --git a/tools/bc/patches/001-getopt-declaration.patch b/tools/bc/patches/001-getopt-declaration.patch deleted file mode 100644 index c64be8dc032..00000000000 --- a/tools/bc/patches/001-getopt-declaration.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/lib/getopt.c -+++ b/lib/getopt.c -@@ -197,7 +197,7 @@ static char *posixly_correct; - whose names are inconsistent. */ - - #ifndef getenv --extern char *getenv (); -+extern char *getenv (const char *); - #endif - - #endif /* not __GNU_LIBRARY__ */ -- 2.47.3