rpm: Fix python3 detection hack

Commit 5dff3c4b68 made rpm use autoreconfHook, so the patch that we
are making to `configure` gets lost when the file is regenerated.
To fix this, just patch the equivalent string in the `configure.ac` file
instead.

Fixes #15287
This commit is contained in:
Tuomas Tynkkynen 2016-05-07 17:50:51 +03:00
parent 5b90702cd6
commit 24b046ce05

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
postPatch = ''
# For Python3, the original expression evaluates as 'python3.4' but we want 'python3.4m' here
substituteInPlace configure --replace 'python''${PYTHON_VERSION}' ${python.executable}
substituteInPlace configure.ac --replace 'python''${PYTHON_VERSION}' ${python.executable}
substituteInPlace Makefile.am --replace '@$(MKDIR_P) $(DESTDIR)$(localstatedir)/tmp' ""
'';