From c9bab9db22107687a4c3f62aca6b44fdebb422c1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 8 Sep 2024 13:41:45 -0700 Subject: [PATCH] community/py3-netifaces: fix build with GCC 14 --- community/py3-netifaces/APKBUILD | 4 +++- community/py3-netifaces/gcc14.patch | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 community/py3-netifaces/gcc14.patch diff --git a/community/py3-netifaces/APKBUILD b/community/py3-netifaces/APKBUILD index b3e545657a8..09f69057965 100644 --- a/community/py3-netifaces/APKBUILD +++ b/community/py3-netifaces/APKBUILD @@ -9,7 +9,8 @@ url="http://alastairs-place.net/netifaces/" arch="all" license="MIT" 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" replaces="py-netifaces" # Backwards compatibility @@ -29,4 +30,5 @@ package() { sha512sums=" a53110efb78c89c4d72d002104866253a4c085dd27ff9f41d4cfe3811cc5619e7585ceda4e91e83cdd0645c40c745c61d205708ee9a34427b35f437a48f148e5 netifaces-0.11.0.tar.gz +01240408f1a3ebc0463b04e348b8ad9d0d6b33f7375a9fc47dfb29afc2ae124bb4da6538c45a1157e800fb67a3fc6907f6b97b01ca1be9e25e158c9162e17021 gcc14.patch " diff --git a/community/py3-netifaces/gcc14.patch b/community/py3-netifaces/gcc14.patch new file mode 100644 index 00000000000..81f3acd3a55 --- /dev/null +++ b/community/py3-netifaces/gcc14.patch @@ -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; +