From 5760cc918247746a4e55adc118bdbd9ffb01b78f Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 14 Jun 2016 11:41:25 +0200 Subject: [PATCH] Use python2 for ipa cli Switch 'ipa' command to py3 has been done prematurely, this commit sets python2 as interpreter for ipa cli. https://fedorahosted.org/freeipa/ticket/5638 Reviewed-By: Martin Babinsky Reviewed-By: Jan Cholasta --- freeipa.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freeipa.spec.in b/freeipa.spec.in index f51fec4eb..522f537e9 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -739,6 +739,11 @@ make client-install DESTDIR=%{buildroot} (cd ipaclient && %{__python3} setup.py install --root %{buildroot}) %endif # with_python3 +# Switch shebang of /usr/bin/ipa +# XXX: ipa cli is not stable enough for enabling py3 support, keep it in py2 +# in any case +sed -i -e'1s/python\(3\|$\)/python2/' %{buildroot}%{_bindir}/ipa + %find_lang %{gettext_domain} mkdir -p %{buildroot}%{_usr}/share/ipa