Fix compile on F23

This commit is contained in:
Yaakov Selkowitz 2015-06-22 05:29:17 -05:00
parent 78a69f000a
commit b28068d718
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From a43f582918d3295b7cdef9e056bf5b1c4eb2ef80 Mon Sep 17 00:00:00 2001
From: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Mon, 22 Jun 2015 05:18:44 -0500
Subject: [PATCH] Include net/if.h for IFF_* macros
---
python-ethtool/ethtool.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
index 0f9cdbb..5415ec6 100644
--- a/python-ethtool/ethtool.c
+++ b/python-ethtool/ethtool.c
@@ -27,6 +27,7 @@
#include <sys/types.h>
#include <ifaddrs.h>
#include <netlink/route/addr.h>
+#include <net/if.h>
#include "etherinfo_struct.h"
#include "etherinfo_obj.h"
--
2.1.0

View File

@ -4,7 +4,7 @@
Summary: Ethernet settings python bindings Summary: Ethernet settings python bindings
Name: python-ethtool Name: python-ethtool
Version: 0.11 Version: 0.11
Release: 4%{?dist} Release: 5%{?dist}
URL: https://fedorahosted.org/python-ethtool/ URL: https://fedorahosted.org/python-ethtool/
Source: https://fedorahosted.org/releases/p/y/python-ethtool/python-ethtool-%{version}.tar.bz2 Source: https://fedorahosted.org/releases/p/y/python-ethtool/python-ethtool-%{version}.tar.bz2
License: GPLv2 License: GPLv2
@ -12,6 +12,8 @@ Group: System Environment/Libraries
BuildRequires: python-devel libnl3-devel asciidoc BuildRequires: python-devel libnl3-devel asciidoc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: 0001-Include-net-if.h-for-IFF_-macros.patch
%description %description
Python bindings for the ethtool kernel interface, that allows querying and Python bindings for the ethtool kernel interface, that allows querying and
changing of Ethernet card settings, such as speed, port, auto-negotiation, and changing of Ethernet card settings, such as speed, port, auto-negotiation, and
@ -19,6 +21,7 @@ PCI locations.
%prep %prep
%setup -q %setup -q
%patch1 -p1
%build %build
%{__python} setup.py build %{__python} setup.py build
@ -49,6 +52,9 @@ rm -rf %{buildroot}
%endif %endif
%changelog %changelog
* Mon Jun 22 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 0.11-5
- Fix compile on F23
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild