summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-08-03 18:55:14 +0000
committerMichał Górny <mgorny@gentoo.org>2024-01-06 15:25:32 +0100
commit2f12d5a41f4c84db8a8abe77c4572f340f5724a6 (patch)
treea2c9e4d9f73a9b54190f5add020653486cb60ea2 /dev-python/netifaces
parentdev-python/pyroute2: add 0.7.10 (diff)
downloadgentoo-2f12d5a41f4c84db8a8abe77c4572f340f5724a6.tar.gz
gentoo-2f12d5a41f4c84db8a8abe77c4572f340f5724a6.tar.bz2
gentoo-2f12d5a41f4c84db8a8abe77c4572f340f5724a6.zip
dev-python/netifaces: Fix incompatible pointer to integer conversion
Closes: https://bugs.gentoo.org/894448 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32130 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/netifaces')
-rw-r--r--dev-python/netifaces/files/netifaces-0.11.0-musl-clang16-null.patch21
-rw-r--r--dev-python/netifaces/netifaces-0.11.0-r2.ebuild30
2 files changed, 51 insertions, 0 deletions
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/netifaces-0.11.0-r2.ebuild b/dev-python/netifaces/netifaces-0.11.0-r2.ebuild
new file mode 100644
index 000000000000..fd3683a88ddc
--- /dev/null
+++ b/dev-python/netifaces/netifaces-0.11.0-r2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+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 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+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}"
+}