summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-06-06 15:31:18 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-09 17:43:41 +0100
commita375cb15b9dac5db64667168f0724e79d2792a09 (patch)
treeee29fe99d724b4af656b5f02f9d7645c84919bca
parent5e6f966b9110a10b1883202ab5d8a67b251cf103 (diff)
downloadpoky-a375cb15b9dac5db64667168f0724e79d2792a09.tar.gz
bc: upgrade 1.08.1 -> 1.08.2
Changes: - Remove last vestages of K&R C; this allows gcc-15+ to compile the code without special options. - Some typo and formatting fixes in the documentation. The above change also allowed dropping the relevant patch, that fixed gcc15 compatibility: 0001-getopt-Add-missing-params-to-getopt-getenv-signature.patch License-Update: added copyright years to the file header. (From OE-Core rev: 83886335bd08f5fa147694e957b2467b19aea6bd) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/bc/bc/0001-getopt-Add-missing-params-to-getopt-getenv-signature.patch40
-rw-r--r--meta/recipes-extended/bc/bc_1.08.2.bb (renamed from meta/recipes-extended/bc/bc_1.08.1.bb)5
2 files changed, 2 insertions, 43 deletions
diff --git a/meta/recipes-extended/bc/bc/0001-getopt-Add-missing-params-to-getopt-getenv-signature.patch b/meta/recipes-extended/bc/bc/0001-getopt-Add-missing-params-to-getopt-getenv-signature.patch
deleted file mode 100644
index f43f336075..0000000000
--- a/meta/recipes-extended/bc/bc/0001-getopt-Add-missing-params-to-getopt-getenv-signature.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From 493997b0d2c3dc6469f967d8f619ed934667c71e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 22 Mar 2025 18:33:08 -0700
4Subject: [PATCH] getopt: Add missing params to getopt/getenv signatures
5
6This ensures it can compile with GCC 15 on musl
7
8Upstream-Status: Submitted [sent to bug-bc@gnu.org]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 h/getopt.h | 2 +-
12 lib/getopt.c | 2 +-
13 2 files changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/h/getopt.h b/h/getopt.h
16index cc45f46..5ea5eac 100644
17--- a/h/getopt.h
18+++ b/h/getopt.h
19@@ -141,7 +141,7 @@ struct option
20 errors, only prototype getopt for the GNU C library. */
21 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
22 #else /* not __GNU_LIBRARY__ */
23-extern int getopt ();
24+extern int getopt (int, char * const*, const char *);
25 #endif /* __GNU_LIBRARY__ */
26
27 #ifndef __need_getopt
28diff --git a/lib/getopt.c b/lib/getopt.c
29index b270074..3e6d071 100644
30--- a/lib/getopt.c
31+++ b/lib/getopt.c
32@@ -197,7 +197,7 @@ static char *posixly_correct;
33 whose names are inconsistent. */
34
35 #ifndef getenv
36-extern char *getenv ();
37+extern char *getenv (const char*);
38 #endif
39
40 #endif /* not __GNU_LIBRARY__ */
diff --git a/meta/recipes-extended/bc/bc_1.08.1.bb b/meta/recipes-extended/bc/bc_1.08.2.bb
index 5fbbe7ef6a..cebfed9642 100644
--- a/meta/recipes-extended/bc/bc_1.08.1.bb
+++ b/meta/recipes-extended/bc/bc_1.08.2.bb
@@ -5,7 +5,7 @@ DESCRIPTION = "bc is an arbitrary precision numeric processing language. Syntax
5LICENSE = "GPL-3.0-or-later" 5LICENSE = "GPL-3.0-or-later"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ 6LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
7 file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ 7 file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
8 file://bc/bcdefs.h;endline=17;md5=4295c06df9e833519a342f7b5d43db06 \ 8 file://bc/bcdefs.h;endline=17;md5=f4a0239b216b8407783955e74938f190 \
9 file://dc/dc.h;endline=18;md5=bad31533d57fe5948c996f9ef6643206 \ 9 file://dc/dc.h;endline=18;md5=bad31533d57fe5948c996f9ef6643206 \
10 file://lib/number.c;endline=20;md5=cf43068cc88f837731dc53240456cfaf" 10 file://lib/number.c;endline=20;md5=cf43068cc88f837731dc53240456cfaf"
11 11
@@ -13,9 +13,8 @@ SECTION = "base"
13DEPENDS = "flex-native" 13DEPENDS = "flex-native"
14 14
15SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ 15SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \
16 file://0001-getopt-Add-missing-params-to-getopt-getenv-signature.patch \
17 file://run-ptest" 16 file://run-ptest"
18SRC_URI[sha256sum] = "b71457ffeb210d7ea61825ff72b3e49dc8f2c1a04102bbe23591d783d1bfe996" 17SRC_URI[sha256sum] = "ae470fec429775653e042015edc928d07c8c3b2fc59765172a330d3d87785f86"
19 18
20inherit autotools texinfo update-alternatives ptest 19inherit autotools texinfo update-alternatives ptest
21 20