Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 359223

Summary: Wrong gzip/bzip2 prefix for newsyslog in sys-freebsd/freebsd-usbin
Product: Gentoo/Alt Reporter: Dmitri Bogomolov <4glitch>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: a patch to add into sys-freebsd/freebsd-usbin/files
diff for freebsd-usbin-8.2.ebuild

Description Dmitri Bogomolov 2011-03-16 21:16:56 UTC
There is a wrong (for gentoo) paths to gzip and bzip2 binaries in usr.sbin/newsyslog/pathnames.h

Reproducible: Always

Steps to Reproduce:
1. Wait for large /var/log/messages
2. Run `newsyslog`
3. Do `ls /var/log | grep messages`

Actual Results:  
newsyslog: execl(`/usr/bin/bzip2 -f /var/log/messages.0'): No such file or directory
newsyslog: `bzip2 -f /var/log/messages.0' terminated with a non-zero status (1)

messages
messages.0

Expected Results:  
messages
messages.0.bz2

I seen this problem on g/fbsd-6.2 and now see in g/fbsd-8.0. grep messages /etc/newsyslog.conf:
# contents of maillog, messages, and lpd-errs to be confidential.  In the
/var/log/messages                       644  5     100  *     JC
Comment 1 Dmitri Bogomolov 2011-03-16 21:18:52 UTC
Created attachment 266195 [details, diff]
a patch to add into sys-freebsd/freebsd-usbin/files
Comment 2 Dmitri Bogomolov 2011-08-18 08:39:41 UTC
Created attachment 283725 [details, diff]
diff for freebsd-usbin-8.2.ebuild

It seems I am only user of newsyslog on g/fbsd. Or why still no response to this bug?
Comment 3 Naohiro Aota gentoo-dev 2011-09-05 14:56:46 UTC
Fixed in cvs. Thank you for your patch and sorry for the long silence