From b3e19918ee70cb5aa2b4b080ab64dfbaac1d733a Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 1 Dec 2019 21:04:56 +0300 Subject: Update Dyson patches --- debian/patches/dyson-socketmodule-ifindex.patch | 28 +++++++++---------- debian/patches/dyson.patch | 36 ++++++++++++------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/debian/patches/dyson-socketmodule-ifindex.patch b/debian/patches/dyson-socketmodule-ifindex.patch index 78916b5..8aa4ccd 100644 --- a/debian/patches/dyson-socketmodule-ifindex.patch +++ b/debian/patches/dyson-socketmodule-ifindex.patch @@ -1,8 +1,8 @@ -Index: python3.7.git/Modules/socketmodule.c +Index: python3.8.git/Modules/socketmodule.c =================================================================== ---- python3.7.git.orig/Modules/socketmodule.c -+++ python3.7.git/Modules/socketmodule.c -@@ -278,6 +278,10 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/ +--- python3.8.git.orig/Modules/socketmodule.c ++++ python3.8.git/Modules/socketmodule.c +@@ -281,6 +281,10 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/ #include #endif @@ -13,7 +13,7 @@ Index: python3.7.git/Modules/socketmodule.c #ifdef HAVE_NET_IF_H #include #endif -@@ -1892,11 +1896,15 @@ getsockaddrarg(PySocketSockObject *s, Py +@@ -1983,11 +1987,15 @@ getsockaddrarg(PySocketSockObject *s, Py } #endif /* USE_BLUETOOTH */ @@ -30,10 +30,10 @@ Index: python3.7.git/Modules/socketmodule.c const char *interfaceName; int protoNumber; int hatype = 0; -@@ -1915,6 +1923,15 @@ getsockaddrarg(PySocketSockObject *s, Py - &protoNumber, &pkttype, &hatype, - &haddr)) +@@ -2017,6 +2025,15 @@ getsockaddrarg(PySocketSockObject *s, Py + } return 0; + } +#ifdef SIOCGLIFINDEX + strncpy(lifr.lifr_name, interfaceName, sizeof(lifr.lifr_name)); + lifr.lifr_name[(sizeof(lifr.lifr_name))-1] = '\0'; @@ -46,7 +46,7 @@ Index: python3.7.git/Modules/socketmodule.c strncpy(ifr.ifr_name, interfaceName, sizeof(ifr.ifr_name)); ifr.ifr_name[(sizeof(ifr.ifr_name))-1] = '\0'; if (ioctl(s->sock_fd, SIOCGIFINDEX, &ifr) < 0) { -@@ -1922,6 +1939,7 @@ getsockaddrarg(PySocketSockObject *s, Py +@@ -2024,6 +2041,7 @@ getsockaddrarg(PySocketSockObject *s, Py PyBuffer_Release(&haddr); return 0; } @@ -54,7 +54,7 @@ Index: python3.7.git/Modules/socketmodule.c if (haddr.buf && haddr.len > 8) { PyErr_SetString(PyExc_ValueError, "Hardware address must be 8 bytes or less"); -@@ -1938,7 +1956,11 @@ getsockaddrarg(PySocketSockObject *s, Py +@@ -2040,7 +2058,11 @@ getsockaddrarg(PySocketSockObject *s, Py addr = (struct sockaddr_ll*)addr_ret; addr->sll_family = AF_PACKET; addr->sll_protocol = htons((short)protoNumber); @@ -66,11 +66,11 @@ Index: python3.7.git/Modules/socketmodule.c addr->sll_pkttype = pkttype; addr->sll_hatype = hatype; if (haddr.buf) { -Index: python3.7.git/configure.ac +Index: python3.8.git/configure.ac =================================================================== ---- python3.7.git.orig/configure.ac -+++ python3.7.git/configure.ac -@@ -2147,6 +2147,7 @@ poll.h sys/devpoll.h sys/epoll.h sys/pol +--- python3.8.git.orig/configure.ac ++++ python3.8.git/configure.ac +@@ -2126,6 +2126,7 @@ poll.h sys/devpoll.h sys/epoll.h sys/pol sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ diff --git a/debian/patches/dyson.patch b/debian/patches/dyson.patch index 8526be3..53d4e40 100644 --- a/debian/patches/dyson.patch +++ b/debian/patches/dyson.patch @@ -1,8 +1,8 @@ -Index: python3.7.git/configure.ac +Index: python3.8.git/configure.ac =================================================================== ---- python3.7.git.orig/configure.ac -+++ python3.7.git/configure.ac -@@ -465,13 +465,6 @@ case $ac_sys_system/$ac_sys_release in +--- python3.8.git.orig/configure.ac ++++ python3.8.git/configure.ac +@@ -473,13 +473,6 @@ case $ac_sys_system/$ac_sys_release in # Marc Recht NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6@<:@A-S@:>@) define_xopen_source=no;; @@ -16,7 +16,7 @@ Index: python3.7.git/configure.ac # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. # Reconfirmed for 7.1.4 by Martin v. Loewis. -@@ -520,8 +513,6 @@ then +@@ -533,8 +526,6 @@ then # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else # several APIs are not declared. Since this is also needed in some # cases for HP-UX, we define it globally. @@ -25,10 +25,10 @@ Index: python3.7.git/configure.ac AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2008) fi -@@ -866,6 +857,14 @@ cat >> conftest.c <> conftest.c <