python3Packages.supervisor: fix build w/glibc-2.31
https://hydra.nixos.org/build/122877074
This commit is contained in:
parent
872f65db46
commit
22b69ed143
|
@ -14,6 +14,13 @@ buildPythonPackage rec {
|
|||
sha256 = "64082ebedf6d36ff409ab2878f1aad5c9035f916c5f15a9a1ec7dffc6dfbbed8";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# SOMAXCONN limit of glibc-2.31 has been increased from 128 to 4096:
|
||||
# * https://sourceware.org/git/?p=glibc.git;a=commit;h=96958e2700f5b4f4d1183a0606b2b9848a53ea44
|
||||
# * https://github.com/Supervisor/supervisor/issues/1346
|
||||
./glibc-2.31.patch
|
||||
];
|
||||
|
||||
# wants to write to /tmp/foo which is likely already owned by another
|
||||
# nixbld user on hydra
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
|
13
pkgs/development/python-modules/supervisor/glibc-2.31.patch
Normal file
13
pkgs/development/python-modules/supervisor/glibc-2.31.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/supervisor/tests/base.py b/supervisor/tests/base.py
|
||||
index 643e609..8aa45e7 100644
|
||||
--- a/supervisor/tests/base.py
|
||||
+++ b/supervisor/tests/base.py
|
||||
@@ -358,7 +358,7 @@ class DummySocketConfig:
|
||||
return not self.__eq__(other)
|
||||
|
||||
def get_backlog(self):
|
||||
- return 128
|
||||
+ return 4096
|
||||
|
||||
def create_and_bind(self):
|
||||
return DummySocket(self.fd)
|
Loading…
Reference in a new issue