Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359223 - Wrong gzip/bzip2 prefix for newsyslog in sys-freebsd/freebsd-usbin
Summary: Wrong gzip/bzip2 prefix for newsyslog in sys-freebsd/freebsd-usbin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 21:16 UTC by Dmitri Bogomolov
Modified: 2011-09-05 14:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
a patch to add into sys-freebsd/freebsd-usbin/files (newsyslog-bzip2-prefix.patch,400 bytes, patch)
2011-03-16 21:18 UTC, Dmitri Bogomolov
Details | Diff
diff for freebsd-usbin-8.2.ebuild (freebsd-usbin-8.2.ebuild.diff,458 bytes, patch)
2011-08-18 08:39 UTC, Dmitri Bogomolov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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