mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/libgsm: bump version to 1.0.23
Removed patch which is included in this release. Added sha256 hash provided by upstream. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
d73458b3a5
commit
15bf67b3af
@@ -1,61 +0,0 @@
|
||||
From 7ffab0a5028f0bfcb864c2387f41b8d4eb33fb8e Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Fri, 29 Aug 2025 17:27:55 +0200
|
||||
Subject: [PATCH] Fix signal handler prototype
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Recent versions of gcc, starting from gcc 15.x, are more picky about
|
||||
function prototypes, and that cause the following issue:
|
||||
|
||||
usr/include/signal.h:93:23: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
|
||||
|
||||
ultimately causing a build failure.
|
||||
|
||||
This patch fixes that by ensuring the signal handler has the right
|
||||
prototype. The onintr() function is not only used as a signal handler,
|
||||
but also on memory allocation failure, in which case a dummy value of
|
||||
0 is passed as argument, since anyway this value isn't used by
|
||||
onintr().
|
||||
|
||||
Upstream: sent by e-mail to Jutta Degener <jutta@pobox.com>
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
src/toast.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/toast.c b/src/toast.c
|
||||
index 05cd0b3..70a14ba 100644
|
||||
--- a/src/toast.c
|
||||
+++ b/src/toast.c
|
||||
@@ -211,7 +211,7 @@ static char * suffix P2((name, suf), char *name, char * suf)
|
||||
}
|
||||
|
||||
|
||||
-static void catch_signals P1((fun), SIGHANDLER_T (*fun) ())
|
||||
+static void catch_signals P1((fun), SIGHANDLER_T (*fun) (int))
|
||||
{
|
||||
#ifdef SIGHUP
|
||||
signal( SIGHUP, fun );
|
||||
@@ -230,7 +230,7 @@ static void catch_signals P1((fun), SIGHANDLER_T (*fun) ())
|
||||
#endif
|
||||
}
|
||||
|
||||
-static SIGHANDLER_T onintr P0()
|
||||
+static SIGHANDLER_T onintr P1((signo), int signo)
|
||||
{
|
||||
char * tmp = outname;
|
||||
|
||||
@@ -253,7 +253,7 @@ static char * emalloc P1((len), size_t len)
|
||||
if (!(s = malloc(len))) {
|
||||
fprintf(stderr, "%s: failed to malloc %d bytes -- abort\n",
|
||||
progname, (int)len);
|
||||
- onintr();
|
||||
+ onintr(0);
|
||||
exit(1);
|
||||
}
|
||||
return s;
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# From https://www.quut.com/gsm/
|
||||
sha256 8b7591a85ac9adce858f2053005e6b2eb20c23b8b8a868dffb2969645fa323c0 gsm-1.0.23.tar.gz
|
||||
# Locally computed
|
||||
sha256 f0072e91f6bb85a878b2f6dbf4a0b7c850c4deb8049d554c65340b3bf69df0ac gsm-1.0.22.tar.gz
|
||||
sha256 81c68a3374937ed9b5e4929c709e81a2c4b35b5d1f450ecf8c473e2daea46ff6 COPYRIGHT
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGSM_VERSION = 1.0.22
|
||||
LIBGSM_VERSION = 1.0.23
|
||||
LIBGSM_SOURCE = gsm-$(LIBGSM_VERSION).tar.gz
|
||||
LIBGSM_SITE = http://www.quut.com/gsm
|
||||
LIBGSM_LICENSE = gsm
|
||||
|
||||
Reference in New Issue
Block a user