pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-uvloop
Module Name: pkgsrc
Committed By: tnn
Date: Mon Apr 25 21:46:50 UTC 2022
Modified Files:
pkgsrc/devel/py-uvloop: distinfo
Added Files:
pkgsrc/devel/py-uvloop/patches: patch-uvloop_loop.c
Log Message:
py-uvloop: kludge-fix the build on SunOS: work around missing SO_REUSEPORT
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/py-uvloop/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-uvloop/patches/patch-uvloop_loop.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-uvloop/distinfo
diff -u pkgsrc/devel/py-uvloop/distinfo:1.25 pkgsrc/devel/py-uvloop/distinfo:1.26
--- pkgsrc/devel/py-uvloop/distinfo:1.25 Thu Jan 27 10:06:38 2022
+++ pkgsrc/devel/py-uvloop/distinfo Mon Apr 25 21:46:49 2022
@@ -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
Added files:
Index: pkgsrc/devel/py-uvloop/patches/patch-uvloop_loop.c
diff -u /dev/null pkgsrc/devel/py-uvloop/patches/patch-uvloop_loop.c:1.1
--- /dev/null Mon Apr 25 21:46:50 2022
+++ pkgsrc/devel/py-uvloop/patches/patch-uvloop_loop.c Mon Apr 25 21:46:50 2022
@@ -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