Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sbl for openSUSE:Factory checked in at 2025-04-18 16:15:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sbl (Old) and /work/SRC/openSUSE:Factory/.sbl.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sbl" Fri Apr 18 16:15:12 2025 rev:48 rq:1270584 version:3.5.0.20130317.git7a75bc29 Changes: -------- --- /work/SRC/openSUSE:Factory/sbl/sbl.changes 2024-04-24 15:13:19.182889325 +0200 +++ /work/SRC/openSUSE:Factory/.sbl.new.30101/sbl.changes 2025-04-20 20:09:43.417536735 +0200 @@ -1,0 +2,5 @@ +Wed Apr 16 12:52:49 UTC 2025 - Friedrich Haubensak <hs...@mail.de> + +- Add sbl-gcc15.patch to fix gcc-15 compile time errors + +------------------------------------------------------------------- New: ---- sbl-gcc15.patch BETA DEBUG BEGIN: New: - Add sbl-gcc15.patch to fix gcc-15 compile time errors BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sbl.spec ++++++ --- /var/tmp/diff_new_pack.SzrX9h/_old 2025-04-20 20:09:43.997561113 +0200 +++ /var/tmp/diff_new_pack.SzrX9h/_new 2025-04-20 20:09:44.001561282 +0200 @@ -34,6 +34,8 @@ Patch7: sbl-orca-python3.patch # PAtCH-FIX-UPSTREAM sbl-gcc14.patch Patch8: sbl-gcc14.patch +# fixes to make gcc-15 happy +Patch9: sbl-gcc15.patch BuildRequires: bluez-devel BuildRequires: gcc-c++ BuildRequires: libusb-devel @@ -69,10 +71,11 @@ %patch -P 6 -p1 %patch -P 7 -p1 %patch -P 8 -p1 +%patch -P 9 -p1 %build -make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE" \ - LIB_CFLAGS="%{optflags} -fcommon -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -fPIC $(pkg-config speech-dispatcher --cflags)" +make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon -D_POSIX_C_SOURCE=2 -D_DEFAULT_SOURCE" \ + LIB_CFLAGS="%{optflags} -fcommon -D_POSIX_C_SOURCE=2 -D_DEFAULT_SOURCE -fPIC $(pkg-config speech-dispatcher --cflags)" %install %make_install LIBINSTPATH=%{_libdir} ++++++ sbl-gcc15.patch ++++++ --- a/brld/brld.c 2013-03-17 15:02:27.000000000 +0100 +++ b/brld/brld.c 2025-04-16 21:41:43.613731105 +0200 @@ -321,7 +321,7 @@ brltbl = texttbl; /* start braille-thread */ - result = pthread_create (&thread_id, NULL, thread_brl, NULL); + result = pthread_create (&thread_id, NULL, (void * (*)(void *))thread_brl, NULL); if (result != 0) { fprintf (stderr, "error: could not create braille thread\n"); --- a/brld/libbrld.c 2013-03-17 15:02:27.000000000 +0100 +++ b/brld/libbrld.c 2025-04-16 21:39:00.857911681 +0200 @@ -35,7 +35,7 @@ int brld_open (char *host, int port) { - struct hostent *hp, *gethostbyname (); + struct hostent *hp; struct sockaddr_in sad; /* inet socket */ --- a/sbl/Fhp/brlconf.h 2013-03-17 15:02:27.000000000 +0100 +++ b/sbl/Fhp/brlconf.h 2025-04-16 22:37:42.779155578 +0200 @@ -14,7 +14,7 @@ * GNU General Public License, as published by the Free Software * Foundation. Please see the file COPYING for details. */ -#ifndef _BRLCONf_H +#ifndef _BRLCONF_H #define _BRLCONF_H #include "../brl.h" struct brlinfo fhpdevs[] = { --- a/sbl/speech/softspeech_server.c 2013-03-17 15:02:27.000000000 +0100 +++ b/sbl/speech/softspeech_server.c 2025-04-16 22:23:58.804848272 +0200 @@ -1938,7 +1938,7 @@ { subprocess_t *p = &proc[pnum]; - fprintf (db_fp, "p = 0x%08x\n", (unsigned) p); + fprintf (db_fp, "p = 0x%08x\n", (uintptr_t) p); if (p->argv != NULL) fprintf (db_fp, "proc %d (%s)\n", pnum, p->argv[0]); fprintf (db_fp, "to_active = %d\n", p->to_active); @@ -2170,7 +2170,7 @@ if (*mlp != m) { fprintf (db_fp, "Call of free for non allocated block" - ", ptr = 0x%08x (%s, %d)!\n", (unsigned) ptr, f, l); + ", ptr = 0x%08x (%s, %d)!\n", (uintptr_t) ptr, f, l); return; } total_alloc -= m->size; @@ -2193,12 +2193,12 @@ if (*mlp != m) { fprintf (db_fp, "block not allocated, ptr = 0x%08x (%s, %d)!\n", - (unsigned) ptr, f, l); + (uintptr_t) ptr, f, l); } else { fprintf (db_fp, "block ok, ptr = 0x%08x (%s, %d)!\n", - (unsigned) ptr, f, l); + (uintptr_t) ptr, f, l); } } --- a/sbl/kbdsniff.c 2013-03-17 15:02:27.000000000 +0100 +++ b/sbl/kbdsniff.c 2025-04-16 21:37:54.280531161 +0200 @@ -22,7 +22,7 @@ int kbd_open (int port) { - struct hostent *hp, *gethostbyname (); + struct hostent *hp; struct sockaddr_in sock_addr;