apparmor-utils dependency on librpc-xml-perl is inconvenient

Bug #618928 reported by Colin Watson
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Fix Released

Bug Description

Binary package hint: apparmor

apparmor-utils (2.5.1~pre1393-0ubuntu5) depends on librpc-xml-perl, since utils/ unconditionally calls 'use RPC::XML;' etc. This is a library with many large dependencies, including libwww-perl, and apparmor-utils is in the standard seed, which is installed on every Ubuntu system other than those installed using a bare debootstrap. I'd like to make this less of an imposition on the standard system somehow. Reading through the code, as far as I can see, RPC::XML is only used for online profile repository operations, which it seems to me (although I am far from an expert on this) might be a relatively uncommon operation.

Perl supports loading modules dynamically in function scope, using patterns such as 'require RPC::XML; RPC::XML->import;'. Would it be possible to load RPC::XML and friends only when they're directly needed, and drop librpc-xml-perl to a Suggests? You could even do something like this to make it obvious what people need to do:

  eval {
    require RPC::XML;
    require RPC::XML::Client;
  if ($@) {
    die "RPC::XML module not available; try 'apt-get install librpc-xml-perl' as root.\n";

Changed in apparmor (Ubuntu):
status: New → Triaged
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This should be fixed now in Oneiric, since aa-status was rewritten in python and the packaging adjusted.

Changed in apparmor (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.