fixed building with kernel-3.6
This commit is contained in:
parent
771a6a31a2
commit
9f9884fdb8
34
net-tools-1.60-STRIP.patch
Normal file
34
net-tools-1.60-STRIP.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
From cb25358f5119192d14e3cf5370cd18037cc54ca8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jiri Popelka <jpopelka@redhat.com>
|
||||||
|
Date: Wed, 22 Aug 2012 16:20:46 +0200
|
||||||
|
Subject: [PATCH] kernel 3.6 removes linux/if_strip.h
|
||||||
|
|
||||||
|
---
|
||||||
|
lib/strip.c | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/strip.c b/lib/strip.c
|
||||||
|
index ced2325..06ea990 100644
|
||||||
|
--- a/lib/strip.c
|
||||||
|
+++ b/lib/strip.c
|
||||||
|
@@ -21,7 +21,6 @@
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <net/if_arp.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
-#include <linux/if_strip.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
@@ -35,6 +34,9 @@
|
||||||
|
#include "util.h"
|
||||||
|
#include "intl.h"
|
||||||
|
|
||||||
|
+typedef struct {
|
||||||
|
+ __u8 c[6];
|
||||||
|
+} MetricomAddress;
|
||||||
|
|
||||||
|
extern struct hwtype strip_hwtype;
|
||||||
|
|
||||||
|
--
|
||||||
|
1.7.11.4
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Basic networking tools
|
Summary: Basic networking tools
|
||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 1.60
|
Version: 1.60
|
||||||
Release: 140.%{checkout}%{?dist}
|
Release: 141.%{checkout}%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://net-tools.sourceforge.net
|
URL: http://net-tools.sourceforge.net
|
||||||
@ -53,6 +53,9 @@ Patch10: net-tools-1.60-ifconfig-long-iface-crasher.patch
|
|||||||
# fixed tcp timers info in netstat (#466845)
|
# fixed tcp timers info in netstat (#466845)
|
||||||
Patch11: net-tools-1.60-netstat-probe.patch
|
Patch11: net-tools-1.60-netstat-probe.patch
|
||||||
|
|
||||||
|
# kernel 3.6 removes linux/if_strip.h
|
||||||
|
Patch12: net-tools-1.60-STRIP.patch
|
||||||
|
|
||||||
BuildRequires: gettext, libselinux
|
BuildRequires: gettext, libselinux
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
@ -76,6 +79,7 @@ Most of them are obsolete. For replacement check iproute package.
|
|||||||
%patch9 -p1 -b .sctp
|
%patch9 -p1 -b .sctp
|
||||||
%patch10 -p1 -b .long_iface
|
%patch10 -p1 -b .long_iface
|
||||||
%patch11 -p1 -b .probe
|
%patch11 -p1 -b .probe
|
||||||
|
%patch12 -p1 -b .STRIP
|
||||||
|
|
||||||
cp %SOURCE1 ./config.h
|
cp %SOURCE1 ./config.h
|
||||||
cp %SOURCE2 ./config.make
|
cp %SOURCE2 ./config.make
|
||||||
@ -156,6 +160,9 @@ install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}
|
|||||||
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 22 2012 Jiri Popelka <jpopelka@redhat.com> - 1.60-141.20120702git
|
||||||
|
- fixed building with kernel-3.6
|
||||||
|
|
||||||
* Wed Aug 22 2012 Jiri Popelka <jpopelka@redhat.com> - 1.60-140.20120702git
|
* Wed Aug 22 2012 Jiri Popelka <jpopelka@redhat.com> - 1.60-140.20120702git
|
||||||
- use new systemd-rpm macros (#850225)
|
- use new systemd-rpm macros (#850225)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user