summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-02-22 17:34:33 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-02-22 17:34:33 +0100
commit2f1945dcd3999a6f0313409337794dbd385e04a4 (patch)
treec71401ab65cbe584452dfaafce3ff862511da035 /pkgs/development/interpreters
parentfe8aa284c2399137df886a0b4b2d5f3e3083138d (diff)
downloadnixpkgs-2f1945dcd3999a6f0313409337794dbd385e04a4.tar
nixpkgs-2f1945dcd3999a6f0313409337794dbd385e04a4.tar.gz
nixpkgs-2f1945dcd3999a6f0313409337794dbd385e04a4.tar.bz2
nixpkgs-2f1945dcd3999a6f0313409337794dbd385e04a4.tar.lz
nixpkgs-2f1945dcd3999a6f0313409337794dbd385e04a4.tar.xz
nixpkgs-2f1945dcd3999a6f0313409337794dbd385e04a4.tar.zst
nixpkgs-2f1945dcd3999a6f0313409337794dbd385e04a4.zip
python-3.6: fix random numbers with glibc-2.25
I missed this upstream patch. /cc #22874.
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/python/cpython/3.6/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/cpython/3.6/default.nix b/pkgs/development/interpreters/python/cpython/3.6/default.nix
index 795bd746725..42f8d109af2 100644
--- a/pkgs/development/interpreters/python/cpython/3.6/default.nix
+++ b/pkgs/development/interpreters/python/cpython/3.6/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl
+{ stdenv, fetchurl, fetchpatch
 , glibc
 , bzip2
 , gdbm
@@ -55,6 +55,14 @@ in stdenv.mkDerivation {
     substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
   '';
 
+  patches = [
+    (fetchpatch {
+      name = "glibc-2.25-failed-to-get-random-numbers.patch";
+      url = https://github.com/python/cpython/commit/ff558f5aba4.patch;
+      sha256 = "1k12gpn69np94cm942vaf40sv7gsxqf20rv1m3parzgi1gs4hqa3";
+    })
+  ];
+
   postPatch = optionalString (x11Support && (tix != null)) ''
     substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
   '';