public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/python-ethtool/, dev-python/python-ethtool/files/
@ 2016-08-06 20:56 Rafael Martins
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael Martins @ 2016-08-06 20:56 UTC (permalink / raw
  To: gentoo-commits

commit:     6009c41728f7afe3072ebfe70b0fac4e43d22a96
Author:     Rafael Martins <rafaelmartins <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  6 20:55:09 2016 +0000
Commit:     Rafael Martins <rafaelmartins <AT> gentoo <DOT> org>
CommitDate: Sat Aug  6 20:55:09 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6009c417

Initial import

Package-Manager: portage-2.2.26

 dev-python/python-ethtool/Manifest                 |  1 +
 ...ool-0.11_include-net-if.h-for-IFF_-macros.patch | 24 +++++++++++++++++++
 dev-python/python-ethtool/metadata.xml             | 13 ++++++++++
 .../python-ethtool/python-ethtool-0.11.ebuild      | 28 ++++++++++++++++++++++
 4 files changed, 66 insertions(+)

diff --git a/dev-python/python-ethtool/Manifest b/dev-python/python-ethtool/Manifest
new file mode 100644
index 0000000..0da9e9a
--- /dev/null
+++ b/dev-python/python-ethtool/Manifest
@@ -0,0 +1 @@
+DIST python-ethtool-0.11.tar.bz2 34487 SHA256 686756e4b2b239319e8513025debcc0d97103815b0879f94d8234cbbca6ada24 SHA512 b260e608e1024c48eedb72327b704b01fb42396219ca3d942fe42f22d3e8018fc74bfeffd96e37abd4efd2ce49a73915e0e2af5841a537a02e247d4ba5548f20 WHIRLPOOL 1bb2dc8718fd418f81aa20960712f5c2bd131a1128c291df5e955fef83ea71035f429b0fb9e9d213488b0129631978e7fd48f41b199195c59efa30b91484005a

diff --git a/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch b/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch
new file mode 100644
index 0000000..f5cb929
--- /dev/null
+++ b/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch
@@ -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
+

diff --git a/dev-python/python-ethtool/metadata.xml b/dev-python/python-ethtool/metadata.xml
new file mode 100644
index 0000000..112c4c0
--- /dev/null
+++ b/dev-python/python-ethtool/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>python@gentoo.org</email>
+		<name>Python</name>
+	</maintainer>
+	<longdescription lang="en">
+		Python bindings for the ethtool kernel interface, that allows querying and
+		changing of Ethernet card settings, such as speed, port, auto-negotiation, and
+		PCI locations.
+	</longdescription>
+</pkgmetadata>

diff --git a/dev-python/python-ethtool/python-ethtool-0.11.ebuild b/dev-python/python-ethtool/python-ethtool-0.11.ebuild
new file mode 100644
index 0000000..810f7fb
--- /dev/null
+++ b/dev-python/python-ethtool/python-ethtool-0.11.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+# TODO: install scripts and their man pages
+
+inherit eutils distutils-r1
+
+DESCRIPTION="Ethernet settings python bindings"
+HOMEPAGE="https://fedorahosted.org/python-ethtool/"
+SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64"
+IUSE=""
+
+DEPEND="dev-libs/libnl:3"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}_include-net-if.h-for-IFF_-macros.patch"
+	distutils-r1_src_prepare
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/python-ethtool/, dev-python/python-ethtool/files/
@ 2019-02-02 23:42 Georgy Yakovlev
  0 siblings, 0 replies; 3+ messages in thread
From: Georgy Yakovlev @ 2019-02-02 23:42 UTC (permalink / raw
  To: gentoo-commits

commit:     d6bffad1ce3873c8ac86c664b90651cfbcfe4d01
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  2 23:37:45 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sat Feb  2 23:42:21 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6bffad1

dev-python/python-ethtool: add tests

Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 .../python-ethtool/files/test-skip-wg-dev.patch    | 29 ++++++++++++++++++++++
 .../python-ethtool/python-ethtool-0.14.ebuild      |  6 +++++
 2 files changed, 35 insertions(+)

diff --git a/dev-python/python-ethtool/files/test-skip-wg-dev.patch b/dev-python/python-ethtool/files/test-skip-wg-dev.patch
new file mode 100644
index 00000000000..435a81ae494
--- /dev/null
+++ b/dev-python/python-ethtool/files/test-skip-wg-dev.patch
@@ -0,0 +1,29 @@
+From aa18c4a046ed2b508a87161f886e07c6d3716dd3 Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev <gyakovlev@gentoo.org>
+Date: Sat, 2 Feb 2019 14:00:52 -0800
+Subject: [PATCH] tests/test_ethtool.py: skip test_get_active_devices for wg
+
+wg is a wireguard interface and this test fails with
+OSError: [Errno 95] Operation not supported
+---
+ tests/test_ethtool.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_ethtool.py b/tests/test_ethtool.py
+index 6162cd3..0ff78b1 100755
+--- a/tests/test_ethtool.py
++++ b/tests/test_ethtool.py
+@@ -254,8 +254,8 @@ class EthtoolTests(unittest.TestCase):
+ 
+     def test_get_active_devices(self):
+         for devname in ethtool.get_active_devices():
+-            # Skip these test on tun devices
+-            if devname.startswith('tun'):
++            # Skip these test on tun and wg devices
++            if devname.startswith('tun') or devname.startswith('wg'):
+                 continue
+             self._functions_accepting_devnames(devname)
+ 
+-- 
+2.20.1
+

diff --git a/dev-python/python-ethtool/python-ethtool-0.14.ebuild b/dev-python/python-ethtool/python-ethtool-0.14.ebuild
index 3fa5a7bf371..508b2ec1fed 100644
--- a/dev-python/python-ethtool/python-ethtool-0.14.ebuild
+++ b/dev-python/python-ethtool/python-ethtool-0.14.ebuild
@@ -21,3 +21,9 @@ KEYWORDS="~amd64"
 DEPEND="dev-libs/libnl:3"
 RDEPEND="${DEPEND}"
 BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}"/test-skip-wg-dev.patch )
+
+python_test() {
+	esetup.py test || die "Tests failed with ${EPYTHON}"
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/python-ethtool/, dev-python/python-ethtool/files/
@ 2019-12-27 18:52 David Seifert
  0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2019-12-27 18:52 UTC (permalink / raw
  To: gentoo-commits

commit:     a5341c68884eda30eb791c1029971ccfae896d2a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 27 18:52:32 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Dec 27 18:52:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5341c68

dev-python/python-ethtool: Remove old

Package-Manager: Portage-2.3.83, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-python/python-ethtool/Manifest                 |  1 -
 ...ool-0.11_include-net-if.h-for-IFF_-macros.patch | 24 -------------------
 .../python-ethtool/python-ethtool-0.11-r1.ebuild   | 27 ----------------------
 3 files changed, 52 deletions(-)

diff --git a/dev-python/python-ethtool/Manifest b/dev-python/python-ethtool/Manifest
index a828ab86a35..d42a9219ab7 100644
--- a/dev-python/python-ethtool/Manifest
+++ b/dev-python/python-ethtool/Manifest
@@ -1,2 +1 @@
-DIST python-ethtool-0.11.tar.gz 37326 BLAKE2B b2345f5aece60c3b418d9fcd61220ab77fb49b9995a23b0ed6d97135dee61e4ffa177059869a8702430703b9f6518ffdcb8d690c868d0f8338ab16fdc36c58ea SHA512 227a9248dfdd36a9018a441d3ef4680691c23dac52972fe1ecc67ff30991f3de4cd71af0e48669ca382d6f177d1b3ebc97596e5a5ae4b4c80371456effe637b5
 DIST python-ethtool-0.14.tar.gz 41945 BLAKE2B d83e40e79481ee5f91f7e097dc4f6f0eb541f88ba83e13c13b3129ece2196ee999f9110310339ebbc2343b814a3b2c80405a3b4ce6931110509a54281b370cd8 SHA512 57a3f2d60dd8309192fc858614645d4e7533c90c03113ffc1eeeb810b86eb71b0a80b4eb209d3452c7624c5318a853de50d9d716d41334bf079e6e3e2490fd4b

diff --git a/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch b/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch
deleted file mode 100644
index f5cb92984ef..00000000000
--- a/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-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
-

diff --git a/dev-python/python-ethtool/python-ethtool-0.11-r1.ebuild b/dev-python/python-ethtool/python-ethtool-0.11-r1.ebuild
deleted file mode 100644
index 48726520657..00000000000
--- a/dev-python/python-ethtool/python-ethtool-0.11-r1.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python2_7 )
-
-# TODO: install scripts and their man pages
-
-inherit distutils-r1
-
-DESCRIPTION="Ethernet settings python bindings"
-HOMEPAGE="https://pypi.org/project/ethtool/
-	https://github.com/fedora-python/python-ethtool"
-SRC_URI="https://github.com/fedora-python/python-ethtool/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64"
-
-DEPEND="dev-libs/libnl:3"
-RDEPEND="${DEPEND}"
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-
-PATCHES=(
-	"${FILESDIR}/${P}_include-net-if.h-for-IFF_-macros.patch"
-)


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-27 18:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-02 23:42 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-ethtool/, dev-python/python-ethtool/files/ Georgy Yakovlev
  -- strict thread matches above, loose matches on Subject: below --
2019-12-27 18:52 David Seifert
2016-08-06 20:56 Rafael Martins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox