Commit 9f049ca14403f3696d54d186e6b1b15181f055df introduced dependency on
python-setuptools on line:
  from pkg_resources import parse_version

This dependency is missing on *minimal* installation and then ipa-server-upgrade fails on rpm install/upgrade.

With:
 Installing  : freeipa-server-4.2.0.alpha1-0.fc22.x86_64   213/213
Traceback (most recent call last):
  File "/usr/sbin/ipa-server-upgrade", line 10, in <module>
    from ipaserver.install.ipa_server_upgrade import ServerUpgrade
File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_upgrade.py", line 10, in <module>
    from ipaserver.install import installutils
File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 42, in <module>
    from ipapython import ipautil, sysrestore, admintool, dogtag, version
File "/usr/lib/python2.7/site-packages/ipapython/sysrestore.py", line 35, in <module>
    from ipaplatform.tasks import tasks
File "/usr/lib/python2.7/site-packages/ipaplatform/tasks.py", line 26, in <module>
    from ipaplatform.redhat.tasks import RedHatTaskNamespace
File "/usr/lib/python2.7/site-packages/ipaplatform/redhat/tasks.py", line 46, in <module>
    from ipaplatform.base.tasks import BaseTaskNamespace
File "/usr/lib/python2.7/site-packages/ipaplatform/base/tasks.py", line 28, in <module>
    from pkg_resources import parse_version
ImportError: No module named pkg_resources
--
Petr Vobornik
From ceaa69ad4ae68f4a55e6d3a2a6ebe5287edcbabe Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Fri, 19 Jun 2015 14:01:50 +0200
Subject: [PATCH] add python-setuptools to requires

Commit 9f049ca14403f3696d54d186e6b1b15181f055df introduced dependency on
python-setuptools on line:
  from pkg_resources import parse_version

This dependency is missing on minimal installation and then ipa-server-upgrade
fails on rpm install/upgrade.
---
 freeipa.spec.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/freeipa.spec.in b/freeipa.spec.in
index 809ac1e5bb877c85e29c082ecfb9ad91aa97b4f5..b795c14a560977c7df307672e6c2b83e8aa5d35d 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -298,6 +298,7 @@ Requires: python-sss-murmur
 %endif
 Requires: wget
 Requires: dbus-python
+Requires: python-setuptools
 
 Conflicts: %{alt_name}-python
 Obsoletes: %{alt_name}-python < %{version}
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to