Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 118507

Summary: Missing perl module Logwatch.pm in daily status mail causes error
Product: [Retired] Red Hat Raw Hide Reporter: Robert Scheck <redhat-bugzilla>
Component: logwatchAssignee: Elliot Lee <sopwith>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: high    
Version: 1.0CC: bmillett, linux
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: 2004-03-17 14:53:25 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: 114961    

Description Robert Scheck 2004-03-17 07:15:21 UTC
Description of problem:
The following is copied from my daily status mail generated by 
logwatch:

--- snipp ---
Can't locate Logwatch.pm in @INC (@INC contains: /etc/log.d//lib /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
+/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
+/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
+/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /etc/log.d/scripts/services/kernel line 24.
BEGIN failed--compilation aborted at /etc/log.d/scripts/services/kernel line 24.

 ---------------------- Kernel End -------------------------
--- snapp --

Only errors in that mail :-(

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

How reproducible & Steps to Reproduce:
1. Get logwatch-5.1-2 from Rawhide
2. Rebuild it
3. Test it
  
Actual results:
The perl Module "Logwatch.pm" isn't installed (forgotten?).

Expected results:
--- logwatch.spec       2004-03-17 08:08:20.000000000 +0100
+++ logwatch.spec.rsc   2004-03-17 08:13:00.000000000 +0100
@@ -30,6 +30,7 @@

 %install
 rm -rf %{buildroot}
+install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/lib
 install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/conf/logfiles
 install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/conf/services
 install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/services
@@ -49,6 +50,8 @@
 install -m 0644 conf/logfiles/* %{buildroot}%{_sysconfdir}/log.d/conf/logfiles
 install -m 0644 conf/services/* %{buildroot}%{_sysconfdir}/log.d/conf/services

+install -m 0644 lib/Logwatch.pm %{buildroot}%{_sysconfdir}/log.d/lib/Logwatch.pm
+
 install -m 0755 -d %{buildroot}%{_mandir}/man8
 install -m 0644 logwatch.8 %{buildroot}%{_mandir}/man8

@@ -100,12 +103,16 @@
 %{_sysconfdir}/log.d/scripts/logfiles/xferlog/*
 %{_sysconfdir}/log.d/logwatch
 %{_sysconfdir}/log.d/logwatch.conf
+%{_sysconfdir}/log.d/lib/Logwatch.pm
 %{_sysconfdir}/cron.daily/00-logwatch
 %{_mandir}/man8/logwatch.8*

Additional info:
After changing my spec file to that written above, all works fine, 
so please solve that problem. Thank you :)

Comment 1 Elliot Lee 2004-03-17 14:53:25 UTC
Thanks for coming up with the correct fix to this problem :)

Comment 2 Bill Nottingham 2004-03-18 05:56:53 UTC
*** Bug 118565 has been marked as a duplicate of this bug. ***

Comment 3 Bill Nottingham 2004-03-19 21:11:42 UTC
*** Bug 118736 has been marked as a duplicate of this bug. ***