diff options
Diffstat (limited to 'dev-python/netifaces')
| -rw-r--r-- | dev-python/netifaces/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/netifaces/files/netifaces-0.10.4-remove-osx-fix.patch | 15 | ||||
| -rw-r--r-- | dev-python/netifaces/files/netifaces-0.11.0-musl-clang16-null.patch | 21 | ||||
| -rw-r--r-- | dev-python/netifaces/metadata.xml | 12 | ||||
| -rw-r--r-- | dev-python/netifaces/netifaces-0.11.0-r2.ebuild | 30 |
5 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/netifaces/Manifest b/dev-python/netifaces/Manifest new file mode 100644 index 000000000000..21387f7d7f9e --- /dev/null +++ b/dev-python/netifaces/Manifest @@ -0,0 +1 @@ +DIST netifaces-0.11.0.tar.gz 30106 BLAKE2B d531cec80142d005548ad30f4d13b23d0a7aa85f6907998bdc6d6081567234b169774b25d2e274d14e68564b16e96ff016c429c0a7aefabd6abae6994f1e7c5c SHA512 a53110efb78c89c4d72d002104866253a4c085dd27ff9f41d4cfe3811cc5619e7585ceda4e91e83cdd0645c40c745c61d205708ee9a34427b35f437a48f148e5 diff --git a/dev-python/netifaces/files/netifaces-0.10.4-remove-osx-fix.patch b/dev-python/netifaces/files/netifaces-0.10.4-remove-osx-fix.patch new file mode 100644 index 000000000000..7f87a02e365a --- /dev/null +++ b/dev-python/netifaces/files/netifaces-0.10.4-remove-osx-fix.patch @@ -0,0 +1,15 @@ +--- netifaces-0.10.4/setup.py ++++ netifaces-0.10.4/setup.py +@@ -18,12 +18,6 @@ + + __version__ = "0.10.4" + +-# Disable hard links, otherwise building distributions fails on OS X +-try: +- del os.link +-except: +- pass +- + # On Windows, we need ws2_32 and iphlpapi + if getattr(sys, 'getwindowsversion', None): + libraries = ['ws2_32', 'iphlpapi'] diff --git a/dev-python/netifaces/files/netifaces-0.11.0-musl-clang16-null.patch b/dev-python/netifaces/files/netifaces-0.11.0-musl-clang16-null.patch new file mode 100644 index 000000000000..fa44700c3dc6 --- /dev/null +++ b/dev-python/netifaces/files/netifaces-0.11.0-musl-clang16-null.patch @@ -0,0 +1,21 @@ +Bug: https://bugs.gentoo.org/894448 +--- a/netifaces.c ++++ b/netifaces.c +@@ -370,7 +370,7 @@ string_from_sockaddr (struct sockaddr *addr, + + failure = getnameinfo (gniaddr, gnilen, + buffer, buflen, +- NULL, 0, ++ 0, 0, + NI_NUMERICHOST); + + if (bigaddr) { +@@ -1805,7 +1805,7 @@ gateways (PyObject *self) + sizeof(sanl_from), + &iov, + 1, +- NULL, ++ 0, + 0, + 0 + }; diff --git a/dev-python/netifaces/metadata.xml b/dev-python/netifaces/metadata.xml new file mode 100644 index 000000000000..9d2c36833972 --- /dev/null +++ b/dev-python/netifaces/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/al45tair/netifaces/issues</bugs-to> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/netifaces/netifaces-0.11.0-r2.ebuild b/dev-python/netifaces/netifaces-0.11.0-r2.ebuild new file mode 100644 index 000000000000..151068217496 --- /dev/null +++ b/dev-python/netifaces/netifaces-0.11.0-r2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Portable network interface information" +HOMEPAGE=" + https://pypi.org/project/netifaces/ + https://alastairs-place.net/projects/netifaces/ + https://github.com/al45tair/netifaces/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" + +PATCHES=( + "${FILESDIR}"/${PN}-0.10.4-remove-osx-fix.patch + "${FILESDIR}"/${PN}-0.11.0-musl-clang16-null.patch +) + +python_test() { + "${EPYTHON}" test.py || die "Tests failed with ${EPYTHON}" +} |
