Bug 512629 - Missing dependency in Zoneminder
Summary: Missing dependency in Zoneminder
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zoneminder
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Martin Ebourne
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-20 01:55 UTC by Alastair D'Silva
Modified: 2009-08-27 22:52 UTC (History)
2 users (show)

Fixed In Version: 1.24.2-2.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-27 22:52:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alastair D'Silva 2009-07-20 01:55:55 UTC
Description of problem:
zmfilter script fails with missing Perl modules.

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

How reproducible:
Always.

Steps to Reproduce:
1. Start with a clean install of Fedora 11, with SELINUX disabled
2. yum update
3. yum install zoneminder
  
Actual results:
Error messages in zoneminder logs indicate zmfilter fails to start

Expected results:
All Zoneminder daemons run successfully.

Additional info:
Missing package dependancy is perl-MIME-lite

Comment 1 Jason Tibbitts 2009-07-20 02:06:38 UTC
Interesting, I have a minimal install, installed zoneminder and mysql with no additional dependencies and the system runs fine.  perl-MIME-Lite is not installed.

Perhaps you could give more details of your configuration.

Comment 2 Alastair D'Silva 2009-07-20 05:09:15 UTC
There is a conditional require statement in zmfilter.pl:

if ( ZM_OPT_MESSAGE )
{
    if ( ZM_NEW_MAIL_MODULES )
    {
        require MIME::Lite;
        require Net::SMTP;
    }
    else
    {
        require MIME::Entity;
    }
}

MIME::Lite is currently listed as a build dependency, but should be runtime dependency. The only shows up if certain features are enabled.

A quick grep through Zoneminder shows the following should also be runtime dependencies, rather than build dependencies:

Archive::Tar, Archive::Zip, Net::FTP   required for uploads
Net::SMTP MIME::Lite MIME::Entity  required for email alarms
File::Find   required for update checks

Comment 3 Jason Tibbitts 2009-07-20 05:19:21 UTC
(In reply to comment #2)
> There is a conditional require statement in zmfilter.pl:

Yes, I understand that, but I was asking for some details about your configuration so that I could better understand the circumstances under which you'd see this failure.  I suppose you don't wish to give that out, which is your prerogative.

It looks like RPM's automatic Perl depencency detection is missing these, perhaps because they're require'd instead of use'd, and it certainly seems reasonable to add them.  Martin, what do you think?  I'm working on rebasing the patches to the new version currently in rawhide, but I could trivially rev the F11 package to add these additional deps.

Comment 4 Alastair D'Silva 2009-07-20 05:28:15 UTC
No objections to the specific circumstances, I just don't have access to the machine until I get home, so I can't investigate which options trigger it.

Comment 5 Martin Ebourne 2009-07-20 07:20:02 UTC
Yes seems reasonable. I'm happy to push the upgrade but you're welcome too if you like.

I agree about the database upgrade will need to check that.

Comment 6 Fedora Update System 2009-07-22 20:36:11 UTC
zoneminder-1.24.2-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/zoneminder-1.24.2-2.fc11

Comment 7 Fedora Update System 2009-07-23 19:05:07 UTC
zoneminder-1.24.2-2.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update zoneminder'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7949

Comment 8 Fedora Update System 2009-08-27 22:51:55 UTC
zoneminder-1.24.2-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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