Bug 710786 - split systemd-analyze to a subpackage with proper dependencies
Summary: split systemd-analyze to a subpackage with proper dependencies
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 16
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 737940 739913 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-04 18:45 UTC by d. johnson
Modified: 2012-01-22 21:29 UTC (History)
14 users (show)

Fixed In Version: systemd-38-5.fc17
Clone Of:
Environment:
Last Closed: 2012-01-22 21:29:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d. johnson 2011-06-04 18:45:09 UTC
Description of problem:

systemd-analyze fails to run due to missing deps.

Version-Release number of selected component (if applicable):

systemd-26-2.fc15.x86_64
dbus-python-0.83.0-8.fc15.x86_64
pycairo-1.8.8-2.fc14.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Install minimium f15.
2. Boot.
3. Run "systemd-analyze plot > 20110604.svg"
  
Actual results:

# systemd-analyze plot > 20110604-d630.svg
Traceback (most recent call last):
  File "/usr/bin/systemd-analyze", line 3, in <module>
    import dbus, sys
ImportError: No module named dbus

# yum install dbus-python

# systemd-analyze plot > 20110604-d630.svg
Traceback (most recent call last):
  File "/usr/bin/systemd-analyze", line 113, in <module>
    import cairo
ImportError: No module named cairo

# yum install pycairo

# systemd-analyze plot > 20110604-d630.svg

# # ls -l 20110604-d630.svg
-rw-r--r--. 1 root root 193972 Jun  4 13:17 20110604-d630.svg


Expected results:

If systemd-analyze is installed, it should have all required deps installed along with it.

Additional info:

Adding 'Requires: dbus-python pycairo' to the spec would remedy this.  If there are specific version requirements, I do not know what they would be.

Comment 1 Michal Schmidt 2011-06-08 11:27:16 UTC
Having the systemd package depend on dbus-python and pycairo is not a good idea. We could split systemd-analyze in a subpackage though.

Comment 2 Mathieu Bridon 2011-08-04 08:33:02 UTC
This is still an issue with systemd-33 from Fedora 16 (not sure it is appropriate for me to change the Fedora version for this bug).

Would a patch to separate systemd-analyze in a separate package help?

Comment 3 Michal Schmidt 2011-09-13 13:06:50 UTC
*** Bug 737940 has been marked as a duplicate of this bug. ***

Comment 4 Michal Schmidt 2011-09-20 12:36:31 UTC
*** Bug 739913 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Mach 2011-10-14 12:32:00 UTC
Moving to F16.
Is anyone going to fix it or should I ask one of the proven packagers to do so?
I can attach a patch if needed...

Comment 6 Michal Schmidt 2011-10-14 12:58:27 UTC
Last time we discussed this with Lennart the plan was to create a separate source tree (and a source package) with systemd utilities. systemd-analyze would be moved there. It may have been Kay's idea.

Kay, what is the status on this?

Comment 7 Kay Sievers 2011-10-15 17:47:01 UTC
(In reply to comment #6)
> Kay, what is the status on this?

We possibly like the move out systemadm to its own source package, and
move gnome-password agent to gnome-setting-daemon, which lets us get rid
of vala and gtk dependencies.

I personally don't mind having these debugging/unimportant tools just fail
if python or python libs aren't installed. It all sounds more like using a
Recommends:, but we don't have that in rpm.

We can not pull-in python from the init system. But if the current packaging
is considered bad practice, we should probably move it to a sub-rpm.

Comment 8 Josh Stone 2011-10-16 17:00:45 UTC
(In reply to comment #7)
> We can not pull-in python from the init system. But if the current packaging
> is considered bad practice, we should probably move it to a sub-rpm.

It already pulls in python, thanks to the #!/usr/bin/python.  Pulling in dbus-python too wouldn't be so bad IMO, but pycairo does probably pull in too much.  I'd say moving to a subpackage is best.

Comment 9 Fedora Admin XMLRPC Client 2011-10-20 16:30:31 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Michal Schmidt 2012-01-22 21:29:38 UTC
Fixed in Rawhide in systemd-38-5.fc17.

At this point I do not plan to do the split on the f16 branch.


Note You need to log in before you can comment on or make changes to this bug.