SHA256
1
0
forked from pool/linux-atm

Accepting request 1187070 from Base:System

OBS-URL: https://build.opensuse.org/request/show/1187070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/linux-atm?expand=0&rev=31
This commit is contained in:
Ana Guerrero 2024-07-14 06:48:47 +00:00 committed by Git OBS Bridge
commit 2bbea46b7e
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%if %{undefined _firmwaredir} %if %{undefined _firmwaredir}
%define _firmwaredir /lib/firmware %define _firmwaredir /lib/firmware
%endif %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 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 # 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 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: autoconf
BuildRequires: libtool BuildRequires: bison
BuildRequires: flex BuildRequires: flex
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libtool
%description %description
Tools to support ATM (Asynchronous Transfer Mode) networking. Tools to support ATM (Asynchronous Transfer Mode) networking.