Sync from SUSE:SLFO:Main linux-atm revision f8645f1ca9cca964be08dda6b26e8432

This commit is contained in:
Adrian Schröter 2024-10-03 17:35:36 +02:00
parent 8143c40aac
commit 16998c6ee1
3 changed files with 28 additions and 3 deletions

13
linux-atm-C99.patch Normal file
View File

@ -0,0 +1,13 @@
Index: linux-atm-2.5.2/src/led/conn.c
===================================================================
--- linux-atm-2.5.2.orig/src/led/conn.c
+++ linux-atm-2.5.2/src/led/conn.c
@@ -405,7 +405,7 @@ Conn_t *accept_conn(Conn_t *conn)
{
Conn_t *new;
struct sockaddr_atmsvc addr;
- size_t len;
+ socklen_t len;
int fd;
char buff[MAX_ATM_ADDR_LEN+1];

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jul 12 09:56:48 UTC 2024 - Martin Jambor <mjambor@suse.com>
- Add linux-atm-C99.patch to fix a wrong type being passed to
functionaccept which violates C99 rules and causes compilation to
fail with GCC 14 (and IMHO can cause wrong behavior on big-endian
systems). [boo#1221006]
-------------------------------------------------------------------
Wed Jun 2 17:51:26 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package linux-atm
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if %{undefined _firmwaredir}
%define _firmwaredir /lib/firmware
%endif
@ -37,11 +38,14 @@ Patch2: linux-atm-2.5.2-fix-header-conflict.patch
Patch3: linux-atm-2.5.2-remove-headers-crude-hack.patch
# PATCH-FIX-UPSTREAM fix-build-after-y2038-changes-in-glibc.patch -- fix build after y2038 changes in glibc
Patch4: fix-build-after-y2038-changes-in-glibc.patch
BuildRequires: bison
# PATCH-FIX-UPSTREAM linux-atm-C99.patch -- fix passing wrong type to accept
Patch5: linux-atm-C99.patch
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: bison
BuildRequires: flex
BuildRequires: glibc-devel
BuildRequires: libtool
%description
Tools to support ATM (Asynchronous Transfer Mode) networking.