Bug 462345

Summary: split perl utilities out of evolution package to a sub package
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: evolutionAssignee: Matthew Barnes <mbarnes>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-25 15:58:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 462851    

Description Peter Robinson 2008-09-15 15:35:40 UTC
There are two utilities (possibly plugins) in the evolution package that bring in an entire perl requirement. Those two utils are:
/usr/libexec/evolution/2.24/csv2vcard
/usr/libexec/evolution/2.24/evolution-addressbook-clean

I would be nice to be able to split them out to a separate evolution-perl package so that devices like netbooks (and the possible Fedora spins) don't necessarily need to pull in all of perl to have the evolution PIM as they often only have 2 gig of base flash (eg eeePC Surf 2G)

Comment 1 Matthew Barnes 2008-09-19 13:23:54 UTC
Evolution doesn't explicitly require Perl.  Those two utilities are considered supplemental, and are not required for the normal operation of Evolution.  So Perl would be a "suggested" package in Debian lingo.

That said, I see that Evolution /is/ dragging in Perl by some other requirement, but I'm not sure which.  There's spamassassin, but that's already split into a separate package.  There's autoconf and automake, but those are only build requirements.  I don't see any other likely candidates.

Is there a good way to search for this or display an RPM dependency tree?

Comment 2 Peter Robinson 2008-09-19 13:39:33 UTC
Hi Matthew,

My understanding of RPM (and it could well be wrong) is that if a file in an RPM is a perl file it will pull in perl by default. Hence by just having these files in the package the depsolve routine will pull in perl as a result. I've seen other packages in the past either remove the offending files to remove the dependency or move them to a sub package to move the dep down a level. The other way of bringing in a perl dep is in scripting in the actual spec itself.

Example of moving it to a sub package is ntp
Example of it in the spec file is docbook-dtds

I use 'rpm -qR package' to see what a specific package depends on.
There's also other options in this mailing list post 
http://www.redhat.com/archives/fedora-devel-list/2008-September/msg00001.html

Comment 3 Matthew Barnes 2008-09-25 15:58:24 UTC
Fixed in evolution-2.24.0-2.fc10.

  $ rpm -q --requires evolution | grep perl
  (no output)

  $ rpm -q --requires evolution-perl | grep perl
  /usr/bin/perl
  perl(Text::ParseWords)
  perl(diagnostics)
  perl(strict)