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

Bug 73843

Summary: logrotate man page is not correct
Product: Gentoo Linux Reporter: edoceo <code>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description edoceo 2004-12-08 14:44:08 UTC
Man page for logrotate says this:
FILES
       /var/lib/logrotate/status  Default state file.
       /etc/logrotate.conf        Configuration options.

But the compiled version of logrotate that comes with gentoo is to use
  /var/lib/logrotate.status

Reproducible: Always
Steps to Reproduce:
1.  emerge logrotate
2.  strings /usr/sbin/logrotate |grep status
3.



Expected Results:  
I think the manual should be corrected, or the ebuild should be corrected
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-12-08 14:47:31 UTC
attach a patch for the man page. ;-)
Comment 2 Sergey Kuleshov (RETIRED) gentoo-dev 2004-12-09 09:32:50 UTC
One line of sed command fixed that :)
Comment 3 edoceo 2004-12-10 12:12:37 UTC
Just looked at the debian sources for logrotate, latest version.
The source with the manual states /var/lib/logrotate/status, but the code looks like:

linux-00 logrotate-3.7-r1 # grep '/var/lib' *
config.h:    #define STATEFILE "/var/lib/logrotate.status"
logrotate.8:log files.  The default state file is \fI/var/lib/logrotate/status\fR.
logrotate.8:\fI/var/lib/logrotate/status\fR
logrotate.spec:mkdir -p $RPM_BUILD_ROOT/var/lib
logrotate.spec:touch $RPM_BUILD_ROOT/var/lib/logrotate.status
logrotate.spec:%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) /var/lib/logrotate.status

So the man page patch was the way to go.