1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

main/bc: upgrade to 1.08.2

https://lists.gnu.org/archive/html/info-gnu/2025-05/msg00006.html
This commit is contained in:
Celeste 2025-05-26 04:12:38 +00:00
parent 4f1a442fe3
commit 310da603cc
2 changed files with 3 additions and 34 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=bc
pkgver=1.08.1
pkgver=1.08.2
pkgrel=0
pkgdesc="Arbitrary precision numeric processing language (calculator)"
url="https://www.gnu.org/software/bc/bc.html"
@ -16,9 +16,7 @@ makedepends="
texinfo
"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/bc/bc-$pkgver.tar.gz
getopt-gcc15.patch
"
source="https://ftp.gnu.org/gnu/bc/bc-$pkgver.tar.gz"
build() {
./configure \
@ -42,6 +40,5 @@ package() {
}
sha512sums="
256c94833ead8029122d3ba6475cf4ff030c208a5bd3e2e9c5c8888467215e0fa9ab34e4226791bbd6e47498c0c61f0dc6399eecb0c8cf6a43453e84911c1847 bc-1.08.1.tar.gz
cba46a4066b0ec1975a462fe97ae7021b24bcf3f991fc82dfebd0ebef9dab09c2e0c1ca11a85fa0dc8c3c51962cb591848ba73e975a1ffaf406d160df55223ba getopt-gcc15.patch
0876a4c5bfc23da79479519c6a8e03ac9f59ae54077eb71ffdcc6ddaccb76c4b7595b088e89e6ad82d833c072eeff5b378178084276584813c00eedace4c6f8c bc-1.08.2.tar.gz
"

View file

@ -1,28 +0,0 @@
--- a/h/getopt.h
+++ b/h/getopt.h
@@ -135,14 +135,10 @@
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,
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -197,7 +197,7 @@
whose names are inconsistent. */
#ifndef getenv
-extern char *getenv ();
+extern char *getenv (const char *);
#endif
#endif /* not __GNU_LIBRARY__ */