Opened 15 years ago

Closed 14 years ago

#22504 closed defect (fixed)

Logwatch broken, refers to zcat instead of gzcat

Reported by: siraaj@… Owned by: lassi.tuura@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: logwatch

Description

After installing logwatch on 10.6.2, it was unable to make a clean run - returning error:

zcat: /var/log/system.log.0.gz.Z: No such file or directory
system zcat failed: 256 at /opt/local/bin/logwatch line 876.

I was able to fix this, by editing /opt/local/bin/logwatch and changing line 76 from

$Config{'pathtozcat'} = "zcat";

to

$Config{'pathtozcat'} = "gzcat";

Logwatch now works.

Change History (7)

comment:1 Changed 15 years ago by siraaj@…

Cc: siraaj@… added

Cc Me!

comment:2 Changed 15 years ago by blb@…

Keywords: logwatch removed
Owner: changed from macports-tickets@… to lassi.tuura@…

My system (10.6.2) does have zcat as /usr/bin/zcat.

comment:3 in reply to:  2 Changed 15 years ago by siraaj@…

Replying to blb@…:

My system (10.6.2) does have zcat as /usr/bin/zcat.

Mine does too. But, as indicated by the error message, it seems that zcat expects *.Z compressed files in /var/log/, when they're all either *.gz or *.bz2

comment:5 in reply to:  4 Changed 15 years ago by siraaj@…

Replying to toby@…:

See http://www.opengroup.org/onlinepubs/000095399/utilities/zcat.html for more info.

Please elaborate, if you're actually trying to be helpful.

comment:6 Changed 15 years ago by lassi.tuura@…

For me logwatch works just fine, I haven't seen this issue. Maybe installing gzip port is sufficient/required. I can't really tell if it's required, as it got installed by something else long before I did anything with the logwatch package, I am not sure how I'd test without it.

$ which -a zcat
/opt/local/bin/zcat
/usr/bin/zcat
$ port provides /opt/local/bin/zcat
/opt/local/bin/zcat is provided by: gzip

comment:7 Changed 14 years ago by jmroot (Joshua Root)

Cc: siraaj@… removed
Keywords: zcat gzcat removed
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.