Skip to content

Commit

Permalink
python-3.6: fix random numbers with glibc-2.25
Browse files Browse the repository at this point in the history
I missed this upstream patch. /cc #22874.
  • Loading branch information
vcunat committed Feb 22, 2017
1 parent fe8aa28 commit 2f1945d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/interpreters/python/cpython/3.6/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl
{ stdenv, fetchurl, fetchpatch
, glibc
, bzip2
, gdbm
Expand Down Expand Up @@ -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'"
'';
Expand Down

0 comments on commit 2f1945d

Please sign in to comment.