community/py3-netifaces: fix build with GCC 14

This commit is contained in:
Ariadne Conill 2024-09-08 13:41:45 -07:00
parent fa00650db8
commit c9bab9db22
2 changed files with 26 additions and 1 deletions

View File

@ -9,7 +9,8 @@ url="http://alastairs-place.net/netifaces/"
arch="all" arch="all"
license="MIT" license="MIT"
makedepends="python3-dev py3-setuptools linux-headers" makedepends="python3-dev py3-setuptools linux-headers"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
gcc14.patch"
builddir="$srcdir/$_pkgname-$pkgver" builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-netifaces" # Backwards compatibility replaces="py-netifaces" # Backwards compatibility
@ -29,4 +30,5 @@ package() {
sha512sums=" sha512sums="
a53110efb78c89c4d72d002104866253a4c085dd27ff9f41d4cfe3811cc5619e7585ceda4e91e83cdd0645c40c745c61d205708ee9a34427b35f437a48f148e5 netifaces-0.11.0.tar.gz a53110efb78c89c4d72d002104866253a4c085dd27ff9f41d4cfe3811cc5619e7585ceda4e91e83cdd0645c40c745c61d205708ee9a34427b35f437a48f148e5 netifaces-0.11.0.tar.gz
01240408f1a3ebc0463b04e348b8ad9d0d6b33f7375a9fc47dfb29afc2ae124bb4da6538c45a1157e800fb67a3fc6907f6b97b01ca1be9e25e158c9162e17021 gcc14.patch
" "

View File

@ -0,0 +1,23 @@
--- netifaces-0.11.0.orig/netifaces.c
+++ netifaces-0.11.0/netifaces.c
@@ -1801,13 +1801,13 @@
struct sockaddr_nl sanl_from;
struct iovec iov = { msgbuf, bufsize };
struct msghdr msghdr = {
- &sanl_from,
- sizeof(sanl_from),
- &iov,
- 1,
- NULL,
- 0,
- 0
+ .msg_name = &sanl_from,
+ .msg_namelen = sizeof(sanl_from),
+ .msg_iov = &iov,
+ .msg_iovlen = 1,
+ .msg_control = NULL,
+ .msg_controllen = 0,
+ .msg_flags = 0,
};
int nllen;