Skip to content

Commit

Permalink
python-3.4: fixup with glibc-2.25 (/cc #22874)
Browse files Browse the repository at this point in the history
Upstream won't support it, but let me trick the code into behaving
as if glibc was older.  It seems 3.3 branch should be unaffected.
vcunat committed Feb 21, 2017
1 parent 4b72153 commit cab0b44
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/interpreters/python/cpython/3.4/default.nix
Original file line number Diff line number Diff line change
@@ -57,7 +57,14 @@ in stdenv.mkDerivation {

postPatch = optionalString (x11Support && (tix != null)) ''
substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
'';
''
# Avoid picking up getentropy() from glibc >= 2.25, as that would break
# on older kernels. http://bugs.python.org/issue29157
+ optionalString stdenv.isLinux
''
substituteInPlace Python/random.c --replace 'defined(HAVE_GETENTROPY)' '0'
cat Python/random.c
'';

preConfigure = ''
for i in /usr /sw /opt /pkg; do # improve purity

0 comments on commit cab0b44

Please sign in to comment.