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 1893503 - logwatch crashes on undefined subroutine
Summary: logwatch crashes on undefined subroutine
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: logwatch
Version: 33
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Frank Crawford
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1896750 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-01 05:45 UTC by Marek Greško
Modified: 2020-11-18 02:19 UTC (History)
4 users (show)

Fixed In Version: logwatch-7.5.4-2.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-18 02:19:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output of perl -V (8.21 KB, text/plain)
2020-11-02 13:11 UTC, Marek Greško
no flags Details

Description Marek Greško 2020-11-01 05:45:55 UTC
Description of problem:
logwatch crashed on undefined subroutine &main::TimeBuild

Version-Release number of selected component (if applicable):
logwatch-7.5.4-1.fc33.noarch


How reproducible:
By running logwatch

Steps to Reproduce:
1. Run logwatch

Actual results:
Undefined subroutine &main::TimeBuild called at /usr/sbin/logwatch line 763.


Expected results:
Logwatch runs.

Additional info:

Comment 1 Frank Crawford 2020-11-02 09:11:31 UTC
This appears to be an issue either with your setup or with Fedora 33.  The routine is locally defined in logwatch.pm.  I have yet to setup a new F33 environment, but will do so shortly and test it out.

Comment 2 Marek Greško 2020-11-02 09:33:44 UTC
It is strange. I found one fedora installation where it works normally. I cannot imagine what could be the difference? Maybe some package missing because of dependency problem?

All of my machines are upgrades from previous versions using package manager. Only one of them working.

Comment 3 Frank Crawford 2020-11-02 09:46:33 UTC
It looks to be an issue with perl not following perllib correctly to find the module in /usr/share/logwatch/lib.

Can you paste the results of "perl -V".

Comment 4 Marek Greško 2020-11-02 13:11:57 UTC
Created attachment 1725790 [details]
Output of perl -V

Output is the same on the working and non working machine.

Comment 5 Marek Greško 2020-11-02 13:17:11 UTC
Thanks, you helped me by your comment.

When I installed perl-lib it suddenly started to work. I think tha package should be inserted as a dependency of logwatch.

Comment 6 Frank Crawford 2020-11-03 11:17:49 UTC
Marek, thanks, that is possibly the case, as the version of perl in F33 seems to have split out a number of items into separate packages.

I'll check this out a little further and then probably add some of the additional packages.

Comment 7 Frank Crawford 2020-11-09 11:34:13 UTC
Marek, yes as I thought, once I looked into what was previously pulled in by the perl-interpreter package and what is now pulled in, is vastly different.  It appears that we now have to ensure all required packages, even standard ones like perl-lib must be added as a dependency in the logwatch package.

I'm build a new version in rawhide and will also do one in f33-test tonight.

Comment 8 Fedora Update System 2020-11-09 11:40:55 UTC
FEDORA-2020-ab2d7fb704 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-ab2d7fb704

Comment 9 Marek Greško 2020-11-09 16:38:46 UTC
Hello,

I found out also perl-diagnostics is a required dependency.

Marek

Comment 10 Frank Crawford 2020-11-09 23:57:18 UTC
Yes, there is a separate ticket for the perl-diagnostics issue.  Multiple people have found that one and it is in the update for testing.

Comment 11 Fedora Update System 2020-11-10 02:19:20 UTC
FEDORA-2020-ab2d7fb704 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-ab2d7fb704`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-ab2d7fb704

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Frank Crawford 2020-11-12 11:34:18 UTC
*** Bug 1896750 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2020-11-18 02:19:30 UTC
FEDORA-2020-ab2d7fb704 has been pushed to the Fedora 33 stable repository.
If problem still persists, 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.