mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/py3-netifaces: fix build with GCC 14
This commit is contained in:
parent
fa00650db8
commit
c9bab9db22
@ -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
|
||||||
"
|
"
|
||||||
|
23
community/py3-netifaces/gcc14.patch
Normal file
23
community/py3-netifaces/gcc14.patch
Normal 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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user