Accepting request 664026 from home:jirislaby:branches:Base:System
- add linux-atm-2.5.2-remove-headers-crude-hack.patch - switch from %doc to %license for licenses OBS-URL: https://build.opensuse.org/request/show/664026 OBS-URL: https://build.opensuse.org/package/show/Base:System/linux-atm?expand=0&rev=19
This commit is contained in:
parent
ceb1fd2758
commit
7abce69eb1
48
linux-atm-2.5.2-remove-headers-crude-hack.patch
Normal file
48
linux-atm-2.5.2-remove-headers-crude-hack.patch
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
From: Jiri Slaby <jslaby@suse.cz>
|
||||||
|
Subject: Remove headers crude hack
|
||||||
|
|
||||||
|
Now, the glibc headers seem to be fixed, so remove this hack which
|
||||||
|
prevents build on systems with kernel >= 4.20. linux/if_arp.h really
|
||||||
|
needs to include linux/netdevice.h to have IFNAMSIZ defined. If not,
|
||||||
|
the build fails miserably:
|
||||||
|
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c itf.c
|
||||||
|
In file included from itf.c:17:
|
||||||
|
/usr/include/linux/if_arp.h:121:16: error: 'IFNAMSIZ' undeclared here (not in a function)
|
||||||
|
char arp_dev[IFNAMSIZ];
|
||||||
|
^~~~~~~~
|
||||||
|
---
|
||||||
|
src/arpd/arp.c | 1 -
|
||||||
|
src/arpd/io.c | 1 -
|
||||||
|
src/arpd/itf.c | 1 -
|
||||||
|
3 files changed, 3 deletions(-)
|
||||||
|
|
||||||
|
--- a/src/arpd/arp.c
|
||||||
|
+++ b/src/arpd/arp.c
|
||||||
|
@@ -15,7 +15,6 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h> /* for linux/if_arp.h */
|
||||||
|
#include <netinet/in.h> /* for ntohs, etc. */
|
||||||
|
-#define _LINUX_NETDEVICE_H /* very crude hack for glibc2 */
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/if_arp.h>
|
||||||
|
#include <linux/if_ether.h>
|
||||||
|
--- a/src/arpd/io.c
|
||||||
|
+++ b/src/arpd/io.c
|
||||||
|
@@ -21,7 +21,6 @@
|
||||||
|
#include <atm.h>
|
||||||
|
#include <linux/atmclip.h> /* for CLIP_DEFAULT_IDLETIMER */
|
||||||
|
#include <linux/atmarp.h>
|
||||||
|
-#define _LINUX_NETDEVICE_H /* glibc2 */
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/if_arp.h>
|
||||||
|
|
||||||
|
--- a/src/arpd/itf.c
|
||||||
|
+++ b/src/arpd/itf.c
|
||||||
|
@@ -12,7 +12,6 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <linux/atmclip.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
-#define _LINUX_NETDEVICE_H /* glibc2 */
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/if_arp.h>
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 9 08:45:59 UTC 2019 - Jiri Slaby <jslaby@suse.com>
|
||||||
|
|
||||||
|
- add linux-atm-2.5.2-remove-headers-crude-hack.patch
|
||||||
|
- switch from %doc to %license for licenses
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 17 09:36:39 UTC 2016 - schwab@suse.de
|
Mon Oct 17 09:36:39 UTC 2016 - schwab@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package linux-atm
|
# spec file for package linux-atm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ Version: 2.5.2
|
|||||||
Release: 0
|
Release: 0
|
||||||
%global sover 1
|
%global sover 1
|
||||||
Summary: Tools for ATM
|
Summary: Tools for ATM
|
||||||
License: BSD-3-Clause and GPL-2.0+ and LGPL-2.1+
|
License: BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Group: Productivity/Networking/Other
|
Group: Productivity/Networking/Other
|
||||||
|
|
||||||
Url: http://linux-atm.sourceforge.net/
|
Url: http://linux-atm.sourceforge.net/
|
||||||
@ -32,6 +32,8 @@ Patch0: linux-atm-2.5.2_fdleak.patch
|
|||||||
Patch1: linux-atm-2.5.2_implicit-fortify-decl.patch
|
Patch1: linux-atm-2.5.2_implicit-fortify-decl.patch
|
||||||
# PATCH-FIX-UPSTREAM linux-atm-2.5.2-fix-header-conflict.patch -- avoid conflict with kernel headers
|
# PATCH-FIX-UPSTREAM linux-atm-2.5.2-fix-header-conflict.patch -- avoid conflict with kernel headers
|
||||||
Patch2: linux-atm-2.5.2-fix-header-conflict.patch
|
Patch2: linux-atm-2.5.2-fix-header-conflict.patch
|
||||||
|
# PATCH-FIX-UPSTREAM linux-atm-2.5.2-remove-headers-crude-hack.patch -- Remove headers crude hack
|
||||||
|
Patch3: linux-atm-2.5.2-remove-headers-crude-hack.patch
|
||||||
|
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
@ -63,9 +65,7 @@ networking.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%autopatch -p1
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
@ -87,7 +87,7 @@ networking.
|
|||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
/lib/firmware/*
|
/lib/firmware/*
|
||||||
%doc README AUTHORS ChangeLog NEWS THANKS BUGS
|
%doc README AUTHORS ChangeLog NEWS THANKS BUGS
|
||||||
%doc COPYING COPYING.GPL COPYING.LGPL
|
%license COPYING COPYING.GPL COPYING.LGPL
|
||||||
%doc %{_mandir}/man*/*.gz
|
%doc %{_mandir}/man*/*.gz
|
||||||
|
|
||||||
%files -n libatm%{sover}
|
%files -n libatm%{sover}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user