pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-uvloop py-uvloop: kludge-fix the build on Sun...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2e3e23ea875d
branches: trunk
changeset: 377970:2e3e23ea875d
user: tnn <tnn%pkgsrc.org@localhost>
date: Mon Apr 25 21:46:49 2022 +0000
description:
py-uvloop: kludge-fix the build on SunOS: work around missing SO_REUSEPORT
diffstat:
devel/py-uvloop/distinfo | 3 ++-
devel/py-uvloop/patches/patch-uvloop_loop.c | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 923f527d657a -r 2e3e23ea875d devel/py-uvloop/distinfo
--- a/devel/py-uvloop/distinfo Mon Apr 25 19:32:52 2022 +0000
+++ b/devel/py-uvloop/distinfo Mon Apr 25 21:46:49 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.25 2022/01/27 10:06:38 wiz Exp $
+$NetBSD: distinfo,v 1.26 2022/04/25 21:46:49 tnn Exp $
BLAKE2s (uvloop-0.16.0.tar.gz) = 0c9a34b053ad5d385f6e840d5098016cff71f854f730c33a060287e3d979491a
SHA512 (uvloop-0.16.0.tar.gz) = dd6dcec38f7f94dc0cf0123302fd6fe404428196b452a80a8258a207654e3f67e210233be3d649668c22b48390232d0347706b1d87fb50016287142c742b806d
Size (uvloop-0.16.0.tar.gz) = 2129067 bytes
SHA1 (patch-setup.py) = 31968fa87f7a5a626f79e4bdfb0bd3f054cfc95e
+SHA1 (patch-uvloop_loop.c) = 23e35e68c2cc1ab4c9ddedfe74b87f2d293d2f2b
diff -r 923f527d657a -r 2e3e23ea875d devel/py-uvloop/patches/patch-uvloop_loop.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-uvloop/patches/patch-uvloop_loop.c Mon Apr 25 21:46:49 2022 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-uvloop_loop.c,v 1.1 2022/04/25 21:46:50 tnn Exp $
+
+If SO_REUSEPORT is not defined, then use SO_REUSEADDR.
+This is ugly, but should be safe: the code won't be reached because
+has_REUSEPORT is false at run-time.
+Patching this way is 100% a hack and not upstreamable,
+but it avoids re-cythonizing the package.
+
+--- uvloop/loop.c.orig 2021-08-10 19:05:48.000000000 +0000
++++ uvloop/loop.c
+@@ -15,6 +15,10 @@
+ "module_name": "uvloop.loop"
+ }
+ END: Cython Metadata */
++#include <sys/socket.h>
++#ifndef SO_REUSEPORT
++#define SO_REUSEPORT SO_REUSEADDR
++#endif
+
+ #ifndef PY_SSIZE_T_CLEAN
+ #define PY_SSIZE_T_CLEAN
Home |
Main Index |
Thread Index |
Old Index